I had been using GDI+ & CxImage libraries for saving my images
captured from the desktop and thought of moving to google's LibWebp as it
is promising good quality images with better compression than JPEG or
PNG.
I capture the desktop either using using directX or GDI on windows, encode and save them or transfer over the network and decode them on the other side. Every thing looks good except that the images captured with text are distorted but the same is not happening for web pages with heavy text content.
The texts are encoded properly whenever the background color changes(either being selected or highlighted). I do not understand what the problem is.
here is an image that was compressed using libwebp, you can clearly see that the selected area is encoded properly and the rest are randomly distorted.
Here is the webpConfig I used for compression
m_webp_config.quality = 50;
m_webp_config.alpha_quality = 0;
m_webp_config.lossless = false;
m_webp_config.method = 3;
m_webp_config.alpha_compression = false;
m_webp_config.alpha_filtering = false;
//m_webp_config.sns_strength = 0;
m_webp_config.use_sharp_yuv = false;
m_webp_config.autofilter = false;
m_webp_config.filter_type = 0;
m_webp_config.filter_sharpness = false;
m_webp_config.filter_strength = 0;
m_webp_config.near_lossless = false;
m_webp_config.thread_level = 1;
I couldn't figure out what I am doing wrong. Can any one help me fix the issue? Thanks in advance.
I'm usin WebPPictureImportRGBA to import RGBA buffer into WebPPicture. Is this wrong? Then how come the same works for web pages with a lot of text that too with alpha?
--
You received this message because you are subscribed to the Google Groups "WebP Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webp-discuss+unsubscribe@webmproject.org.
To post to this group, send email to webp-d...@webmproject.org.
Visit this group at https://groups.google.com/a/webmproject.org/group/webp-discuss/.
For more options, visit https://groups.google.com/a/webmproject.org/d/optout.