This package implements a Web interface to generate barcode images according to well-known barcode formating standards.
Currently it supports the following barcode format standards: Codabar, Code11, Code39, Code93, Code128, EAN-8, EAN-13, ISBN, Interleaved 2 of 5, Standard 2 of 5, MSI Plessey, UPC-A, UPC-E, UPC Extension 2, UPC Extension 5 and PostNet.
The output images generated according to most of the standards have been tested with a barcode reader device to confirm that they are correctly generated.
The classes require at least PHP 5.0.3 due to a bug in PHP found in previous versions that affects mainly the Code128 generation class. The PHP GD 2 extension is also required.
This is a class that can process an image on the fly by either generate a thumbnail, apply an watermark to the image, or resize it.
Autodetect GD 1 and GD 2, auto-fitting, scaling, calculate quality factor for a specific file size, suport bicubic resample algorithm.
The processed image can either be displayed in a page, saved to a file, or returned to a variable.
It requires the PHP with support for GD library extension in either version 1 or 2. If the GD library version 2 is available it the class can manipulate the images in true color, thus providing better quality of the results of resized images.
Features description:
- Thumbnail: normal thumbnail generation
- Auto-fitting: adjust the dimensions so that the resized image aspect is not distorted
- Scaling: enlarge and shrink the image
- Format: both JPEG and PNG are supported, but the watermark image can only be in PNG format as it needs to be transparent
- Autodetect the GD library version supported by PHP
- Calculate quality factor for a specific file size in JPEG format.
- Suport bicubic resample algorithm
A set of filters that works around the image index
A set of filters that works around the image index, changing it.
It requires GD library. And it's compatible with GD 1 and GD 2.
If you want to add a new filter (like redizer or greenizer) in this class, please sent it to Roberto Berto <darkelder@php.net>
Currently Filters:
- grayscale Turn an image grayscale [since 1.0]
- sepia Turn an image older than it is [since 1.0]
- yellowize Add a yellow layer in the front of image (transparent or solid) [since 1.0]
Create thumbnails from GIF, JPG, or PNG on the fly
Create image thumbnails from GIF, JPG, or PNG on the fly showing them in an image tag or outputting them as files with explicit width, height, or both.
This version requires GD 2.0 or higher! This is based on img2thumb 1.0 class from Andreas Martens that includes support for reading of GIF files (& creating GIF thumbnails if server supports this).
The other bonus is that you can set the thumbnails to be either constrained proportions with a background fill to the max pixel width & height or to simply be constrained proportions inside the max pixel width & height (i.e. set at 60x60 with an original of 90x180 constrained to 30x60 or 30x60 with background fill to make the thumbnail 60x60).
This class can be used to perform several types of graphic manipulation operations on images using the PHP GD2 library functions.
Currently it can:
- Read images from files in the GIF, PNG and JPEG formats
- Resize images to a given width and height
- Crop an image given the coordinates and dimensions of the cropping rectangle
- Apply several types of image effects like: negate, grayscale, edge detect, blur, adjust contrast and brightness, smooth, emboss, mean removal, and rotate.
This class, designed for GD2+ effects numerous transformations on a target image and saves a compressed jpeg version on the server. It can easily handle proportional thumbnails with stacked transformations.