ConvertTo-Jpeg icon indicating copy to clipboard operation
ConvertTo-Jpeg copied to clipboard

Unsupported HEIC ?

Open daniel-tejeda-trimble opened this issue 1 year ago • 5 comments

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!

daniel-tejeda-trimble avatar Nov 17 '23 23:11 daniel-tejeda-trimble

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.

DavidAnson avatar Nov 18 '23 01:11 DavidAnson

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)

matheusgomesms avatar Nov 19 '23 02:11 matheusgomesms

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.

daniel-tejeda-trimble avatar Nov 20 '23 17:11 daniel-tejeda-trimble

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

DavidAnson avatar Nov 20 '23 17:11 DavidAnson

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

daniel-tejeda-trimble avatar Nov 20 '23 18:11 daniel-tejeda-trimble