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:
- Create a super sample of the image, maintaining original aspect ratio
- Apply watermark to super sample
- Create the various sized thumbnails using the watermarked super sampled image
Additional requirements:
- Best quality possible (does this mean PNG over JPG?)
- Smallest file size possible (does this mean JPG over PNG?)
- Use density of 72×72, 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.
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.