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

Rszr::SaveError : Unsupported format with avif file #21

Open
ttgiub opened this issue Sep 12, 2024 · 2 comments
Open

Rszr::SaveError : Unsupported format with avif file #21

ttgiub opened this issue Sep 12, 2024 · 2 comments

Comments

@ttgiub
Copy link

ttgiub commented Sep 12, 2024

Hi,

I am trying to save an image in the avif format but it does not work.

#!/usr/bin/ruby
require 'rszr'

image = Rszr::Image.load('a.jpg')
image.save('a.avif')

Rszr raises a SaveError Unupported format.

According to the debian webpage of the libimlib2-dev package, it should work with the libheif-dev. But it does not...

The code is running under WSL with a debian trixie/sid.
libimlib2-dev is installed (version 1.12.1-1.1+b2)
libheif-dev is installed (version 1.18.1-2)
/usr/lib/x86_64-linux-gnu/imlib2/loaders/ contains heif.so and heif.la

Do you have any idea ?

Thanks

@mtgrosser
Copy link
Owner

I think this is due to the fact that the current version of the Imlib2 AVIF/HEIF loader only supports loading, but doesn't implement the _save function.

@ttgiub
Copy link
Author

ttgiub commented Sep 12, 2024

I think that I will have to wait...
Thanks a lot for your fast answer

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

No branches or pull requests

2 participants