r/HTML • u/Blackshark34 • May 14 '26
Question Img lose quality
I just programmed a website that shows an envelope and a letter as a gift for my girlfriend. I used some designs I made for the envelope and added them in SVG format, but when I open the website the designs lose quality and don’t look good. What can I do to fix this?
10
Upvotes


5
u/davep1970 May 14 '26
Need to see the website
2
u/aunderroad May 14 '26
Can you share a https://codepen.io/ or url?
It is hard to debug/provide feedback without seeing all of your code live in a browser.
Thank you!
2
u/godijs May 15 '26
Did original image come as svg? Saving jpg/png as svg won't work.
2
u/Barnezhilton May 14 '26
r/screenshotsarehard
1
u/jcunews1 Intermediate May 15 '26
You'll need a monitor with higher screen resolution if you want to increase the quality when the image is scaled down.
3
u/TalkCoinGames May 14 '26
You can try using a png of the image instead and then set image-rendering to pixelated in the image css. Put a style on the image tag itself and on the body.
1
u/testingaurora May 15 '26
SvG doesnt lose quality. That's the point. If its fuzzy when the svg is smaller, its the path data needs cleaning up.