DavidAnson / ConvertTo-Jpeg

A PowerShell script that converts RAW (and other) image files to the widely-supported JPEG format
MIT License
190 stars 46 forks source link

Unsupported HEIC ? #20

Closed daniel-tejeda-trimble closed 6 months ago

daniel-tejeda-trimble commented 12 months ago

Hello, Thanks for this script, super helpful! I'm having issues with a set of files (one example attached). This is odd since I've been using it but not sure why its showing unsupported. Any help is appreciated.

image

0F77B579199E4C0986570C26657A8AC9.zip

Thanks!

DavidAnson commented 12 months ago

No idea, sorry! Since the basic scenario already works for you, we can probably rule out setup and codec install issues. My guess is that perhaps that file is partially corrupt or it may be that newer Apple devices produce HEIC files that the current Microsoft codec does not understand.

matheusgomesms commented 12 months ago

Same here, took some photos with latest iOS and at the moment, without much research, it shows the files as "Unsupported" (and used before without any problem)

daniel-tejeda-trimble commented 12 months ago

No idea, sorry! Since the basic scenario already works for you, we can probably rule out setup and codec install issues. My guess is that perhaps that file is partially corrupt or it may be that newer Apple devices produce HEIC files that the current Microsoft codec does not understand.

Thanks for your answer. I'm curious, If Microsoft codec doesn't understand the file how can I open it and see it ok in photos? This is set of photos taking with the same device and I get [Unsupported] for all of them. I think the "newer apple device" may be what's happening.

DavidAnson commented 12 months ago

I'm not sure. The way this script loads images is not specific to any codec and has not changed in many years.

daniel-tejeda-trimble commented 12 months ago

I found the issue writing the exception to the output. Not sure if its powershell or what but the fact that I had [] chars in the absolute path was the problem. Once I changed this, it works.

image