D
D
da0c2012-05-23 11:50:39
JPEG
da0c, 2012-05-23 11:50:39

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

6 answer(s)
G
Gregory, 2012-05-23
@difiso

imagemagick .
There are many settings, but with the right levers set ...

P
Pavel Osipov, 2012-05-23
@Pavel_Osipov

There is also www.graphicsmagick.org , I use it everywhere

E
egorinsk, 2012-05-23
@egorinsk

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.

A
Anatoly, 2012-05-23
@taliban

In any case, there will be slops, it is impossible to leave clarity and quality perfectly when reducing the image.

S
ShouldNotSeeMe, 2012-05-23
@ShouldNotSeeMe

If the conversion is done on the PC and not on the server, then IrfanView does a good job.

D
Dan, 2014-05-21
@golotyuk

If you are using PHP, I recommend using imagemagick . There are also a number of tools for optimizing the size of images for the Web . You can resize GD, and then optimize them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question