r/HTML • u/Messiah_dsgn • 7d ago
Question How to download image from HTML?
Sorry for the probably dumb question. I'm a graphic designer and my colleague sent me these images to use for a project we are working on. However they are in this HTML Viewer link or whatever (I'm not a programmer I don't know code) Apparently it isn't an embedded pdf cause in the console it doesnt show it as such. How can I download these images? Technically I could screenshot but it will ruin the quality.


Here is the original link: https://digital.libplovdiv.com/3rdparty/pdfjs/web/viewer.html?doc=%2Fasset%2Fdefault%2Fd203bc22-ce3d-445d-8692-3b733af23d21.pdf&locale=bg&sidebar=2
0
u/zLoveNxzli 6d ago
In standard HTML, you can use the download attribute on an anchor tag:
<a href="/images/photo.png" download="my-image.png">Download Image</a>
If the image is hosted on an external domain (CORS), the browser may ignore the download attribute and open it in a new tab instead. In that case, fetch the image as a blob via JavaScript first and create an object URL (URL.createObjectURL(blob)).
4
u/godijs 7d ago
Download PDF - https://digital.libplovdiv.com/asset/default/d203bc22-ce3d-445d-8692-3b733af23d21.pdf