Welcome Guest Search | Active Topics | Sign In | Register

webview print bad image quality Options
Peter Madsen
Posted: Friday, March 22, 2019 9:45:55 AM
Rank: Newbie
Groups: Member

Joined: 3/22/2019
Posts: 2
Hi

When we print from the webview control the rendering seems to use a very heavy compression on images.
We need to print qr-codes, but the compression adds a lot of noise to the image.


Note: this doesn't happen when printing directly from chrome or other browsers.

Is there any way to change the quality/compression level in the webview like we can for the htmltopdf generator?

Kind regards
Peter Madsen
eo_support
Posted: Tuesday, March 26, 2019 2:28:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Hi,

Sorry about the delay. We have been trying to reproduce this issue on our end but have not been successful. We tried to load a QRCode png file directly with our TabbedBrowser sample application, then use Ctrl + P to print the page and we do not see noticeable quality issue. We used the latest build (19.0.83.0) during our test.

Do you have a test HTML page that we can try it here? You can send email the test file to us directly. See here for our email address:

https://www.essentialobjects.com/forum/test_project.aspx

Thanks!
Peter Madsen
Posted: Wednesday, March 27, 2019 6:44:32 AM
Rank: Newbie
Groups: Member

Joined: 3/22/2019
Posts: 2
Hi
Thanks for the reply.
Try to save the following html to a file and print it. Easiest way may be to print to pdf, and then zoom in.

Anyway, here is a side by side comparison (IE and EO webbrowser). Note this is rather large print, the real issue is with the QR codes the size of the original posted



<html>
<body>
<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAYAAACI7Fo9AAAM2ElEQVR4nO2UMa4tOw4De/+bnkkObvYNWM+0ihYJMFWXKbG/7/v+F5+xu2jv7d7nY24HeMbuor23e5+PuR3gGbuL9t7ufT7mdoBn7C7ae7v3+ZjbAZ6xu2jv7d7nY24HeMbuor23e5+PuR3gGbuL9t7ufT7mdoBn7C7ae7v3+ZjbAZ6xu2jv7d7nY24HeMbuor23e5+PuR3gGbuL9t7ufT7mdoBn7C7ae7v3+ZhZyyWJlg3gWNDvnaQU/aBo2XQXm/7eSUrRD4qWTXex6e+dpBT9oGjZdBeb/t5JStEPipZNd7Hp752kFP2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2vfhQ+grGR3V/duYt2tfRc+gLKS3V3du4l1t/Zd+ADKSvZJ2VRE4unOusE55lPsk7KpiMTTnXWDc8yn2CdlUxGJpzvrBueYT7FPyqYiEk931g3OMZ9in5RNRSSe7qwbnGM+xT4pm4pIPN1ZNzjHfIp9UjYVkXi6s25wjvkU+6RsKiLxdGfd4BzzKfZJ2VRE4unOusE55lPsk7KpiMTTnXWDc8yn2CdlUxGJpzvrBueYT7FPyqYiEk931g3OMZ9ip4mU5TQBe4UDwhyn++GTspwmYK9wQJjjdD98UpbTBOwVDghznO6HT8pymoC9wgFhjtP98ElZThOwVzggzHG6Hz4py2kC9goHhDlO98MnZTlNwF7hgDDH6X74pCynCdgrHBDmON0Pn5TlNAF7hQPCHKf74ZOynCZgr3BAmON0P3xSltME7BUOCHOc7odPynKagL3Kcv9LtGzCc5aHxL6rFP2gaNmE5ywPiX1XKfpB0bIJz1keEvuuUvSDomUTnrM8JPZdpegHRcsmPGd5SOy7StEPipZNeM7ykNh3laIfFC2b8JzlIbHvKkU/KFo24TnLQ2LfVYp+ULRswnOWh8S+qxT9oGjZhOcsD4l9Vyn6QdGyCc9ZHhL7rlL0g6JlE56zPCT2XcmLHp87BncempLlkqe/IK+4EL41D03JcsnTX5BXXAjfmoemZLnk6S/IKy6Eb81DU7Jc8vQX5BUXwrfmoSlZLnn6C/KKC+Fb89CULJc8/QV5xYXwrXloSpZLnv6CvOJC+NY8NCXLJU9/QV5xIXxrHpqS5ZKnvyCvuBC+NQ9NyXLJ01+QV1wI35qHpmS55OkvyCsuhG/NQ1Oy/G/9H9dw7S5GkpxuAAAAAElFTkSuQmCC' />
</body>
</html>
eo_support
Posted: Thursday, March 28, 2019 11:51:22 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Hi,

We tested your file with Google Chrome browser and we noticed the same problem. These tests produces good result:

1. Using IE to print the page to "Microsoft Print to PDF" printer;
2. Using Google Chrome to print to its built-in "Save As PDF" printer;
3. Using EO.WebBrowser to print it to paper;
4. Using EO.Pdf to convert it to PDF;

These test produces the bad result you mentioned:
1. Using EO.WebBrowser to print to "Microsoft Print to PDF" printer;
2. Using Google Chrome to print to "Microsoft Print to PDF" printer;

Note that for Google Chrome it produces different result depending on which PDF printer you are using. If you use Google Chrome's built-in "Save As PDF" printer, then the result is good. However if you use the system's "Microsoft Print to PDF" printer, then the result is bad.

As such the behavior is consistent between Google Chrome and EO.WebBrowser. This means the issue originates from the browser engine and we generally do not investigate such issue as we are not in a position to fix the browser engine itself. Due to the enormous size and complexity of the browser engine, for issues in the browser engine we usually wait for the Chromium team to resolve them first. Because the version of Chromium engine EO.WebBrowser uses is usually a few version older than the current Google Chrome version, it is possible that an issue has already been resolved in Google Chrome but we do not have it yet. In that case the next time we sync to the Chromium's code base we will receive the fix.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.