\ImageDataExtension
Provides extra functionality to Image classes.
Add this extension to a Image instance
by adding this to your _config.php:
Object::add_extension('Image', 'ImageDataExtension');
- Author: arillo
Synopsis
class ImageDataExtension
extends DataExtension
{
- // methods
- public static boolean fix_orientation()
- public static boolean image_flip()
- public boolean fixOrientation()
- public int getHalfWidth()
- public Image SetMaxRatioSize()
- public Image SetMaxWidth()
- public Image ColorizeImage()
- public void setColoredImage()
- public Image PaddedImageWithColor()
- public void setPaddedImageWithColor()
- public Image RotatedImage()
- public void generateRotatedImage()
Hierarchy
Extends
- DataExtension
Methods
public
- ColorizeImage() — Created a tinted version of this image.
- PaddedImageWithColor() — Generates an image with colored padding.
- RotatedImage() — Rotate an image by angle.
- SetMaxRatioSize()
- SetMaxWidth()
- fixOrientation() — Class instance wrapper for fix_orientation()
- fix_orientation() — Fixes image orientation php bugs, caused by some digital photo devices (e.g. Iphone)
- generateRotatedImage()
- getHalfWidth() — Returns half of image width.
- image_flip() — Flips an image by mirroring integer from left to right
- setColoredImage()
- setPaddedImageWithColor()