I'm having a huge problem. I'm trying to download a scaled and rendered image using these CSS properties:
transform: scale(2);
image-rendering: pixelated;
Which will result to this:
<img style="margin:15px 15px; transform: scale(2); image-rendering:pixelated;" src="https://images.habbo.com/c_images/album1584/FAS03.png">
As you would know if I tried to save the image it wouldn't save with the applied CSS properties and saves as the original dimensions. Is there any way I can apply these properties and then download the image like it is displayed above using the CSS properties?
I'm basically trying to scale the image without losing quality and download it scaled. I can't just save the image and resize it because it will become very blurry.
I tried using html2canvas but failed here is the link to the codepen: https://codepen.io/Ownslo/pen/XWdgByY
^ but I'm pretty sure using that would just scale the image and not render it making it blurry. (but for some odd reason it doesn't even download the image correctly and downloads a all white image.)
Hopefully someone can help me out. Thank you.
transform: scale(2,2)? I'm not sure about how well that handles the blurriness but that's not easy to avoid without using SVG.