Replies: 6 comments
-
Yes, it looks like there's some other setting that needs to be exposed. A Q value would be useful too. |
Beta Was this translation helpful? Give feedback.
-
I like to suggest a parameter, depth=8 I assume using IM Q16 libraries would be slower than Q8, so I have recompiled with IM Q8, if it's possible for VIPS to link to any available Q# in /usr/local/lib would be awesome. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, when you configure imagemagick with QN=xx it changes the size of various types, so you have to also rebuild everything that uses libMagick. You can't flip a switch at runtime. |
Beta Was this translation helpful? Give feedback.
-
I see, that worked for me by recompile with 8-bit libMagick source. Thanks! |
Beta Was this translation helpful? Give feedback.
-
It should be possible for libvips to save as 8-bit JP2 using an imagemagick compiled at Q16. I'll reopen for investigation. |
Beta Was this translation helpful? Give feedback.
-
8.10 has a new Let's tag this as an enhacement, perhaps for 8.11. |
Beta Was this translation helpful? Give feedback.
-
Compiled with the libvips master branch and latest ImageImagick with module enabled, Safari web browser could not support JPEG2000 in 16-bit sRGB.
Original image
Identify x.jpg JPEG 960x372 960x372+0+0 8-bit sRGB 72072B 0.000u 0:00.000
vips magicksave x.jpg x.jp2 --format JP2
Identify x.jp2 JP2 960x372 960x372+0+0 16-bit sRGB 420564B 0.000u 0:00.000
From Imagemagick convert x.jpg x.jp2
Identify x.jp2 JP2 960x372 960x372+0+0 8-bit sRGB 373349B 0.000u 0:00.000
Beta Was this translation helpful? Give feedback.
All reactions