Page 1 of 1

JPEG parameter struct mismatch: library thinks size is 520

Posted: Sun Dec 23, 2012 4:26 pm
by aflohr
Hallo Pacsone,

i set up an new PACS System on OpenSuse 12.1 wich uses PHP 5.3.8.
I get the same Error as discriped in :

"Can't display images, something worng with JPEG library"

tail -f /var/log/apache2/error_log
[Sun Dec 23 16:53:51 2012] [notice] Apache/2.2.21 (Linux/SUSE) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 configured -- resuming normal operations
JPEG parameter struct mismatch: library thinks size is 520, caller expects 512
JPEG parameter struct mismatch: library thinks size is 520, caller expects 512


I Use the /home/pacsone/ImageMagick/php5.3/imagick.so and copyed this to /usr/lib64/php5/extensions/

find / -name jpeg.so -print
/home/pacsone/ImageMagick/ImageMagick-5.5.6-Q16/modules/coders/.libs/jpeg.so
/usr/local/lib/ImageMagick-5.5.6-Q16/modules/coders/.libs/jpeg.so
/usr/local/lib/ImageMagick-5.5.6-Q16/modules/coders/jpeg.so

ldd /usr/local/lib/libMagick-5.5.6-Q16.so.0.0.0
linux-vdso.so.1 => (0x00007fff57dff000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007fe86013e000)
libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007fe85ff35000)
libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007fe85fd18000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007fe85f9d7000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fe85f7c8000)
libz.so.1 => /lib64/libz.so.1 (0x00007fe85f5af000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe85f392000)
libm.so.6 => /lib64/libm.so.6 (0x00007fe85f13b000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fe85eeae000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fe85ecaa000)
libc.so.6 => /lib64/libc.so.6 (0x00007fe85e91a000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fe85e714000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007fe85e4f7000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe8606cb000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007fe85e2f2000)

http://192.168.1.199/pacsone/Hello.php
imagick
ImageMagick support enabled
Magick Backend ImageMagick
ImageMagick version 5.5.6
PHP imagick version 0.9.11
MaxRGB 65535
Supported image formats IMPLICIT

Trying the imagick.so from /home/pacsone/ImageMagick/php5.4 or 5.2 did not load.

Where is the error ?

Thx for replay

Andreas



Posted: Sun Dec 23, 2012 6:22 pm
by pacsone
Did you have the GD PHP extension enabled? If so, try removing it as well as the entire package that it comes with to remove any possible conflicting shared libraries, then restart Apache and see if the error goes away or not.

Posted: Sun Dec 23, 2012 6:53 pm
by aflohr
Yes, this was the solution ! Thx