Renaming files controlling length of variables and file size in bytes

Started by Archive, May 12, 2010, 08:54:41 AM

Previous topic - Next topic

Archive

[Originally posted by rgspbh on 2009-10-31 16:37:27-07]

I've been playing with exiftool for some months, and I have two requests for new features or issues:

(1) - Control number of printed tag length:
I would like to rename files to a fixed with filename (easier to browse/sort) like:
20091001_180023__sz_1024x0768x08.JPG
20091010_181025__sz_0640x0480x08.JPG
20091011_181025__sz_2540x1923x12.JPG

exiftool -P -r -v5 -overwrite_original_in_place '-FileName&lt${CreateDate}__sz_${ImageWidth}x${ImageHeight}x${BitsPerSample}.%e' -d %Y%m%d_%H%M%S%%-2c ...

I know that these advanced formatting is available for filename, directory, date and extension. What about the other Tags (in this case ImageWidth,ImageSize and Bits Per Sample, but also others (camera model)

(2) - Rename file to include file size _in bytes_ not in kB or MB:
My additional request is to add file Size in bytes to file (also controlling its size) - this is important to find duplicates/croped versions of same image. Today I'm using FileSize, but has spaces (that needs a script to erase them) and you get many files with 4MB - no good to find duplicates. With this I could create a script to rename and safely erase all my duplicates (same create date, same size and same file size).

Thanks in advance,
rgspbh.

Archive

[Originally posted by exiftool on 2009-10-31 17:58:40-07]

You can solve issue number 1 with user-defined tags.
You can solve issue number 2 with the -n option,
or by specifying "Filesize#" instead of "Filesize".

Sorry to be so terse, but I'm just on my way out the door.

- Phil