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
use opencv cv::imread to read a png,it's a 4 channel cv::mat with alpha channel.
but when I use libimagequant to compress that png file and write to disk, opencv read it as a 3 channel cv::mat which lost alpha channel.
how can I solve this problem. @leahneukirchen@mdonoughe@jaalto@rflynn
The text was updated successfully, but these errors were encountered:
PNG8 files don't have a separate alpha channel, they have transparency in palette entries. This should be possible to convert to a 4-channel image. Reading these files as 3-channel looks like an error.
I've seen people recommend IMREAD_UNCHANGED flag. Have you tried this?
use opencv cv::imread to read a png,it's a 4 channel cv::mat with alpha channel.
but when I use libimagequant to compress that png file and write to disk, opencv read it as a 3 channel cv::mat which lost alpha channel.
how can I solve this problem.
@leahneukirchen @mdonoughe @jaalto @rflynn
The text was updated successfully, but these errors were encountered: