Showing posts with label image manipulation. Show all posts
Showing posts with label image manipulation. Show all posts

June 25, 2011

Google Maps Marker Generator with Dynamic Labels

Few hours ago I stumbled upon a question on stackoverflow.com where someone asked if it was possible to overlay a number on top of a custom Google map marker? Something like creating:

Labelled Google map markers (example 1)

from this:

Blank Google map marker (example 1)

without using Photoshop!

April 13, 2009

Crop-To-Fit an Image Using ASP/PHP

Image Cropping refers to the removal of the outer parts of an image to improve framing, accentuate subject matter or change aspect ratio. In this article I will demonstrate a technique that combines resizing and cropping to fit an image in given dimensions. You can, for example, use this technique to generate square thumbnails for images with arbitrary dimensions and aspect-ratio.

November 4, 2008

Watermark Your Images with another Image Using PHP and GD Library

The following code sample demonstrates the use of GD library to watermark images on the fly. The method demonstrated here to watermark an uploaded image is to overlay the original image with another image, preferably a transparent PNG image.

PHP provides a rich set of functions to create and alter images on the fly. These functions require the GD library, which is bundled with PHP since version 4.3.

November 3, 2008

Watermark Your Images with Text Using PHP and GD Library

The following code sample demonstrates the use of PHP and GD library to watermark images on the fly. The method demonstrated here to watermark an uploaded image is to render a partially transparent line of text over the original image.

This example relies on the GD library, which is bundled with PHP since version 4.3.

Note: You may also want to have a look at a variation of this example that watermark images using image overlays.

October 28, 2008

Resize Images Using PHP and GD Library

PHP provides a rich set of functions to generate and manipulate images. Most of these functions require the GD library, which is bundled with PHP since version 4.3.

The following code sample demonstrates the use of GD library to resize an image to generate its thumbnail. The script first saves the uploaded image in a specific location, it then generates a thumbnail version of the image and finally saves the generated thumbnail image in JPEG format.