-
Beta Was this translation helpful? Give feedback.
Answered by
jcupitt
Aug 14, 2023
Replies: 1 comment 1 reply
-
Hi @jfconekta, We improved the rules for when to write 16-bit PNG in 8.10 (I think it was). You now need to set the image interpretation to RGB16 or GREY16 to write a 16-bit PNG. In your code, try: out = out.cast(VIPS_FORMAT_USHORT).copy(VImage::option ()->set ("interpretation", "grey16")); Of course the image will look very dark, I expect you know. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jfconekta
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @jfconekta,
We improved the rules for when to write 16-bit PNG in 8.10 (I think it was). You now need to set the image interpretation to RGB16 or GREY16 to write a 16-bit PNG.
In your code, try:
Of course the image will look very dark, I expect you know.