Speed Up Resizing?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Post by glennrp »

Use the Q8 configuration of ImageMagick if you aren't already.

You are right about the reason: the TIFFs get expanded internally
to 64 bits per pixel (Q16) or 32 bits per pixel (Q8).

If you are running *nix, you could investigate the San Diego
Supercomputer Center's image tools. They are not maintained
any more (since 1995) but they are free and can rescale TIFFs
using only 1 bit per pixel for internal storage. You might be able
to incorporate that somehow in your work stream for the initial
scaledown of TIFFs before processing them with ImageMagick.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

If you can get them to work scale them to say 4 time your final dimensions, then let IM finish the job to create a grey scale anti-aliased image.

In actual fact this is riught what the -thumbnail operator does to improve its speed, scale, then use a resize on the smaller version, though that will not help you in this case.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Output to JPEG (or GIF) should always be the final step, and these should not be used as the inital source image (unless it can not be helped) as both formats are lossy. They loss information when saving images. GIF because fo color limitations, JPEG because of its compression methodology. They should never be used at the intermediate format between image processing steps, is quality is of concern.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

If the JPEG is the final image, that is fine, just try not to further process the JPEG, unless quality loss is acceptable (such as thumbnail generation).
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply