Answer the question
In order to leave comments, you need to log in
Script to automatically generate Jpeg thumbnails?
Good afternoon, colleagues,
for a number of projects, you have to use a script to generate high-resolution tiff images for web previews. Naturally, when downsampling and saving to Jpeg, artifacts may appear - such as phantom counters.
I used to make a script for Photoshop, tried PIL for python, settled on PerlMagick. But all the same, sometimes "sloppy" appear.
Therefore, I decided to ask the respected habra community - what scripts do you use to prepare previews?
Answer the question
In order to leave comments, you need to log in
imagemagick .
There are many settings, but with the right levers set ...
Distortions appear most likely not because of the tool you are using, but because of incorrect settings, such as anti-aliasing, JPEG compression quality.
To find the optimal values, make a test set of images, and with different settings, generate previews and choose the ones that are better. Please note that, for example, the compression rate in libjpeg and in Photoshop are different: if 50-60 is enough in Photoshop, in libjpeg you need to set 75-85 for the same quality.
p.s. I'm cooking with GD in PHP. Works flawlessly.
In any case, there will be slops, it is impossible to leave clarity and quality perfectly when reducing the image.
If the conversion is done on the PC and not on the server, then IrfanView does a good job.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question