I am very new to Image Magick and have used the basic image magick commands.
I am currently working in a use case where I want to get the background color of a given image and use that to create a placeholder image (low quality very small image but with the same dimension of the actual image).
To find the background color of an image, I am using the following command -
Code: Select all
convert original.jpeg -resize 1x1 txt:-
Code: Select all
convert -size 2400x1474 xc:#2E2B2D -define jpeg:extent=20kb flat.jpeg
As I will be running these command from a Java program, its an overkill for me if I need to write the background color of the image in a text file --> parse/read that text file --> run another command to create the placeholder image.
Image Magick Version - Version: ImageMagick 7.0.8-28 Q16 x86_64 2019-02-19
OS - Mac OS - 10.13.3
Thanks in advance,
Sabya