Level51\Cloudinary\Image
DataObject storing relevant information for a cloudinary image file representation.
Synopsis
class Image
extends DataObject
{
- // members
- private $transformOptions = NULL;
- private $effectOptions = NULL;
- private static array $artistic_filters = ;
- private static string $table_name = 'CloudinaryImage';
- private static array $db = ;
- // methods
- public void onBeforeDelete()
- public string Link()
- public String getMediaLibraryLink()
- public void forTemplate()
- private void addCustomGravityIfEnabled()
- public Image Scale()
- public Image ScaleHeight()
- public Image ScaleWidth()
- public Image Fit()
- public Image FitMax()
- public Image Limit()
- public Image FitMin()
- public Image Fill()
- public Image FillMax()
- public Image LimitFill()
- public Image Pad()
- public Image LimitPad()
- public Image PadMin()
- public Image Crop()
- public $this CropScale()
- private Image addEffect()
- public Image Grayscale()
- public Image Sepia()
- public Image Blur()
- public Image Pixelate()
- public Image ArtisticFilter()
- public void getTag()
- public array flatten()
- public string getNiceSize()
- public string getTemporaryDownloadLink()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $artistic_filters
- $db
- $effectOptions
- $table_name
- $transformOptions
Methods
private
- addCustomGravityIfEnabled() — Use custom gravity for image cropping if enabled.
- addEffect() — Add a given effect.
public
- ArtisticFilter() — Add one of the predefined artistic filter effects.
- Blur() — Append a blur filter.
- Crop() — Extract a region of the given width and height out of the original image.
- CropScale() — Crop to custom coordinates/gravity if available, then scale/crop to the exact dimensions.
- Fill() — Crop the image to exact dimensions.
- FillMax() — Alias for LimitFill.
- Fit() — Scale the image so it fits within the bounding box.
- FitMax() — Alias for Limit.
- FitMin() — Scale the image so it fits within the bounding box.
- Grayscale() — Grayscale the image.
- Limit() — Scale the image so it fits within the bounding box.
- LimitFill() — Crop the image to exact dimensions.
- LimitPad() — Scale to fit the bounding box, then pad whitespace.
- Link()
- Pad() — Scale to fit the bounding box, then pad whitespace.
- PadMin() — Scale to fit the bounding box, then pad whitespace.
- Pixelate() — Pixelate the image with a given strength.
- Scale() — Scale the image to match exactly the given values.
- ScaleHeight() — Scale the image to the given height with respect to the original aspect ratio.
- ScaleWidth() — Scale the image to the given width with respect to the original aspect ratio.
- Sepia() — Add a sepia effect.
- flatten() — Get a flat version for template usage.
- forTemplate()
- getMediaLibraryLink()
- getNiceSize() — Nice formatted file size of the original upload.
- getTag()
- getTemporaryDownloadLink()
- onBeforeDelete()