Photoshop .tiffs

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
xentrica
Posts: 18
Joined: 2011-02-13T21:30:57-07:00
Authentication code: 8675308

Photoshop .tiffs

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Photoshop .tiffs

Post by magick »

Post a URL to one of your images. We need to reproduce the problem before we can comment.
xentrica
Posts: 18
Joined: 2011-02-13T21:30:57-07:00
Authentication code: 8675308

Re: Photoshop .tiffs

Post by xentrica »

User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Photoshop .tiffs

Post 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.
xentrica
Posts: 18
Joined: 2011-02-13T21:30:57-07:00
Authentication code: 8675308

Re: Photoshop .tiffs

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Photoshop .tiffs

Post by magick »

Right, Windows. Just download / install the latest ImageMagick release from http://www.imagemagick.org/script/binar ... hp#windows.
xentrica
Posts: 18
Joined: 2011-02-13T21:30:57-07:00
Authentication code: 8675308

Re: Photoshop .tiffs

Post 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?
xentrica
Posts: 18
Joined: 2011-02-13T21:30:57-07:00
Authentication code: 8675308

Re: Photoshop .tiffs

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Photoshop .tiffs

Post 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.
xentrica
Posts: 18
Joined: 2011-02-13T21:30:57-07:00
Authentication code: 8675308

Re: Photoshop .tiffs

Post 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.
Post Reply