Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

shell script for utilizing imagemagiq to turn images into grey

$
0
0
hello dear opensuse-fans


how to view photos and to rapidly change the major categories

i have several hundred images (photographs) taht i want to view on opensuse linux version 13.1


i want to view the images - and of while doing so i want to turn the colored images into b/w

Question; which is the best - ie. the quickest way to do so.

note; i have installed the following thigns on my opensuse 13.1:

- gimp the great grahical tool
- digicam - the great tool to view images and pictures
- Gwenview Version 4.11.4 on KDE 4.11.5


so again here the question: which tool allowes to view the color(ed) image and to turn it - on the fly - in to black and white?

BTW: can i tell linux to swith the colors - in general - to black and white? is this doable...


looks like we could write a small shell script, utilizing imagemagick.- maybe like this:

Code:

for i in *jpg ; do mogrify -colorspace Gray "$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.
btw we need more information about imagemagick.


see the results:

Code:

martin@linux-70ce:~/Bilder>
martin@linux-70ce:~/Bilder> for i in *jpg ; do mogrify -colorspace Gray "$i" ; done
mogrify: unable to open image `*jpg': Datei oder Verzeichnis nicht gefunden @ error/blob.c/OpenBlob/2643.
mogrify: no decode delegate for this image format `*jpg' @ error/constitute.c/ReadImage/552.
martin@linux-70ce:~/Bilder>

what can i do!?

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>