PNGs from iPhone

Bulk Rename Utility How-To's

PNGs from iPhone

Postby gkln » Sat Oct 03, 2020 11:16 pm

Hi,

I rename all my pics according to "yyyyMMdd_hhmmss ...". With JPEGs, BRU works fine but not with PNGs that are created as screenshots on iPhones.
In group "Auto Date (8)" in the drop-down-list of "Type" there is no selection returning the right date (creation oder modification date of the PNG on the iPhone).
One problem arrives from the fact that BRU cannot access directly the picture on iPhone in their directory - it is possible to click through to this directory, but then the directory looks in BRU empty, As a result, I have first to copy all files from Iphone to my HDD with windows explorer,- but then all filedates (creation, modification, accessed) become the actual value of the copy action. Espessially if the screenshots are copied a couple of days after they were taken in another time zone, it is troublesome to reconstruct the correct day and time (a little help is that the time as hh:mm is mostly on top of every screenshot, but not the date).

With the help of exiftool and the gui I found, that the required data are available in the metadata of th PNG, in the Xmp-values as "DateCreated". Well, I could execute
Code: Select all
-charset filename=latin "-FileName<XMP:DateCreated" -d "%Y%m%d_%H%M%S %%f.%%e"

and this works (apart that when executed from exiftool-GUI-commandline an access violation at address ... will be reported) - but isn't there a more convenient solution with BRU GUI? Of course, I could pack this code into a little bat-file (then it works without access violation) ... but I do not feel lucky with administering bat-files, one for every special purpose - in times of GUIs.

W732EN
BRU V 3.4.0.0

Regards, Gerhard
gkln
 
Posts: 2
Joined: Wed Sep 09, 2020 7:51 pm

Re: PNGs from iPhone

Postby Luuk » Sun Oct 04, 2020 8:32 pm

Greeting Gerhard. Please to try latest v3.4.1.0 because it says "Added support for renaming over Network paths (\\computer\share\)". Im not know if this fixes you, but its good to try, yes? There is more information here: http://www.bulkrenameutility.co.uk/foru ... f=1&t=5161. If this not works with iPhone, Im not know how to fix, but here is good exiftool command....

Code: Select all
exiftool -r -ext png -CharSet filename=latin -d "%Y%m%d_%H%M%S %%f.%%e" -if "$XMP:DateCreated and $FileType='PNG' and ${FileName;s/(.{15}).*/\1/;s/ /_/}!=${XMP:DateCreated;}" -FileName"<XMP:DateCreated" TheFolderName


The command is to be very reliable, and looks under TheFolderName recursively. It finds png with XMP:DateCreated that do not begin with XMP:DateCreated, and then puts the name like you explain. But there is not to worry, because if png already have the XMP:DateCreated, this command leaves them alone. But please to try v3.4.1.0 first, because its much easier and Im also think it works for you, so it can be much easier to change the settings.
Luuk
 
Posts: 804
Joined: Fri Feb 21, 2020 10:58 pm

Re: PNGs from iPhone

Postby Luuk » Mon Oct 05, 2020 1:18 am

Greetings Gerhard. The exiftool command was not reliable because it only verifies Date, but not also Time. This because I used "!=" for numbers instead of "ne" for text, so the space in middle of Date and Time makes the exiftool stop comparison at the space! So here is better command.
Code: Select all
exiftool -r -ext png -charset filename=latin -d "%Y%m%d_%H%M%S" -if "$XMP:DateCreated and $FileType='PNG' and ${FileName;s/(.{15}).*/\1/} ne ${XMP:DateCreated;}" -Filename"<${XMP:DateCreated;} $Filename" TheFolderName

Also with the exiftool, you can change the -Filename to -Testname and then it presents to the screen what the rename would be. Im still believe the latest v3.4.1.0 helps the best, but notice the error and want to fix, just in case.
Luuk
 
Posts: 804
Joined: Fri Feb 21, 2020 10:58 pm

Re: PNGs from iPhone

Postby Admin » Tue Oct 06, 2020 1:29 am

As of version 3.4.1.0 , Bulk Rename Utility supports the following metadata for renaming images:

- EXIF v1 and v2 (jpg and tiff files).
- All Windows File Properties (these properties come directly from the Windows File Explorer, so whatever Windows support is available to BRU). An example is "Item Date" which is the main date for an image in Windows.

At the moment it looks like Windows does not support XPM metadata for PNG files, so it is also not supported by BRU, sorry.
Admin
Site Admin
 
Posts: 2886
Joined: Tue Mar 08, 2005 8:39 pm


Return to How-To