Welcome Guest Search | Active Topics | Sign In | Register

WebView without UI: how to improve the image quality? Options
svma
Posted: Tuesday, March 16, 2021 1:20:04 PM
Rank: Member
Groups: Member

Joined: 10/19/2020
Posts: 12
Hello,
What is the "screen resolution" when running WebView without UI and is there a way to improve the image quality in this case?
eo_support
Posted: Tuesday, March 16, 2021 1:47:56 PM
Rank: Administration
Groups: Administration

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

It's your default screen DPI value. So for example, if your default screen is at 96 dpi , then that's the resolution the image will be. However in practice this value doesn't matter much as a lot of images doesn't even store DPI values. I am not exactly sure what image quality you are talking about, if you are talking about screen capture quality, then you can not change that as it basically captures whatever would have been displayed on screen.

Thanks!
svma
Posted: Tuesday, March 23, 2021 4:40:01 AM
Rank: Member
Groups: Member

Joined: 10/19/2020
Posts: 12
Capture images, obtained from WebView are always blurred, compared to the corresponding screenshots. I mean that quality.
eo_support
Posted: Tuesday, March 23, 2021 8:15:30 AM
Rank: Administration
Groups: Administration

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

Please make sure your own application is high DPI aware. See this post for sample code:

https://www.essentialobjects.com/forum/postst11391_PageImages-are-blurry.aspx

Thanks!
svma
Posted: Tuesday, March 23, 2021 9:44:59 AM
Rank: Member
Groups: Member

Joined: 10/19/2020
Posts: 12
The documentation says that it works only for desktop applications: https://docs.microsoft.com/en-us/windows/win32/api/windef/ne-windef-dpi_awareness
We are running server applications though.

Is there any option for server applications?

Thanks.
eo_support
Posted: Tuesday, March 23, 2021 2:45:10 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Have you tried it?
svma
Posted: Wednesday, March 24, 2021 11:37:35 AM
Rank: Member
Groups: Member

Joined: 10/19/2020
Posts: 12
Yes, I have.
eo_support
Posted: Wednesday, March 24, 2021 12:51:56 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
In that case please create a small test application and then PM us remote access to your server and we will investigate further on your server.
svma
Posted: Thursday, March 25, 2021 1:46:13 PM
Rank: Member
Groups: Member

Joined: 10/19/2020
Posts: 12
I've created the sample project on GitHub https://github.com/svma-softwareag/CaptureTest.git, with instructions, so you could run it anywhere on your environment.
This sample project mimics the core steps that our application does in reality with Essential Objects WebView.

Thanks.
eo_support
Posted: Thursday, March 25, 2021 3:43:19 PM
Rank: Administration
Groups: Administration

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

We tested your project here and we are not able to reproduce the problem. It must have something related to your server. Is it possible for you to provide remote access to your server?

Thanks!
svma
Posted: Friday, March 26, 2021 4:06:17 AM
Rank: Member
Groups: Member

Joined: 10/19/2020
Posts: 12
Hello,

It makes no sense to access the specific server, because the product runs on thousands servers all over the world, and everywhere with the same effect. Any Microsoft Cloud Windows VM, for example, should suffice.

On the other hand, may I ask, what do you mean "we are not able to reproduce the problem"? Have you got clean and crisp images? Or is the image with "highDPI" really better then the one without "highDPI"?

If that is so and such, can you please attach those images?

Thanks.
eo_support
Posted: Friday, March 26, 2021 7:51:40 AM
Rank: Administration
Groups: Administration

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

The forum doesn't support attachment. So we have emailed the capture result to you.

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.