All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.3.3 - 2025-03-11
- Revert usage of
liip_imagine.twig.assets_version
- Cleanup absolute image path by removing all after the path part
1.3.2 - 2025-03-10
- Parameter
$liipTwigAssetsVersion
ofumanit_twig_image.runtime
can benull
.
1.3.1 - 2025-03-10
- Handle usage of
liip_imagine.twig.assets_version
configuration
1.3.0 - 2024-03-22
- New
twig_image_extension.allow_fallback
configuration setting (defaults tofalse
), to allow for fallback images to be used in any environment
- Catched
NotLoadableException
will trigger fallback image resolving iftwig_image_extension.allow_fallback
is set totrue
1.2.1 - 2023-04-17
- Broken code in
getImagePicture
1.2.0 - 2023-03-15
- New Twig function
umanit_image_img
, to generate an<img>
tag markup - In dev environments, leverages the data manager from Liip and its configured loader(s) to check if the image file exists. If it doesn't, renders a default image in one of four sizes (resolved by analyzing the filter name)
- Adds a
FallbackImageResolver
to resolve which default image to render - Adds an asset package definition (
twig_image_bundle
)
- In dev environments, catches
NotLoadableException
from Liip and uses a default image instead to build the tag
1.1.1 - 2022-02-15
- Add an
imgImportance
option in functions in order to optimize resource loading - Add an
imgDataAttributes
option in functions to pass customdata-attributes
on the<img />
- Add an
pictureDataAttributes
(orfigureDataAttributes
) option in functions to pass customdata-attributes
on the<picture>
(or<figure>
) - Add
use_liip_default_image
in order to use the Liip default image if none are given in functions calls
- Fix slowness introduced by the 1.0.6 with calculation of filtered images sizes
1.1.0 - 2021-12-11
- Drop support for PHP <7.4
- Self-close
<img />
elements
1.0.8 - 2021-08-02
- Add PHP 8.0 compatibility
1.0.7 - 2021-04-02
- Add the possibility to define a
figcaption
onfigure
markups
- Add original image
width
andheight
attributes onimg
andsource
markups if not available for the givenfilter
1.0.6 - 2021-01-25
- Add
width
andheight
attributes onimg
markup if available for the givenfilter
1.0.5 - 2020-10-01
- Add an option to place a class on
figure
markups
- Fix incoherence in the
README
1.0.4 - 2020-05-06
- Decrease required PHP version to 7.2
1.0.3 - 2020-04-30
- Add a
loadEventCallback
parameter onumanitImageLazyLoad
used in theload
event of yall.js
1.0.2 - 2020-04-29
- Add a CSS file to make a blur effect on lazy load images
- Add a new configuration
umanit_twig_image.lazy_load.blur_class_selector
to specify the class name used to make the blur effect
1.0.1 - 2020-04-27
- Add a
figureClass
parameter onumanit_image_figure_lazy_load
andumanit_image_figure
- Add
['is_safe' => ['html']]
on functions - Use
data-srcset
on lazy load functions
- Rename
class
parameter toimgClass
on all functions
First release 🎉