Unnable to generate thumbnail from JPG compressed TIF file

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
BWT

Unnable to generate thumbnail from JPG compressed TIF file

Post by BWT »

Hi,
when I'm trying to generate jpeg thumbnail from regular or ZIP or LZW compressed TIF file ImageMagick works fine but whenever I'm trying to do it with JPG compressed TIF file I'm getting this error:

Error: convert: 0xC0000005: access violation
Source: ImageMagickObject.MagickImage.1
Method: Convert
Stack Trace: at ImageMagickObject.MagickImageClass.Convert(Object[]& pArrayVar)

Here's a link to the "good" file:
http://toolkit.brandwizard.net/bwt/Good ... e_ZIP.tiff
and here's is a link to the "bad" file:
http://toolkit.brandwizard.net/bwt/Bad_700K_RGB_JPG.tif

Thank you very much.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Unnable to generate thumbnail from JPG compressed TIF file

Post by fmw42 »

see viewtopic.php?f=3&t=11325&hilit=tiff+delegate

jpg compression needs to be built into your tiff delegate according to the above
BWT

Re: Unnable to generate thumbnail from JPG compressed TIF file

Post by BWT »

Thanks. Any link to the instructions or details on it would be greatly appreciated. What I found searching the board is not clear to me, sorry.
I downloaded and installed dynamic binary release for my web application, so I'm not sure how can I build it in. -list configure says that I have following:
DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib

Thanks!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Unnable to generate thumbnail from JPG compressed TIF file

Post by fmw42 »

The best I can offer is to search Google for "libtiff jpeg"

You can go to the libtiff home page at http://www.libtiff.org

see http://www.libtiff.org/build.html and search for jpeg -- it will tell you how to configure it to use jpeg

and also see tech note 2 at http://www.remotesensing.org/libtiff/TIFFTechNote2.html regarding support for jpg

also see http://www.remotesensing.org/libtiff/ma ... pdf.1.html as that note how to use -j to compile with jpeg compression

see also http://fr.rpmfind.net/linux/rpm2html/se ... btiff.so.3 for some libtiff libraries that claim to have built-in support jpeg compression


hope this helps
BWT

Re: Unnable to generate thumbnail from JPG compressed TIF file

Post by BWT »

Thank you very much, fmw42. While I'm struggling with libtiff library perhaps you or any one can tell me how to make "new-style" compression jpeg? When I'm saving the file with compression in Photoshop CS3 it says: "this comp is not supported in older TIFF readers. Use compression?" Is ImageMagick "older TIFF reader"?
Thanks!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Unnable to generate thumbnail from JPG compressed TIF file

Post by fmw42 »

I have no idea about this. I think IM will read Tiffs however the libtiff has been compiled. That is IM is not restricted, but relies upon the libtiff for handling of Tiffs.
BWT

Re: Unnable to generate thumbnail from JPG compressed TIF file

Post by BWT »

And the strange thing is that IM with version 6.3.1-Q16 is processing them well, but starting with 6.4 is not. So my understanding is that downloading dynamic binary dll will not do the trick (and I'm using windows, so linux files would not work for me), I have to download the entire project and compile it with certain options. I'm afraid it's a little too complicated for me. :?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Unnable to generate thumbnail from JPG compressed TIF file

Post by fmw42 »

If it worked with 6.3.1-Q16 and not 6.4 (I presume also Q16), then you may want to post to Bugs and see what they say. Post an example image that does not work, but works/worked in 6.3.1 so they can see what has changed.

P.S. Where did the Tiff library come from in your 6.3.1 IM and where is it coming for your current 6.4? Is it possible a differnent libtiff version was being used or compiled differently?
Post Reply