-
Notifications
You must be signed in to change notification settings - Fork 50
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
class "jxlsave" not found #467
Comments
Hello @euzada, Did you try the official win binary? It should include https://github.com/libvips/build-win64-mxe/releases/tag/v8.15.2 You need 8.15.2 w64 all. |
Yes I did. getting the following error:
|
Oh, strange, let me try here. |
I tried on a win10 VM and it seems to work:
And the image seems fine. I'll try with the latest build. |
I could not reproduce this with the $ python
Python 3.12.3 (tags/v3.12.3:f6650f9, Apr 9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyvips
>>> ref = pyvips.Image.new_from_file('zebra.jpg')
>>> ref.jxlsave('x.jxl', lossless=True)
>>> x = pyvips.Image.new_from_file('x.jxl', access='sequential')
>>> (ref - x).abs().max()
0.0
>>> |
Hi, I figure it out. I am having this image only for output image larger than 10kx10k image. For smaller images, it works, for larger it said jxlsave not found. |
Could it be running out of memory? Until very recently, libjxl could use HUGE amounts of ram for larger images. vipsdisp 3.0.4 for win is built against a recent libjxl. It could be worth checking memuse for that program when saving a large JXL image. |
Indeed, it sounds like an OOM error. I was able to create a 100000x100000 image without any issues. $ python
Python 3.12.3 (tags/v3.12.3:f6650f9, Apr 9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyvips
>>> x = pyvips.Image.black(100000, 100000, bands=3)
>>> x.jxlsave('x.jxl')
>>> pyvips.Image.new_from_file('x.jxl', access='sequential')
<pyvips.Image 100000x100000 uchar, 3 bands, srgb>
>>> |
I tried making a JXL image with libjxl 0.7:
That's 11gb of memory for a 12k x 12k image. With 0.10.1 I see:
A more reasonable 1.3gb, though it's noticeably slower for some reason. |
Hi @jcupitt,
I tried to save an image as jpeg XL but getting the following error:
I compiled libvips for windows with
./build.sh --with-jpegli
but didn't work. I saw that since version v8.11.0 thatAdd libjxl to 'all' group dependencies for JPEG XL support (https://github.com/libvips/build-win64-mxe/pull/28).
. I used 'all' version and still having the same issue. I cannot use jxlsave in pyvips.pyvips version = 2.2.3
libvips version = vips-8.15.2
Any suggestion?
The text was updated successfully, but these errors were encountered: