Mobile app version of vmapp.org
Login or Join
Nickens508

: Using imagemagick to create vibrant images I'm in the process of helping out a friend who has a bunch of inventory pics. Most appear faded/washed out, and generally dull. I really like the

@Nickens508

Posted in: #Gimp #Imagemagick

I'm in the process of helping out a friend who has a bunch of inventory pics. Most appear faded/washed out, and generally dull. I really like the effect as described here: www.abeautifulmess.com/2012/07/how-to-create-vibrant-color-photographs.html, however, I'm trying to do this using ImageMagick because there are hundreds (if not thousands) of images to convert, and I'd like to be able to convert them in an automated manner.

They're also on S3, so the process would be: download -> convert -> upload.

I've played around with modifying the brightness in imagemagick (http://www.imagemagick.org/www/command-line-options.html#brightness-contrast) but that alone doesn't seem to help. Are there options I'm missing or steps I can do that would help?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Nickens508

3 Comments

Sorted by latest first Latest Oldest Best

 

@Jamie315

Please see Fred's scripts for one of the most impressive collections of ImageMagick scripts for automatic processing, ie.:


autocolor






autotone






bcimage






enrich





including lots of other saturators / vintage effects to help spice up your images.
www.fmwconcepts.com/imagemagick/

10% popularity Vote Up Vote Down


 

@BetL875

Using ImageMagick I can think of two approaches to batch pseudo-enhance image quality.

I was using the source image from the link you gave for comparison:



1. Two steps involving normalize then auto-gamma filter

convert input.png -normalize normalized.png




convert normalized.png -auto-gamma output.png




Depending on our images' source quality we may also experiment with the auto-level filter for color leveling if needed.



2. Single step sigmoidal-contrast filter for a quick contrast enhancement

convert input.png -sigmoidal-contrast 7,50% output.png




Using this filter will enhance contrast with strength given in the first value (here 7) and a given base of here 50%. These values need adaption for optimum results.

In case we don't care on the original image, or in case we work on a backup copy only we can replace the convert command (which lets us define another output file) and use mogrify instead (to overwrite the source image).

We will not be able to convert all images to best possible results. This depends on far too many factors and can only be done manually for each source image separately.

10% popularity Vote Up Vote Down


 

@Goswami567

Screening an image with itself in photoshop is equivalent to either -negate -gamma 0.5 -negate or -fx '1-((1-u)^2)' in ImageMagick (the first one is probably faster, -fx is notoriously slow.)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme