silverstripe/custom-image

There is no license information available for the latest version (dev-master) of this package.

An extension to Silverstripe core Image class. Added methods that renders absolute URLs for GD processed images.

Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Type:silverstripe-module

dev-master 2013-09-17 08:28 UTC

This package is not auto-updated.

Last update: 2024-04-08 12:18:11 UTC


README

An extension to Silverstripe core Image class. Added methods that renders absolute URLs for GD processed images. Other GD process/manipulation will be added on this class on later release.

##Added Features

  • resizedAbsoluteURL - returns absolute URL of resized image
  • croppedImageAbsoluteURL - returns absolute URL of cropped image
  • setWidthAbsoluteURL - returns absolute URL of processed image resized according to width
  • setHeightAbsoluteURL - returns absolute URL of processed image resized according to height
  • paddedImageAbsoluteURL - returns absolute URL of processed image resized and padded with white spaces
  • setRatioSizeAbsoluteURL - returns absolute URL of processed image

##Installation

The easiest way to install the module/extension is by using the following composer command in your project folder:

sudo composer require --no-update silverstripe/custom-image:dev-master

You can also download the package from github and copy it to your project folder. Download it from https://github.com/skTzoOoTech/silverstripe-custom-image.

Instructions on how to use will be included in this readme file later.