News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

ASys DataService's Blog:
Rounded corners using PHP and the GD library
January 25, 2006 @ 13:01:50

On ASys DataService's blog, there's an article posted about creating rounded corners on your images with a little help from the PHP GD libraries.

I needed to add rounded corners to some pictures and didn't want to modify the source files in Photoshop (I think it's a bad idea to modify original pictures if the effect can be added dynamically).

That's when I decided to use the GD library, which I had found very useful in other projects. I'm not saying that this solution is perfect or better that others, but it has worked very well for me, and I hope it will be useful to some of you as well. Feel free to contact me if you have any comment about this code.

He briefly describes the code, noting where you can make config changes based on your needs. After that, it's all code, a procedural script that takes in any file and spits back out a custom rounded-corners image with your chosen settings. He even gives a PNG file of the rounded corner to use...

3 comments voice your opinion now!
rounded corners GD library png image rotate rounded corners GD library png image rotate


blog comments powered by Disqus

Similar Posts

Sameer Borate's Blog: Taking screenshots of websites in PHP

FuzzyOpinions Blog: Tutorial: improving security with a PHP Captcha

Sameer Borate's Blog: Porter Stemming algorithm for search

Tiger Heron Blog: First steps with PHP - booting a script, Part 2

Richard Thomas' Blog: First jQPie release, 0.1


Community Events











Don't see your event here?
Let us know!


release hack symfony2 unittest code language facebook composer package framework component application install introduction hhvm security performance podcast threedevsandamaybe database

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework