Page 1 of 1
Unnable to generate thumbnail from JPG compressed TIF file
Posted: 2008-07-22T17:03:56-07:00
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.
Re: Unnable to generate thumbnail from JPG compressed TIF file
Posted: 2008-07-22T17:25:57-07:00
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
Re: Unnable to generate thumbnail from JPG compressed TIF file
Posted: 2008-07-22T20:16:24-07:00
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!
Re: Unnable to generate thumbnail from JPG compressed TIF file
Posted: 2008-07-22T22:16:42-07:00
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
Re: Unnable to generate thumbnail from JPG compressed TIF file
Posted: 2008-07-23T10:20:24-07:00
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!
Re: Unnable to generate thumbnail from JPG compressed TIF file
Posted: 2008-07-23T11:22:05-07:00
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.
Re: Unnable to generate thumbnail from JPG compressed TIF file
Posted: 2008-07-23T13:27:33-07:00
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.
Re: Unnable to generate thumbnail from JPG compressed TIF file
Posted: 2008-07-23T15:12:03-07:00
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?