bruce1271
06-28-2001, 04:42 PM
I would like to use xv to convert my .jpg to 50% of its original size. I dont want ot use the gui for 50 pics. Is ther ea way to use xv as a script?? or is there a program called convert or something?? thanks
|
Click to See Complete Forum and Search --> : XV editor in script mode needed to reduce pic size bruce1271 06-28-2001, 04:42 PM I would like to use xv to convert my .jpg to 50% of its original size. I dont want ot use the gui for 50 pics. Is ther ea way to use xv as a script?? or is there a program called convert or something?? thanks moyix's ghost 06-29-2001, 03:46 AM Sure: convert -geometry 50% <input> <output> To process a whole bunch of images at once, try this script (run it in the dir with the pictures you need converted, or, better yet, a copy of that dir, since I'm not 100% certain this won't screw something up; I tested it but still... ;) ): for i in `ls`; do convert -geometry 50% "$i" small_"$i"; done Special note: this script won't do files with spaces. Maybe someone smarter than I can figure that one out... justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |