jpegoptim icon indicating copy to clipboard operation
jpegoptim copied to clipboard

Unable to strip photos in HEIC format.

Open huabin opened this issue 10 months ago • 1 comments

Hello,

First thank you so much for creating this, I love it.

But there's an error, it seems unable to strip photos in HEIC format.

What did I do?

Run the command jpegoptim -s IMG_9230.HEIC

What did I get?

IMG_9230.HEIC  [ERROR]

What have I tried?

I tried several photos in HEIC format, all have this issue. And I tried to convert the photo's format to jpg. It works well.

huabin avatar Apr 24 '24 06:04 huabin

Unfortunately heic image format is not jpeg and so you should not expect, that jpegoptim will work with it. You will get the same error with any non jpeg input.. like:

>jpegoptim -s jpegoptim.exe
jpegoptim.exe  [ERROR]

Oldes avatar Apr 26 '24 09:04 Oldes

HEIC seems to be Apple's variant of HEIF. I don't see jpegoptim supporting HEIC, unless support for it is added to existing JPEG libraries (which seems unlikely).

tjko avatar May 13 '24 16:05 tjko

@tjko I noticed that. Maybe, I should change the title to hope to add support for HEIC

huabin avatar May 14 '24 00:05 huabin