HEIC metadata

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
leatherneck6017
Posts: 5
Joined: 28 Nov 2020 21:53

HEIC metadata

Post by leatherneck6017 »

Hello all, long-time user first time poster. I did search the forum prior to posting this, so apologies if it's already been asked/answered.

Now that iPhone photos are HEIC format, I want to be able to sort by date taken in XYplorer. Unfortunately, I can't seem to get a XY column to read the metadata for the files. I do see that basic metadata is in the Info Panel, though no info on cameral model, GPS, etc. I've tried changing the custom column properties in XY to manually include the HEIC extension, instead of just {:Photos} or {:Image}. I've attached a screen snip for reference. Any help is appreciated! (Win10 Pro x64, XYplorer 21.30)
Capture.PNG
To see the attached files, you need to log into the forum.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: HEIC metadata

Post by highend »

And Windows Explorer does display that info (GPS, model, etc.) for such an image?
If not, the OS doesn't provide the necessary codec to read that data.
In that case try to get a codec (maybe K-Lite?) or lookup exiv2 / exiftool / mediainfo if they can get the necessary info and use them to fill a custom column (or tag them via: viewtopic.php?f=7&t=22304 to get faster results)...

I don't have any .heic images to test this...
One of my scripts helped you out? Please donate via Paypal

leatherneck6017
Posts: 5
Joined: 28 Nov 2020 21:53

Re: HEIC metadata

Post by leatherneck6017 »

highend wrote: ↑28 Nov 2020 22:21 And Windows Explorer does display that info (GPS, model, etc.) for such an image?
It does indeed. I don't need XY to be able to populate a column with all of that extra stuff. But date taken would be great.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: HEIC metadata

Post by highend »

viewtopic.php?p=150223#p150223

Get that script, execute it on a .heic file and show the "XY properties" and "IDs with names & values" sections in code tags here
One of my scripts helped you out? Please donate via Paypal

leatherneck6017
Posts: 5
Joined: 28 Nov 2020 21:53

Re: HEIC metadata

Post by leatherneck6017 »

highend wrote: ↑28 Nov 2020 22:29 Get that script, execute it on a .heic file and show the "XY properties" and "IDs with names & values" sections in code tags here
Here you go. Thanks!

Code: Select all

XY properties: 28
=================
#LinkTarget = 
#ShortcutTarget = 
#JunctionTarget = 
#ResolveJunctions = *snip*\IMG_0030.HEIC
#ResolveJunctionsAll = *snip*\IMG_0030.HEIC
#Label = 
#Tags = 
#Comment = 
#HardLinks = 1
#AspectRatio = 3:4
#audio.bitdepth = 
#audio.bitrate = 
#audio.channels = 
#audio.length = 
#audio.samplerate = 
#mp3.album = 
#mp3.artist = 
#mp3.Comments = 
#mp3.genre = 
#mp3.title = 
#mp3.track = 
#mp3.year = 
#date.created = 11/27/2020 15:59:44
#date.modified = 11/27/2020 08:04:53
#date.accessed = 11/28/2020 12:59:21
#image.dimensions = 3024 x 4032
#image.datetaken = 
#version = 

Code: Select all

IDs with names & values: 47
===========================
#001 | Size: 3.56 MB
#002 | Item type: HeicFile
#003 | Date modified: 11/27/2020 08:04
#004 | Date created: 11/27/2020 15:59
#005 | Date accessed: 11/28/2020 10:59
#006 | Attributes: A
#009 | Perceived type: Image
#010 | Owner: *snip*
#011 | Kind: Picture
#012 | Date taken: 10/25/2019 17:00
#019 | Rating: Unrated
#030 | Camera model: iPhone 11
#031 | Dimensions: 3024 x 4032
#032 | Camera maker: Apple
#042 | Program name: 13.1.3
#057 | Total size: 2.72 TB
#061 | Computer: *snip*
#164 | File extension: .HEIC
#165 | Filename: IMG_0030.HEIC
#169 | Space free: 1.30 TB
#174 | Bit depth: 24
#175 | Horizontal resolution: 96 dpi
#176 | Width: 3024 pixels
#177 | Vertical resolution: 96 dpi
#178 | Height: 4032 pixels
#187 | Shared: No
#190 | Folder name: Through 26-Nov-2020
#191 | Folder path: *snip*
#192 | Folder: *snip*
#194 | Path: *snip*\IMG_0030.HEIC
#196 | Type: HeicFile
#202 | Link status: Unresolved
#254 | Space used: 52%
#255 | EXIF version: 0231
#257 | Exposure bias: 0 step
#258 | Exposure program: Normal
#259 | Exposure time: 1/120 sec.
#260 | F-stop: f/1.8
#261 | Flash mode: No flash, auto
#262 | Focal length: 4 mm
#263 | 35mm focal length: 26
#264 | ISO speed: ISO-80
#269 | Metering mode: Pattern
#270 | Orientation: Rotate 270 degrees
#275 | White balance: Auto
#294 | Shared with: Everyone; <Unknown Contact>
#295 | Sharing status: Shared

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: HEIC metadata

Post by highend »

Then use custom columns (with a script) like: return property("#12", <cc_item>);
This will return the date taken as you can see in your list for the second section...
One of my scripts helped you out? Please donate via Paypal

leatherneck6017
Posts: 5
Joined: 28 Nov 2020 21:53

Re: HEIC metadata

Post by leatherneck6017 »

highend wrote: ↑28 Nov 2020 22:43 Then use custom columns (with a script) like: return property("#12", <cc_item>);
This will return the date taken as you can see in your list for the second section...
It worked, thank you very much!

RalphM
Posts: 2143
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: HEIC metadata

Post by RalphM »

You could also try if exiftools sees the date taken and just timestamp the files accordingly.
I have a CFA (Open With) entry that I use for my photos once I've copied them to the PC (though they're supposedly not HEIC anymore after this step).

Code: Select all

|"Timestamp MC with EXIF-Date"\;*.jpg>::timestamp mc, '<dateexif>'
Just checked and even displaying the photos folder on my iPhone directly in XY shows all my photos as JPG not HEIC, even though I have the HEIC setting enabled on my phone??
Ralph :)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

leatherneck6017
Posts: 5
Joined: 28 Nov 2020 21:53

Re: HEIC metadata

Post by leatherneck6017 »

RalphM wrote: ↑29 Nov 2020 03:52 Just checked and even displaying the photos folder on my iPhone directly in XY shows all my photos as JPG not HEIC, even though I have the HEIC setting enabled on my phone??
The HEIC files on my PC were a result of a manual download of all iCloud photos. If I go to my iCloud folder, they are all JPG.

Post Reply