TheAxeDude / ZiniGo

Utility to backup magazines from the Zinio service as PDF, bypassing/Removing their DRM.
MIT License
51 stars 9 forks source link

How about using higher svg image quality? #17

Open bookyue opened 3 years ago

bookyue commented 3 years ago

I noticed that there is a q=80 parameter in the SVG URL. I guess the q means image quality and done a simple test. I am not sure whether it can affect the final pdf file quality. If it can, should we use q=100 instead of q=80 or add a quality option in the config file?

<image x="0" y="-1" width="911" height="1206" xlink:href="http://cdn-assets.ziniopro.com/var/site_3184/storage/issues/120/svg/img/page-018-img1.jpg?q=80"/>

I tested both q=80 and q=100 parameters. And the result is below.

image image

PS attached the original Html file if you need it. 205560_16.html.tar.gz

TheAxeDude commented 3 years ago

That's a great find! I'll work on including this ASAP :)

digitalfreaknyc commented 3 years ago

That's a great find! I'll work on including this ASAP :)

Was this included yet?

la0fan commented 1 year ago

I have encountered the same demand, hope to see such a function as soon as possible, thank you!

TheAxeDude commented 1 year ago

Havent had a chance to give this any focus yet, but still think its worth doing.

jessienab commented 1 year ago

Definitely interested in this too, the output images are quite rough quality wise at q=80.

I feel the easiest option is to simply do a replacement (sed?) within the HTML before writing it to PDF; is that feasible?

lagrange101 commented 1 year ago

Very much interested in this, too - securing a substantial Zinio library for backup - there is a not insignificant loss in picture quality through the 80% quality reduction. No issue for pure text but pictures are suffering. Would be great to get the full quality in case something is happing to Zinio servers.