Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avif output ext wrong #82

Closed
alanwilter opened this issue Mar 21, 2023 · 2 comments
Closed

avif output ext wrong #82

alanwilter opened this issue Mar 21, 2023 · 2 comments
Labels
Milestone

Comments

@alanwilter
Copy link

If I do:

mkdir -p out_sharp_webp
time sharp --effort 4 -q 100 --format webp -i 'out_ce_png/*.png' -o out_sharp_webp/

It outputs:

out_sharp_webp/CP-0_0.webp
...

identify out_sharp_webp/CP-0_0.webp
out_sharp_webp/CP-0_0.webp WEBP 2576x1934 2576x1934+0+0 8-bit sRGB 579228B 0.000u 0:00.000

Correct.

Now if I do:

mkdir -p out_sharp_avif
time sharp --effort 4 -q 100 --format avif -i 'out_ce_png/*.png' -o out_sharp_avif/

I got:

out_sharp_avif/CP-0_0.png
...

PNG? But it's not PNG!

identify out_sharp_avif/CP-0_0.png
identify-im6.q16: improper image header `out_sharp_avif/CP-0_0.png' @ error/png.c/ReadPNGImage/4092.

I know it's avif but it's not getting the right extension.

@vseventer
Copy link
Owner

Thanks for reporting - turns out this is a bug specific to HEIF files.

@vseventer vseventer added the bug label Mar 22, 2023
@vseventer vseventer added this to the v4.1.1 milestone Mar 22, 2023
@vseventer
Copy link
Owner

Released as v4.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants