Is there support for getting basic info about format e.g. ICO and width/height from icon files?
> exiftool ~/Downloads/Ico-file-for-testing.ico
ExifTool Version Number : 12.42
File Name : Ico-file-for-testing.ico
Directory : /Users/richardmonette/Downloads
File Size : 203 kB
File Modification Date/Time : 2022:10:18 10:16:47-04:00
File Access Date/Time : 2022:10:18 10:16:53-04:00
File Inode Change Date/Time : 2022:10:18 10:16:48-04:00
File Permissions : -rw-r--r--
Error : Unknown file type
I tried the above but it seems to not be recognized. (I checked the formats listed at https://exiftool.org/ for version 12.48 and it doesn't seem to be there. Sorry for doing my testing on 12.42, but that's the most recent stable version from Homebrew https://formulae.brew.sh/formula/exiftool)
> gm identify ~/Downloads/Ico-file-for-testing.ico
/Users/richardmonette/Downloads/Ico-file-for-testing.ico=> ICO 256x192+0+0 DirectClass 8-bit 198.1Ki 0.000u 0m:0.000022s
I noticed that gm has support for ICO, and is able to report the basic width/height. I'm hoping to standardize around exiftool for my needs so would be great if this was supported.
Thank you again for taking the time to consider my message and apologies in advance if I've missed something basic.
Thanks for the suggestion. I'll add this feature to ExifTool 12.49
- Phil
Hi Phil,
I noticed that version 12.49 https://exiftool.org/history.html is out now, I tested quickly and it works with ICO as I was hoping.
One small note, the MIME Type is being reported vaguely as octet-stream, I believe this should be: image/x-icon I think it would be updated here: https://github.com/exiftool/exiftool/blob/master/lib/Image/ExifTool.pm#L654 Do you accept Pull Requests on the Github repo (perhaps I can submit one to fix it myself)?
Thank you very much for adding this feature so quickly, very appreciated!
> ./exiftool glyph.ico
ExifTool Version Number : 12.49
File Name : glyph.ico
Directory : /Users/richardmonette/test/files
File Size : 20 kB
File Modification Date/Time : 2022:01:17 10:58:43-05:00
File Access Date/Time : 2022:01:17 11:07:29-05:00
File Inode Change Date/Time : 2022:01:17 10:58:43-05:00
File Permissions : -rw-r--r--
File Type : ICO
File Type Extension : ico
MIME Type : application/octet-stream
Image Count : 1
Image Width : 128
Image Height : 128
Num Colors : 0
Color Planes : 1
Bits Per Pixel : 8
Image Length : 19496
Image Size : 128x128
Megapixels : 0.016
I was curious to know when the next "production release" will be published to MetaCPAN?
The reason I ask is that Homebrew tracks the production release (see: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/exiftool.rb#L6) which makes it more convenient for OSX users such as myself to pickup the changes.
Again, much thanks for all your effort on this project : )
Quote from: richardmonette on October 20, 2022, 11:32:18 AMOne small note, the MIME Type is being reported vaguely as octet-stream, I believe this should be: image/x-icon
... and presumably image/x-cursor for .cur files?
I'll make this change in 12.50, which I was hoping to make a production version.
- Phil
Quote... and presumably image/x-cursor for .cur files?
Hey Phil, I'm not sure for cursor files, but that seems correct or at least reasonable.
re: 12.50, is there an ETA? I'm keen to get this updated in my system : )
As always, thank you!
12.50 should be early next week if all goes well.
- Phil