News for hackers. Stuff that matters.
Re:Using ImageMagick to make sharp web-sized photographs by vladstudio on Saturday July 06, 2013 @12:42PM (#5999261)
My solution: https://github.com/vladstudio/Vladstudio-smart-resize-Bash-s...

The biggest problem of scaling down an image is to find right settings for resampling and sharpening. After many expreiments, I found it impossible to achieve good results by simply running convert with a line of arguments. So I came up with this script, which basically does the following:

* configures -interpolate bicubic -filter Lagrange; * resizes source image 80%; * applies -unsharp 0.44x0.44+0.44+0.008; * repeats steps 2 & 3 until target size is reached.

Re:Using ImageMagick to make sharp web-sized photographs by tszming on Saturday July 06, 2013 @01:33PM (#5999425)
This looks interesting, do you have any sample images for comparison?
Re:Using ImageMagick to make sharp web-sized photographs by free on Saturday July 06, 2013 @01:44PM (#5999465)
This is fine if you have a limited set of images that you handpick and optimize.

Do you have any suggestions when there are thousands of images and all this needs to be automated?

Re:Using ImageMagick to make sharp web-sized photographs by icebraining on Saturday July 06, 2013 @08:56PM (#6000605)
Use GNU parallel: https://www.gnu.org/software/parallel/

It can distribute the work across the available CPU cores, and it can even distribute the work across different machines using SSH: https://www.gnu.org/software/parallel/man.html#example__dist...

Re:Using ImageMagick to make sharp web-sized photographs by natch on Saturday July 06, 2013 @02:18PM (#5999558)
He has an example at his github link where he uses a simple bash for loop to do many images at once.
Re:Using ImageMagick to make sharp web-sized photographs by medde on Saturday July 06, 2013 @03:40PM (#5999806)
but it does seem inefficient if you often have lots of images to process
Re:Using ImageMagick to make sharp web-sized photographs by natch on Friday July 12, 2013 @11:30AM (#6033099)
how so?