Download the PHP package novactive/ezenhancedimageassetbundle without Composer
On this page you can find all versions of the php package novactive/ezenhancedimageassetbundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ezenhancedimageassetbundle
NovaeZEnhancedImageAssetBundle
This repository is what we call a "subtree split": a read-only copy of one directory of the main repository. It is used by Composer to allow developers to depend on specific bundles.
If you want to report or contribute, you should instead open your issue on the main repository: https://github.com/Novactive/Nova-eZPlatform-Bundles
Documentation is available in this repository via .md
files but also packaged here: https://novactive.github.io/Nova-eZPlatform-Bundles/master/EnhancedImageAssetBundle/README.md.html
An eZPlatform bundle providing new field type with enhanced features related to image management
Features
- Focus point managment in admin UI
- Default image configuration for file size optimization
- Lazy and Progressive loading
- Retina variations
- WebP variations
- Twig render field parameters
Installation
Use Composer
Add NovaeZEnhancedImageAssetBundle in your composer.json:
Register the bundle
Register the bundle in your application's kernel class:
Features
1. Focus point
This bundle provide a new enhancedimage
field type which extend the ezimage
field type.
This field type allow the user to select a focus point on the uploaded image.
Variation can then be created based on the selected focus point.
2. Default image configuration
Added to siteaccess aware parameters which allow to define the default post processors and configuration to use when generating image alias
3. LazyLoading
Lazy loading is controlled globaly by the following settings (default to true) and can be overriden at field level.
4. Retina variations
Retina variations should suffixed by _retina
will be used automatically (if enabled) when using the provided field template.
To be displayed, the generated variation width should be two time the width of the default variation.
Considering a variation named my_alias
, the variation named my_alias_retina
will be used and displayed on retina screens.
The automatic use of retina variations is controlled by this setting
5. WebP variations
Auto-creation of a webp variation for each existing variations and will then automaticaly add this variation as an alternative source
6. Twig render field parameters
You can now specify the alternativeAlias
parameter to define alternative image alias depending the screen size
Variations configuration
Focused variations require the use of a "focusedThumbnail" filter to generate thumbnail based on the contributed focus point.
NB: the focus
parameter is automaticaly updated for each image based on what has been contributed
Migrate existing ezimage fields
As the new enhancedimage
field type is an extend of the ezimage
field type, you just need to update the data_type_string
column in the database for the fields you want.
Example :
Usage
Some feature will require the following assets