I'm wondering what steps you take in im_raw to take tiff to jpeg and then display those in a cck field.

When I attempt to run the command:

-density 300x300 -quality 100

I get this error:

* ImageMagick reported an error: convert: sites/default/files/abcdefg_3.tif: wrong data type 1 for "XMLPacket"; tag ignored. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525. convert: sites/default/files/abcdefg_3.tif: unknown field with tag 34665 (0x8769) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.
* ImageMagick reported an error: convert: sites/default/files/abcdefg_3.tif: wrong data type 1 for "XMLPacket"; tag ignored. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525. convert: sites/default/files/abcdefg_3.tif: unknown field with tag 34665 (0x8769) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.

Comments

adrinux’s picture

Status: Active » Closed (fixed)

Well, note that you shouldn't add quality in im_raw - the global setting in the imageapi config is used (see admin/settings/imageapi/config/imageapi_imagemagick ) and is in fact added on at the end of the any commands imagecache passes to imageapi.

But your error doesn't look like anything to do with that, imagemagick seems to be having problems with that tiff file, google with the error and you'll see others with the same problem (outside drupal). It's always worth trying your commands at a shell command line, to see if they work ok before you bring them into drupal/im_raw.

As far as convert from tiff to jpg - I'm not sure imageapi can do that correctly at the moment, there are issues with the naming of files - IIRC it will convert the file to a jpg, but will still have a .tiff extension.

Please see http://drupal.org/node/314553#comment-1452568 for an earlier outline of the the problem - there's nothing I can do in im_raw to fix the issue.

Closing this issue since it seems to have nothing to do directly with im_raw module.