Reputation: 1
I am sure this can be done somehow, but my limited knowledge with the UNIX command line needs a nudge here. What I want to do is the following:
Any lead would be appreciated.
Upvotes: 0
Views: 245
Reputation: 14376
for i in `ls *.png`
do
params=`get parameters from $i`
mv $i params$i
done
left as an exercise for the OP is the program to get the information from the png file
Note that sips
is the bsd command to get image information so:
height=`sips -g pixelHeight $i`
width=`sips -g pixelWidth $i`
mv $i $heightX$width$i
Upvotes: 1