[Digikam-users] running a small shell script in order to turn images into grey

Wybo wybo at dekkerdocumenten.nl
Mon Sep 15 13:17:19 BST 2014


On 2014-09-14 22:06, Martin Kaspar wrote:
> for i in *jpg ; do mogrify -colorspace Gray "$i" ; done

you need to repeat "$i" for output:

for i in *jpg ; do mogrify -colorspace Gray "$i" "$i" ; done

>
> this is just a quick hack. i haven't tried it. also, it's not interactive and
> simply changes all jpg's to grayscale, even if they already are grayscale.

no problem to convert anyway, but you can use jpeginfo to check if it's 
necessary (grey -> 8bit, color -> 24bit)

> btw we need more information about imagemagick.

man (1) mogrify
man (1) convert
man (1) ImageMagick
google...
-- 
Wybo



More information about the Digikam-users mailing list