mtgrosser / rszr

Fast image resizer for Ruby
https://mtgrosser.github.io/rszr/resizing.html
MIT License
32 stars 1 forks source link

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

Open ttgiub opened 1 month ago

ttgiub commented 1 month ago

Hi,

I am trying to save an image in the avifformat 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 commented 1 month ago

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 commented 1 month ago

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