Search found 2 matches
- 2011-07-15T21:13:31-07:00
- Forum: Users
- Topic: Mogrify all files in directory, and add suffix.
- Replies: 8
- Views: 38678
Re: Mogrify all files in directory, and add suffix.
cd /Users/fred/tmp1 mogrify -path /Users/fred/cyclops2/ -format "_Resized.jpg" -resize 50% *.png cd /Users/fred/tmp2 filelist=$(ls) for file in $filelist; do mv "$file" "$(echo "$file" | sed 's/._/_/g' )" done Brilliant, it worked perfectly. Thank you so much.
- 2011-07-14T12:42:57-07:00
- Forum: Users
- Topic: Mogrify all files in directory, and add suffix.
- Replies: 8
- Views: 38678
Mogrify all files in directory, and add suffix.
Version: 6.71-0 Unix I am trying to resize all pngs in a directory, there a couple hundred so I don't really want to do it by hand. I want to keep the old files, and I want the new files to append a suffix on the end. TempImage.png creates TempImage_Resized.png Any help on how to do this would be ...