You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot get it to work with saving a 16 bit RGB image. I end up with 8 bit RGB. Upon decoding the file again it gives me state.raw_info.bitdepth == 8 .
I tried with : lodepng::encode(pstr, VImage, m_x, m_y, LCT_RGB, 16U);
and also using state:
lodepng::State state;
state.info_raw.bitdepth = 16U;
state.info_raw.colortype = LCT_RGB;
state.encoder.auto_convert = 1;
state.info_png.color.bitdepth = 16;
state.info_png.color.colortype = LCT_RGB;
Hi,
I cannot get it to work with saving a 16 bit RGB image. I end up with 8 bit RGB. Upon decoding the file again it gives me state.raw_info.bitdepth == 8 .
I tried with : lodepng::encode(pstr, VImage, m_x, m_y, LCT_RGB, 16U);
and also using state:
lodepng::State state;
state.info_raw.bitdepth = 16U;
state.info_raw.colortype = LCT_RGB;
state.encoder.auto_convert = 1;
state.info_png.color.bitdepth = 16;
state.info_png.color.colortype = LCT_RGB;
The text was updated successfully, but these errors were encountered: