Ankush Santra

Certified Magento Developer

Convert Text to an Image using PHP

We generate a coupon code image as example. Here $couponCode is the variable we can change it as we required. And function createImage() is the main part of this task. <?php $couponCode = ‘A153S0C’ ; createImage($couponCode); function createImage($couponCode) { header(“Content-type: image/png”); /* Set the size of Images */ $im = imagecreatetruecolor(400, 400); /* Background Image […]

Join Multiple Images Using PHP Code

It is a good process to join more than one image and get a single image. Using php coding join the images in there appropriate place. This is applicable for png, jpg, jpeg and gif also. Make a fun with php. The code is given bellow. <?php header (“Content-type: image/png”); $src = array ( “http://localhost/image/img/board.png”, […]

Image Croping using PHP

There is an easier way to crop an image as you want it. You can crop an image with a fixed aspect ratio or a dynamic ratio also. The crop image size can also make as you wish. So, now let’s take look at the coding part. First you have to load two files. One […]