This PHP class can be used to perform several types of image manipulation operations.
It can:
- Rescale images to fit in a given width or height keeping (or not) the original aspect ratio - Flip images horizontally or vertically - Rotate images by a given angle, filling the empty spaces with a given color - All operations preserve transparency! - The class does all the error checking for the source and target file so you don't need to worry about that
The class supports loading and saving images in the GIF, JPEG and PNG formats.
The code is very well documented and there is a good documentation and example to get you started
It can:
- Rescale images to fit in a given width or height keeping (or not) the original aspect ratio - Flip images horizontally or vertically - Rotate images by a given angle, filling the empty spaces with a given color - All operations preserve transparency! - The class does all the error checking for the source and target file so you don't need to worry about that
The class supports loading and saving images in the GIF, JPEG and PNG formats.
The code is very well documented and there is a good documentation and example to get you started
By : stefangabos
the code, fully documented and with examples is available at <a href="http://stefangabos.blogspot.com/2006/08/zebra-php-framework-image-transform.html">http://stefangabos.blogspot.com/2006/08/zebra-php-framework-image-transform.html</a>. you can also find more php classes and php related resources at <a href="http://stefangabos.blogspot.com">http://stefangabos.blogspot.com</a>
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.