Hi friends, I need know how make a image rounded with the help of Javascript. If anyone knows the script please let me know. I have given a link below that shows the sample of how i need the image. zazzle.com/cr/design/pt-mug Please help!!!!!!
it is not possible with Javascript. You can with PHP if you have the GD library installed: http://www.assemblysys.com/dataServices/php_roundedCorners.php
yes it is. sigh. take your pick: http://www.netzgesta.de/corner/ - round corners for images or other effects http://www.cssjuice.com/25-rounded-corners-techniques-with-css/ - rounded corners via css for containers http://www.css3.info/preview/rounded-border/ - CSS3 (webkit) etc etc. countless examples.
the first one is not css, its javascript via canvas, which is supported by every browser (including IE through excanvas). his question is, is it possible to use javascript and the answer to that is, yes. the css tricks are also mostly browser compliant. the only one that's not is the CSS3 which is not supported throughout but is nice gd is a different way to do it but at the cost of server cpu time, it can be expensive. also, look at how jaggied it is, totally unacceptable as a solution. another thing you can do is have the 4 corners as .png with alpha channel and overlay them on top of the image with javascript or css. the possibilities are endless...