CarsonArrow\WeservImage\WeservImage
Class WeservImage
Synopsis
class WeservImage
extends ViewableData
{
- // members
- private static string $api_url = 'https://images.weserv.nl';
- protected $imageURL;
- protected array $options = ;
- // methods
- public void __construct()
- public WeservImage Width()
- public WeservImage Height()
- public WeservImage DPR()
- public WeservImage Align()
- public WeservImage Crop()
- public WeservImage Trim()
- public WeservImage Mask()
- public WeservImage Flip()
- public WeservImage Flop()
- public WeservImage Rotate()
- public WeservImage Background()
- public WeservImage Blur()
- public WeservImage Brightness()
- public WeservImage Contrast()
- public WeservImage Filter()
- public WeservImage Gamma()
- public WeservImage Sharpen()
- public WeservImage Tint()
- public void getURL()
- public void URL()
- protected void setOption()
- public void forTemplate()
Hierarchy
Extends
- SilverStripe\View\ViewableData
Uses
- SilverStripe\Core\Config\Configurable
Members
private
- $api_url
—
string
Default api url
protected
- $imageURL
- $options
Methods
protected
public
- __construct()
- Align() — Alignment position How the image should be aligned.
- Background() — Background Sets the background color of the image.
- Blur() — Blur Adds a blur effect to the image.
- Brightness() — Brightness Adjusts the image brightness.
- Contrast() — Contrast Adjusts the image contrast.
- Crop() — Rectangle crop Crops the image to specific dimensions after any other resize operations.
- DPR() — Device pixel ratio
- Filter() — Filter Applies a filter effect to the image.
- Flip() — Flip Flip the image about the vertical Y axis. This always occurs after rotation, if any.
- Flop() — Flop Flop the image about the horizontal X axis. This always occurs after rotation, if any.
- Gamma() — Gamma Adjusts the image gamma.
- Height() — Height Sets the height of the image, in pixels.
- Mask() — Mask Controls the visible and non-visible area of the image.
- Rotate() — Rotate Rotates the image.
- Sharpen() — Sharpen Sharpen the image.
- Tint() — Tint Tint the image using the provided chroma while preserving the image luminance.
- Trim() — Trim Trim "boring" pixels from all edges that contain values within a similarity of the top-left pixel.
- URL()
- Width() — Width Sets the width of the image, in pixels.
- forTemplate()
- getURL()