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

Add support for animated HEIC and AVIF when libheif has this feature #3629

Open
t00350320 opened this issue Aug 28, 2023 · 2 comments
Open

Comments

@t00350320
Copy link

vips copy gif2.gif gif2avif.avif

gif2 has animation effection ,
gif2avif is a static one.

Environment
(please complete the following information)

  • OS: [Linux version 3.10.0-1062.el7.x86_64 (gcc version 4.8.5 20150623]
  • Vips: [e.g. 8.14.2]

Additional context
Add any other context
gif2.zip
gif2avif.zip

@t00350320 t00350320 added the bug label Aug 28, 2023
@jcupitt jcupitt added enhancement and removed bug labels Aug 28, 2023
@jcupitt
Copy link
Member

jcupitt commented Aug 28, 2023

Hi again, you need:

vips copy 3198.avif[n=-1] x.avif

By default, libvips only opens the first page of a many page (or many frame) image. Set n to the number of pages to open, or -1 for all pages.

You'll find features like frame time and looping are not supported. When libheif adds these features, libvips will need to enhanced to use them.

I thought there was an open issue for this, but I can't find it :( Let's tag this as an enhancement.

@jcupitt jcupitt changed the title not support animation avif ? Add support for animated HEIC and AVIF when libheif has this feature Aug 28, 2023
@lovell
Copy link
Member

lovell commented Aug 28, 2023

Upstream libheif issue for this at strukturag/libheif#377

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

No branches or pull requests

3 participants