Missing JPG, PNG, TIF in ImageMagick Supported formats

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
danielmauch

Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by danielmauch »

Hi

I installed Imagick but i cannot see the ImageMagick Supported formats:
- JPG
- PNG
- TIF

Any ideas?

Here my phpinfo:
imagick
imagick module enabled
imagick module version 2.1.1
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version ImageMagick 6.4.0 04/12/08 Q16 http://www.imagemagick.org
ImageMagick copyright Copyright (C) 1999-2008 ImageMagick Studio LLC
ImageMagick release date 04/12/08
ImageMagick Number of supported formats: 162
ImageMagick Supported formats A, AI, ART, ARW, AVI, AVS, B, BMP, BMP2, BMP3, BRF, C, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPS, DPX, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, FAX, FITS, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, HISTOGRAM, HTM, HTML, ICB, ICO, ICON, INFO, IPL, ISOBRL, K, K25, KDC, LABEL, M, M2V, MAP, MAT, MATTE, MIFF, MONO, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PLASMA, PNM, PPM, PREVIEW, PS, PS2, PS3, PSD, PWP, R, RAF, RAS, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMZ, WPG, X3F, XBM, XC, XCF, XPM, XPS, XV, Y, YCbCr, YCbCrA, YUV

Directive Local Value Master Value
imagick.locale_fix 0 0
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by mkoppanen »

Configure and compile ImageMagick with the needed libraries.
Mikko Koppanen
My blog: http://valokuva.org
danielmauch

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by danielmauch »

Hi

How can I do that in debian? With ssh / Putty?

Thanks
Daniel
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by mkoppanen »

danielmauch wrote:Hi

How can I do that in debian? With ssh / Putty?

Thanks
Daniel
Yes:

apt-get install libpng12-dev libjpeg62-dev
Mikko Koppanen
My blog: http://valokuva.org
danielmauch

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by danielmauch »

Hi

I get:

Code: Select all

lvps87-230-78-33:~# apt-get install libpng12-dev libjpeg62-dev
Reading package lists... Done
Building dependency tree... Done
libpng12-dev is already the newest version.
libjpeg62-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 63 not upgraded.
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by mkoppanen »

Can you post config.log of ImageMagick somewhere? If you try using the command line convert tool (convert -thumbnail 100 test.jpg test.png) does that work?
Mikko Koppanen
My blog: http://valokuva.org
danielmauch

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by danielmauch »

hi

Here it is:
http://sualda.de/config.log

Daniel
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by mkoppanen »

can you check ldd -r imagick.so to see if it is linked against correct libraries. Do you have an old installation of ImageMagick on the server?
Mikko Koppanen
My blog: http://valokuva.org
danielmauch

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by danielmauch »

hi

Code: Select all

ldd -r imagick.so 
does not work (debian)

daniel
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by mkoppanen »

Did you give a full path to the imagick.so file?
Mikko Koppanen
My blog: http://valokuva.org
danielmauch

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by danielmauch »

Hi

Ok now it worked and the result is
/usr/lib/php5/20060613+lfs# ldd -r imagick.so
libMagickWand.so.1 => /usr/local/lib/libMagickWand.so.1 (0xb7efe000)
libMagickCore.so.1 => /usr/local/lib/libMagickCore.so.1 (0xb7db1000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7c79000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7c67000)
libdl.so.2 => /lib/tls/libdl.so.2 (0xb7c63000)
libm.so.6 => /lib/tls/libm.so.6 (0xb7c3e000)
/lib/ld-linux.so.2 (0xb7feb000)
undefined symbol: zend_ce_iterator (./imagick.so)
undefined symbol: core_globals (./imagick.so)
undefined symbol: executor_globals (./imagick.so)
undefined symbol: zval_add_ref (./imagick.so)
undefined symbol: OnUpdateBool (./imagick.so)
undefined symbol: zend_hash_internal_pointer_reset_ex (./imagick.so)
undefined symbol: zend_exception_get_default (./imagick.so)
undefined symbol: add_next_index_string (./imagick.so)
undefined symbol: zend_throw_exception_ex (./imagick.so)
undefined symbol: zend_declare_class_constant_string (./imagick.so)
undefined symbol: zend_hash_num_elements (./imagick.so)
undefined symbol: zend_hash_move_forward_ex (./imagick.so)
undefined symbol: _estrdup (./imagick.so)
undefined symbol: php_checkuid_ex (./imagick.so)
undefined symbol: _zval_dtor_func (./imagick.so)
undefined symbol: php_sprintf (./imagick.so)
undefined symbol: _zval_copy_ctor_func (./imagick.so)
undefined symbol: zend_hash_get_current_key_type_ex (./imagick.so)
undefined symbol: call_user_function (./imagick.so)
undefined symbol: php_file_le_pstream (./imagick.so)
undefined symbol: php_dirname (./imagick.so)
undefined symbol: zend_get_std_object_handlers (./imagick.so)
undefined symbol: zend_hash_find (./imagick.so)
undefined symbol: php_file_le_stream (./imagick.so)
undefined symbol: add_assoc_double_ex (./imagick.so)
undefined symbol: _array_init (./imagick.so)
undefined symbol: zend_throw_exception (./imagick.so)
undefined symbol: zend_hash_copy (./imagick.so)
undefined symbol: zend_object_std_dtor (./imagick.so)
undefined symbol: zend_unregister_ini_entries (./imagick.so)
undefined symbol: add_assoc_long_ex (./imagick.so)
undefined symbol: zend_objects_store_put (./imagick.so)
undefined symbol: php_info_print_table_start (./imagick.so)
undefined symbol: _estrndup (./imagick.so)
undefined symbol: zend_hash_get_current_data_ex (./imagick.so)
undefined symbol: expand_filepath (./imagick.so)
undefined symbol: _efree (./imagick.so)
undefined symbol: zend_fetch_resource (./imagick.so)
undefined symbol: zend_wrong_param_count (./imagick.so)
undefined symbol: zend_register_ini_entries (./imagick.so)
undefined symbol: php_info_print_table_row (./imagick.so)
undefined symbol: add_assoc_string_ex (./imagick.so)
undefined symbol: zend_register_internal_class_ex (./imagick.so)
undefined symbol: display_ini_entries (./imagick.so)
undefined symbol: zend_declare_class_constant_long (./imagick.so)
undefined symbol: add_assoc_stringl_ex (./imagick.so)
undefined symbol: zend_object_std_init (./imagick.so)
undefined symbol: _emalloc (./imagick.so)
undefined symbol: add_assoc_zval_ex (./imagick.so)
undefined symbol: php_trim (./imagick.so)
undefined symbol: php_info_print_table_end (./imagick.so)
undefined symbol: _php_stream_cast (./imagick.so)
undefined symbol: zend_error (./imagick.so)
undefined symbol: php_explode (./imagick.so)
undefined symbol: php_stat (./imagick.so)
undefined symbol: add_next_index_zval (./imagick.so)
undefined symbol: zend_object_store_get_object (./imagick.so)
undefined symbol: php_check_open_basedir_ex (./imagick.so)
undefined symbol: add_index_zval (./imagick.so)
undefined symbol: add_next_index_double (./imagick.so)
undefined symbol: zend_class_implements (./imagick.so)
undefined symbol: _convert_to_string (./imagick.so)
undefined symbol: zend_parse_parameters (./imagick.so)
undefined symbol: zend_register_internal_class (./imagick.so)
undefined symbol: _object_init_ex (./imagick.so)
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by mkoppanen »

Does ldconfig --print show libjpeg and libpng ?
Mikko Koppanen
My blog: http://valokuva.org
danielmauch

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by danielmauch »

Result:

Code: Select all

libjpeg.so.62 (libc6) => /usr/lib/libjpeg.so.62
        libjpeg.so (libc6) => /usr/lib/libjpeg.so
        libjasper-1.701.so.1 (libc6) => /usr/lib/libjasper-1.701.so.1
PNG is missing

Code: Select all

libpam.so.0 (libc6) => /lib/libpam.so.0
        libopencdk.so.8 (libc6) => /usr/lib/libopencdk.so.8
        libopcodes-2.17.so (libc6) => /usr/lib/libopcodes-2.17.so
        libodbcinst.so.1 (libc6) => /usr/lib/libodbcinst.so.1
        libodbccr.so.1 (libc6) => /usr/lib/libodbccr.so.1
danielmauch

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by danielmauch »

Any Ideas?
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Missing JPG, PNG, TIF in ImageMagick Supported formats

Post by mkoppanen »

To be honest I don't see why you don't have jpeg support.
Mikko Koppanen
My blog: http://valokuva.org
Post Reply