Image visualization with canvas. How to resize them?
Posted
by Luca Matteis
on Stack Overflow
See other posts from Stack Overflow
or by Luca Matteis
Published on 2010-03-07T11:03:10Z
Indexed on
2010/03/07
23:26 UTC
Read the original article
Hit count: 184
I'm building a website photo gallery for a friend. Images are loaded as simple DOM image objects (<img src="" />
), and the size of these images is based on the browser size. So I resize them with CSS.
This isn't an optimal solution since CSS resizing seems to change the quality of the image and pixelate it quite a bit. I was thinking of rendering the image with canvas and then resize it with that so that the quality remains effective, but I can't find any info about this online.
Any ideas?
© Stack Overflow or respective owner