PHP Tutorials Image Manipulation



Featured Tutorial
Feature your own tutorial here! Find out more.
Center align text with GD
Submitted by CodingTuts » This tutorial will teach you how to align a text string so that it is in the center of your image vertically, horizontally or both.
Rating: 4.5/5 | 163 clicks | 0 comments | 0 saves | share | report
Tutorial: Storing Images in MySQL with PHP
Submitted by CodeCall Programming » In this tutorial I will show you how to store binary images (or any binary file) in MySQL using PHP.
Rating: 3.2/5 | 436 clicks | 0 comments | 3 saves | share | report
Enable Client Side Caching for Resized Images
Submitted by Web Cash » The GD library in PHP offers some great tools for resizing and editing images. However, these can increase load time and it would be beneficial to enable client side caching of these resources. You can do this by adding one simple line of code to your image output.
Rating: 2.7/5 | 216 clicks | 0 comments | 0 saves | share | report
How to Use PHP to Dynamically Resize an Image
Submitted by Web Cash » Sometimes you want to display an image - but it's not stored in the right size. If you allow the browser to resize the image, it will get distorted and waste bandwidth. Instead, you can use the PHP GD library to resize the image on the fly. This tutorial will show you how to use the GD library to read an image, resize it, and output it as part of an HTML page.
Rating: 3.3/5 | 634 clicks | 0 comments | 3 saves | share | report
PHP and JavaScript: Drawing a binomial distribution bar graph using the GD library
Submitted by eXanock » Using JavaScript, PHP and the GD library, we are going to draw a bar chart showing the binomial distribution for 0 to 10 successes out of 10 trials based upon the probability for success entered by the user in a form.
Rating: 3.0/5 | 310 clicks | 0 comments | 1 save | share | report
PHP GD Library: Captcha and the Alternatives
Submitted by Adam » Most of us have probably encountered a Captcha system on the web in the past few years, sometimes without even knowing it. Captcha systems are designed to filter out automated "spam bots" from posting to websites that accept submissions such as forums and blogs by asking the user to solve a problem. These problems can range from typing in the letters and numbers displayed in an image to answering a simple math question or selecting the correct image.
Rating: 2.6/5 | 330 clicks | 0 comments | 1 save | share | report
PHP GD Library: Cropping Images whilst Maintaining the Aspect Ratio
Submitted by Adam » An article demonstrating how to crop an image using PHP's GD library, whilst still keeping the aspect ratio as it was originally. This is very clever as it prevents the image from looking stretch. For example, if you resized an image to 80x80 but the original image was wide-screen, then the image would look very much stretched. This article shows you how to get around that and crop images the proper way!
Rating: 2.8/5 | 476 clicks | 0 comments | 2 saves | share | report
Creating a Three Dimensional Pie Chart using Google's Chart API
Submitted by Adam » I ran across this great, easy but very useful API a few days ago. Now for the tutorial.. let's assume we make a website for the TalkPHP soccerteam. They've played 10 matches (6 won, 3 draw, 1 lost). We'll be making a nice three dimensional pie chart of those stats!
Rating: 3.4/5 | 438 clicks | 0 comments | 0 saves | share | report
GD Library: Create Image Reflections Using PHP's GD Library
Submitted by Adam » Now this is a pretty simple tutorial on how to create a nice simple reflection on images. This won't show you how to make little ripples just yet.
Rating: 3.4/5 | 610 clicks | 1 comment | 1 save | share | report
PHP GD Library Walkthrough: Creating a Bar Chart
Submitted by Adam » Ever wanted to become adept in PHP's GD library? This article will show you how to create a bar chart using the PHP GD library.
Rating: 2.3/5 | 414 clicks | 0 comments | 0 saves | share | report