GD Library Tutorials

Round Corners on Image Using PHP and GD Library

Round Corners on Image Using PHP and GD Library

Sometimes we need to add round corners to some pictures like profile picture and thumbnails, also not to modify the source files. It can be achieve through CSS but to work proper on all browsers, its too hard to get. So with GD library, it can be achieved with less work. In this post I am providing an example to achieve round corners on image using PHP and GD library. …

Continue reading

Generate and Implement Simple Captcha Code In PHP

Generate and Implement Simple Captcha Code In PHP

To avoid automatic form submission some kind of verification should be used. CAPTCHA code submission is a best way to stop spammers. A CAPTCHA has a challenge-response test used in web form to ensure that the response is generated by a human being. In this article you will learn how to generate and implement simple captcha code in php. Most widely used captcha for verification of human being is image …

Continue reading

How to Resize Image in PHP

How to Resize Image in PHP

Almost every website uses thumbnail or resized images with content in form of featured image. Every website showing thumbnails in product gallery, portfolio, featured section, etc. So I have created a function to resize image in php. With this you can resize images easily using PHP and the GD library. If you’re looking for the same to resize uploaded images you can try it. In this article I will show …

Continue reading