I have a wiki page with several images that are screenshots taken on a 1920x1080 screen. I usually change the image size in the wiki page (through the Advanced tab of the Edit image dialog) to 800x(whatever keeps the ratio), but it of course can be zoomed in when reading the page.
The issue I’m having is with the PDF export (have set it to be client-side, but I guess it would be the same with the newer server-side solutions).
I have seen the following:
- the wiki-resized image in heavily blurred, as if it was stretched back from the resized version (while the image is narrow on the wiki page, it has full width in the PDF), while the unresized image is much more readable
- I tried with BMP, PNG and JPEG formats, but none of them respect the DPI I set to the image when exported to the PDF (being a render from a web page I don’t know whether that makes any sense, it just seemes something to try)
Trying to make ad educated guess, I’d say that (1) is due to the fact that the image is resized with height and width HTML img tag attributes, that remain valid when exporting to PDF.
I randomly searched about this and discovered the picture
HTML element - that I didn’t know about - maybe it could help here.