MadeHQ\Cloudinary\Model\Image
Synopsis
class Image
extends File
{
- // members
- private static string $table_name = 'CloudinaryImage';
- private static array $non_gravity_crops = ;
- private static array $valid_image_formats = ;
- protected array $options = ;
- private static array $db = ;
- private static array $belongs_to = ;
- // methods
- public CachedImage Transform()
- public CachedImage Size()
- public CachedImage Crop()
- public CachedImage Quality()
- public void setQuality()
- public CachedImage Gravity()
- public CachedImage FetchFormat()
- public CachedImage ResizeByWidth()
- public CachedImage ResizeByHeight()
- public this Radius()
- public CachedImage Cutout()
- public CachedImage Effect()
- public CachedImage Brightness()
- public CachedImage DuoTone()
- public void URL()
- public string forTemplate()
- public CachedImage toCache()
- public Image __clone()
- public string __toString()
- public void Link()
- public void PreviewLink()
- public void getWidth()
- public void getHeight()
- public void getCredit()
- public void getCaption()
- public static void extract_caption()
- public void getColors()
- public void getColorsMap()
- public void updateFromCloudinary()
- public static void createFromCloudinaryResource()
- // Inherited methods from File
- public String CMSEditLink()
- public void getAbsoluteURL()
- public void doArchive()
- public static void getOneByPublicId()
- public void canUnpublish()
- public static void flush()
- public void requireTable()
- // Inherited methods from CloudinaryFileTrait
- public void updateFromCloudinary()
- public string getExtension()
- public void getIsImage()
- public void getIsVideo()
- public void exists()
- public void getURL()
- public static void createFromCloudinaryResource()
- public void setFromLocalFile()
- public void getFileSize()
- public void getFormattedFileSize()
- public static void PrivateUrl()
- public void onAfterWrite()
- public void onBeforeDelete()
- public static get_remote_data()
Hierarchy
Extends
Members
private
- $belongs_to — array
- $db
—
array
Database fields - $non_gravity_crops — array
- $table_name — string
- $valid_image_formats — array
protected
- $options
—
array
These are basically defaults - $remote_data_cache — array
Methods
public
- Brightness()
- Crop()
- Cutout()
- DuoTone()
- Effect() — Applies a raw transformation
- FetchFormat()
- Gravity()
- Link()
- PreviewLink()
- Quality()
- Radius() — Adds a radius onto the image to round the corners
- ResizeByHeight()
- ResizeByWidth()
- Size()
- Transform() — Adds a new transformation to an existing one, or appends it to a brand new one
- URL() — Gets the Cloudinary URL for the image at the requested size, crop etc.
- __clone() — Makes a clone
- __toString()
- createFromCloudinaryResource()
- forTemplate()
- getCaption()
- getColors()
- getColorsMap()
- getCredit()
- getHeight()
- getWidth()
- setQuality()
- toCache() — Makes a cache object
- updateFromCloudinary()
Inherited from MadeHQ\Cloudinary\Model\File
public
- CMSEditLink() — Cloudinary Media Library URL
- canUnpublish()
- doArchive()
- flush()
- getAbsoluteURL()
- getOneByPublicId()
- requireTable()
Inherited from MadeHQ\Cloudinary\Traits\CloudinaryFileTrait
public
- PrivateUrl()
- createFromCloudinaryResource()
- exists()
- getExtension() — Returns the file extension
- getFileSize()
- getFormattedFileSize()
- getIsImage()
- getIsVideo()
- getURL()
- get_remote_data()
- onAfterWrite() — Want files to be published automatically
- onBeforeDelete() — Want files to be unpublished automatically
- setFromLocalFile()
- updateFromCloudinary()