WARNING: Module depreciated
This SilverStripe module is depreciated please consider using the
silverstripe-imageextension module instead.
Image Functions Module
Image Functions Module primarily adds more image functions to the Image object but it also adds some useful SiteConfig settings.
SilverStripe 3.0 or newer.
Copy the 'imagefunctions' folder to your the root of your SilverStripe installation.
RatioCrop is an Image function that resizes then crops the image, which we thinks gives the best results when dealing with user uploaded images.
<% with Image %> $RatioCrop(200,300) <% end_with %>
This module also provides the facility to set placeholder images via three DataExtensions (PlaceholderImagePageExtension, PlaceholderImagePerPageExtension, PlaceholderImageSiteConfigExtension).
This is the main extension which adds a PlaceholderImage to the SiteConfig. This extension must be configured in order to use either of the others.
This extension adds methods to access the PlaceholderImage. By default this extension is added to the Page DataObject.
This extension adds a PlaceholderImage to any DataObject. It is designed to be added to DataObjects that act as parents to other DataObjects, thus allowing for localised inheritance of PlaceholderImages.