Mobile app version of vmapp.org
Login or Join
Sherry646

: Command line interface-based way to desaturate and posterize an image? This is by far my most common task, and I'd say I've wasted about 1000 mouse clicks on it in my raster-based program.

@Sherry646

Posted in: #Color #Gimp #SoftwareRecommendation

This is by far my most common task, and I'd say I've wasted about 1000 mouse clicks on it in my raster-based program.

Because it's so common for me to start off desaturating an image and then posterizing it, I'd like to write a shell script that does the same, that way I can process an entire directory automagically and simply get on with my work... There are only so many hours in the day. If I can make my computer do all the mouse clicks for me, go away and drink a few cups of coffee while it does so, then come back to it, that's infinitely better for me.

So how can I accomplish these two tasks using the CLI?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Sherry646

2 Comments

Sorted by latest first Latest Oldest Best

 

@Hamaas979

ImageMagick is the most awesome and powerful CLI image editing tool I know. It runs on most operating systems.


For desaturation, it looks like a -colorspace gray is the tool of choice but desaturation is apparently a more complex topic than one might think. There is a discussion on the right method(s) here
There are examples for posterizing in the docs:


Using the -posterize parameter
Color quantization main chapter

10% popularity Vote Up Vote Down


 

@Gail6891361

This is typically called batch processing and GIMP supports it. More info:
www.gimp.org/tutorials/Basic_Batch/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme