Page 1 of 1

Problem convert tif to jpg

Posted: 2009-10-21T06:29:47-07:00
by Fab2k
Hello everybody,

I'm new at this board and just made my first steps with ImageMagick. I'm working on a windows xp system and downloaded the ImageMagick 6.5.5-8-Q16 version.

I have some troubles with converting tif to jpg files. First of all ImageMagick works pretty slow and my files aren't that big. The maximum file size is around 600kb with width maximum 19000px and height 14000px.

Is it normal that ImageMagick has troubles with this size of images?

I need to use ImageMagick with the phmagick plugin for a web project so the convertion process can't take that long.

I would really appreciate some help with this problem cause I'm kind of desprate. I tried to search the forum for help but I guess I make a rookie mistake and the forum problems are mostly pretty specific.

Cheers in advance!

Fabian

Re: Problem convert tif to jpg

Posted: 2009-10-21T07:07:54-07:00
by magick
The maximum file size is around 600kb with width maximum 19000px and height 14000px.
See http://www.imagemagick.org/script/architecture.php. Because of the size of your image it is most likely being cached to disk which is 1000 times slower than memory. On our system, with 32GB of memory, the conversion takes just a few seconds. If all you need is to convert from TIFF to JPEG without resizing, you probably want a custom program that simply grabs one TIFF scanline at a time and writes the scanline to JPEG.

Re: Problem convert tif to jpg

Posted: 2009-10-21T07:18:43-07:00
by Fab2k
Thanks for the fast response.

I didn't read the architecture page so the problem finally makes sense. I do need to resize the image. Are there any options to bypass this problem?

Re: Problem convert tif to jpg

Posted: 2009-10-21T07:26:55-07:00
by magick
You have three options: 1) get a faster machine with more memory; or 2) use some other program; or 3) adjust your expectations about how fast a computer can manipulate more than a quarter million pixels.

Re: Problem convert tif to jpg

Posted: 2009-10-21T07:34:49-07:00
by Fab2k
Just discovered that my response was a bit stupid.

Thanks anyways!

Re: Problem convert tif to jpg

Posted: 2009-12-22T14:28:22-07:00
by webereinc
As a follow-up on this thread... I, too, need to convert some large black-and-white TIFs into GIFs or JPGs for viewing on the web. Specifically, a mention in one of the previous posts said: "If all you need is to convert from TIFF to JPEG without resizing, you probably want a custom program that simply grabs one TIFF scanline at a time and writes the scanline to JPEG." Is anyone aware of a program such as this? Wouldn't it be quicker to convert this way?

Also, is there a parameter that can be passed to convert to have it use a lower pixel depth while converting? On my linux (Ubuntu) machine, Q16 is creating a huge pixel cache while trying to convert a 14400x9600 black-and-white TIF into a GIF. Otherwise, I will need to find a way to re-compile a Q8 version of ImageMagick into my Linux machine.

Re: Problem convert tif to jpg

Posted: 2009-12-22T16:57:53-07:00
by fmw42