maaaaz / webscreenshot

A simple script to screenshot a list of websites
GNU Lesser General Public License v3.0
653 stars 162 forks source link

Best quality possible? #40

Closed TravelTrader closed 4 years ago

TravelTrader commented 4 years ago

First I have to say that it's a great tool. I am so happy that I found it!

Now I need it for a screenshot where I use the cv2 library on it. And the quality leads to about 10% errors. Here you can find a part of it.

My settings are

quality=100
window_size=2400,1000
format=jpg
...

Of course, I tried around with the numbers. But with highest quality the window size does not change a lot.

Any ideas or hints? Thanks!

maaaaz commented 4 years ago

Hello @TravelTrader, Thanks for your kind feedback.

I'm no expert at all in image processing, but:

Cheers.

TravelTrader commented 4 years ago

Thanks @maaaaz. Good ideas. I tried around but could not improve it.

For me it's a miracle why a screenshot on my desktop is much better than a screenshot using your library and a better solution... maybe it's because the code runs on a server without a window manager?

maaaaz commented 4 years ago

Thanks @maaaaz. Good ideas. I tried around but could not improve it.

Argh! Sad to hear.

For me it's a miracle why a screenshot on my desktop is much better than a screenshot using your library and a better solution... maybe it's because the code runs on a server without a window manager?

I really don't know. One other idea is that you can try to add here a phantomjs zoomfactor statement like for instance page.zoomFactor = 1.25; (125% zoom)