Page 1 of 1

Photoshop .tiffs

Posted: 2011-11-16T17:46:27-07:00
by xentrica
I wrote an application using ImageMagick++ that accepts a single tiff image and chops it into smaller jpeg images. I have a sample tiff image I created in Photoshop a few years ago that works fine. When I try to create a new image file in photoshop and export it as tiff, that file fails to work with Imagemagick++. What am I doing wrong /or what settings in Photoshop must I use to create a tiff that will work with the ImageMagick++ API. The ImageMagick API version 6.4.8

Re: Photoshop .tiffs

Posted: 2011-11-16T17:51:11-07:00
by magick
Post a URL to one of your images. We need to reproduce the problem before we can comment.

Re: Photoshop .tiffs

Posted: 2011-11-16T18:03:48-07:00
by xentrica

Re: Photoshop .tiffs

Posted: 2011-11-16T18:33:01-07:00
by magick
Perhaps its a version problem with ImageMagick or libTIFF. Your image converted without complaint for us. We're using ImageMagick 6.7.3-6 and libTIFF, version 3.9.5.

Re: Photoshop .tiffs

Posted: 2011-11-16T18:45:53-07:00
by xentrica
Not sure what you are refering to "libTIFF"?

I include with my app the libraries:

CORE_RL_tiff_.dll
IM_MOD_RL_tiff_.dll

Those seem the appropiate libraries here. Do I need to upgrade those? Where might I find them?

Re: Photoshop .tiffs

Posted: 2011-11-16T19:13:09-07:00
by magick
Right, Windows. Just download / install the latest ImageMagick release from http://www.imagemagick.org/script/binar ... hp#windows.

Re: Photoshop .tiffs

Posted: 2011-11-17T16:15:55-07:00
by xentrica
I updated those two files and it did not fix the problem.

I also try to open my newer tiff file in my fresh ImageMagick install and get an error:

IMDisplayDoc function [DoReadImage] reported a warning. imdisplay.exe: Incompatible type for "RichTIFFJPTC"; tag ignored. 'TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/761

Though my older tiff file opens fine. any ideas why?

Re: Photoshop .tiffs

Posted: 2011-11-17T17:08:11-07:00
by xentrica
Update:

I took one of my tiff files that failed in ImageMagik and opened in GIMP. Resaved as a TIFF file and that file works fine. Even in my older install of ImageMagick. So it seems that newer versions of Photoshop create incompatible tiff files. I don't know enough about tiff images to resolve this other than to tell people of this and recommend using Gimp. It's not good because my clients would most likly be getting their tiff files from a scan shop(likely using Photoshop) and are not graphics people. I would love to find at least some settings in Photoshop to export a file my program can use. Or better yet some solution that would allow these Photoshop TIFF files to work in my program regardless of the settings.

Re: Photoshop .tiffs

Posted: 2011-11-17T18:09:56-07:00
by fmw42
On IM 6.7.3.6 Q16 Mac OSX Tiger, this works just fine, but one gets a warning about a tag. Nevertheless the image is converted just fine to jpg


convert Untitled1.tif Untitled1.jpg
convert: Untitled1.tif: wrong data type 7 for "RichTIFFIPTC"; tag ignored. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/761.

Re: Photoshop .tiffs

Posted: 2011-11-17T18:19:48-07:00
by xentrica
Unfortunately I have written a c++ extension that utilizes the IM libraries. That fails silently. In fact it seems to not even load the tiff into memory as the first thing I do before conversion to jpg is to just copy the original tiff to new location and that fails.