Thanks so much! Here's what i ended up with:
for filename in *.png*;
do
inname=`convert $filename -format "%t" info:`
size=`convert $filename -format "%wx%h" info:`
mv $filename "${size}_${inname}.png";
done
It works great (I took the advice of getting rid of the space and replacing with an ...
Search found 2 matches
- 2012-05-30T14:02:40-07:00
- Forum: Users
- Topic: Batch rename with image dimensions
- Replies: 6
- Views: 14790
- 2012-05-29T14:16:38-07:00
- Forum: Users
- Topic: Batch rename with image dimensions
- Replies: 6
- Views: 14790
Batch rename with image dimensions
Hi All,
I am a newcomer to both ImageMagick and scripts so please excuse my ignorance. I am using IM 6.7.7-0 2012-05-17 Q16 and running a script on Windows 7 using Cygwin v4.1.10(4).
I am trying to batch rename thousands of small images with their resolution (width & height) as a prefix, followed ...
I am a newcomer to both ImageMagick and scripts so please excuse my ignorance. I am using IM 6.7.7-0 2012-05-17 Q16 and running a script on Windows 7 using Cygwin v4.1.10(4).
I am trying to batch rename thousands of small images with their resolution (width & height) as a prefix, followed ...