1

How to rename all filles and add image size to file name

view story
linux-howto

http://unix.stackexchange.com – I can`t make this work. I have a lot of images and i want to rename his name and append image size to name using exiv2 eviv2 pr * prints all info about file # exiv2 pr 9b523e5a002268fe5067a928 File name : 9b523e5a002268fe5067a928 File size : 356433 Bytes MIME type : image/jpeg Image size : 1920 x 1200 Now i want rename my file to look like 9b523e5a002268fe5067a928_1920x1200.jpeg I allredy make something like this exiv2 pr * | grep "Image " | awk -F':' '{ print $2 }' | sed 's/ //g' it Give me image size but how join this to get the image MIME type to get the . (HowTos)