Commands for ImageMagick to create thumbnails

13,433

Check out the ImageMagick documentation:

The best quality possible is complicated since difference images compress differently. I'm partial to PNG since it has a variety if compression techniques available to allow for experimentation.

Share:
13,433
StackOverflowNewbie
Author by

StackOverflowNewbie

Updated on June 04, 2022

Comments

  • StackOverflowNewbie
    StackOverflowNewbie almost 2 years

    Given an photograph uploaded by a user, what is best approach to creating a number various sized thumbnails Using ImageMagick (or GraphicsMagick)? My guess to the steps:

    1. Create a super sample of the image, maintaining original aspect ratio
    2. Apply watermark to super sample
    3. Create the various sized thumbnails using the watermarked super sampled image

    Additional requirements:

    1. Best quality possible (does this mean PNG over JPG?)
    2. Smallest file size possible (does this mean JPG over PNG?)
    3. Use density of 72x72, units is ppi

    Since I am not that familiar with the intricacies of IM (or GM), some guidance to the best commands that meet my objectives would be highly appreciated. Thanks.

  • StackOverflowNewbie
    StackOverflowNewbie over 13 years
    I'm familiar with the basic commands. As a matter of fact, I can already do what I need to do. The problem is that I am not sure if my approach is the best. There are so many options to ImageMagick.
  • John Percival Hackworth
    John Percival Hackworth over 13 years
    I'd suggest using the commands recommended in the docs, since they're known to work. Supersampling an image for scaling down is largely pointless.
  • Meetai.com
    Meetai.com almost 10 years
    Better to put those commands here, as it's a headache to read that documentation.