Page 1 of 1
Convert from jpeg to pdf error
Posted: 2011-12-17T14:47:26-07:00
by YMM
I'm getting this error while trying to convert from jpeg to pdf:
convert: Wrong JPEG library version: library is 62, caller expects 80 `Image-10.jpg' @ error/jpeg.c/EmitMessage/235.
I've seen some solutions, but the all imply a more advance knowledge of things, like reinstalling jpeg, i just don't want to screw my system anymore than what it is, so if someone could guide me into the solution would be greatly appreciated!
I'm using Ubuntu 11.10.
IM Version:
ImageMagick 6.6.5-10 2011-04-25 Q16.
I've got 2 versions of jpeg lib:libjpeg 8 and libjpeg62.
Thanks!
Re: Convert from jpeg to pdf error
Posted: 2011-12-17T14:52:22-07:00
by YMM
I really want/need to solve this, help please!!
Been stuck for a long time :S
Re: Convert from jpeg to pdf error
Posted: 2011-12-17T17:49:37-07:00
by fmw42
type
convert -list format and see what it says? mine shows
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
That probably means you need to remove libjpeg62 and recompile IM so that it finds the right libjpeg.
Also what do you get from:
convert -list configure
at the line starting with DELEGATES
bzlib fftw fontconfig freetype gs jpeg jng jp2 lcms2 lqr openexr png rsvg tiff x11 xml zlib
Does it show jpeg?
If I do a find, I get:
/opt/local/lib/libjpeg.8.dylib
So again it looks like you need to remove v 62 and reinstall IM so that it finds only v 8
Re: Convert from jpeg to pdf error
Posted: 2011-12-18T13:43:13-07:00
by YMM
convert -list format shows:
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
And convert -list configure:
DELEGATES fftw fontconfig freetype jpeg jng openexr png rsvg tiff x11 xml zlib
So again it looks like you need to remove v 62 and reinstall IM so that it finds only v 8
Isn't there something else that uses v 62, would i have to reinstall those too?
Thanks for your reply!
Re: Convert from jpeg to pdf error
Posted: 2011-12-18T13:54:06-07:00
by fmw42
I am no expert on that. But seems like if something else needed libjpeg, it could use v 8. You could always re-install v 62 if you find something else has broke. But that is just my opinion. Perhaps the IM developers can give you more information.
Have you tried just reinstalling IM and see what happens?
Again I know little about installing on Linux. I use a Mac OSX and get all my delegates from MacPorts, but I install IM manually from source rather than from MacPorts.
Re: Convert from jpeg to pdf error
Posted: 2011-12-22T17:08:33-07:00
by YMM
So i did the following:
reinstalled imgaMagick, still had the same problem converting.
erased libjpeg.so.62*:
/usr/lib/i386-linux-gnu$ sudo rm -f libjpeg.so.62*
and then:
ln -s /usr/local/lib/libjpeg.so.8.0.2 libjpeg.so.62
and reinstalled imgamagick again, then tried converting from jpeg to pdf once more and got this error:
convert: /usr/lib/i386-linux-gnu/libjpeg.so.62: version `LIBJPEG_6.2' not found (required by /usr/lib/i386-linux-gnu/libtiff.so.4)
So i'm not sure what to do now, but i'll keep trying, thanks for the help!