Releases: mindkomm/timmy
0.14.8
0.14.7
0.14.6
- Added
content_filters
argument for Responsive Content Images constructor. - Fixed an internal performance issue with
wp_check_filetype()
when a lot of image data is requested.
0.14.5
- Added Block Editor support for the Responsive Content Images functionality.
- Added new
timber_image_srcset()
function to get only the srcset for an image size. - Added support for using values like
1x
and2x
in the srcset definition. - Fixed
get_timber_image_responsive_acf()
function. - Fixed a bug when
srcset
sizes weren’t generated on upload. - Fixed a bug when the
sizes
was written into the markup even though there was nosrcset
. - Deprecated function
get_acf_image_attr()
.
0.14.4
This release fixes a bug when low-quality image sizes were generated when using WordPress 5.3+.
Added support for scaled images
As of WordPress 5.3, images above 2560px will be scaled down to a smaller version for the full
size of an image. This version will include -scaled
in its filename. Because Timmy relied on wp_get_attachment_url()
, smaller image sizes would be created based on this scaled version, which resulted in a very visible quality loss.
Timmy now uses the new wp_get_original_image_url()
function when needed. There’s also a fallback to wp_get_attachment_url()
for WordPress versions below 5.3.
Wrongly generated images will be regenerated on the fly as soon as you install this update.
Timmy now returns the scaled version of an image, when the full
image size is requested. You can always get the original size of an image when using original
instead of full
as the size.
If you want to disable scaled images, you’ll have to use the big_image_size_threshold
filter:
add_filter( 'big_image_size_threshold', '__return_false' );
0.14.4-rc.1
See 0.14.4.
0.14.3
0.14.3-rc.1
See 0.14.3.
0.14.2
Default src for images
- Added new filter
timmy/use_src_default
to define whether a src attribute should be added as a fallback. - Added new filter
timmy/src_default
to define what the src attribute’s content should be. - Improved the default src fallback for images with
data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
. This fixes bugs in IE 11.
Lazy Loading
- Added new
lazy_sizes
parameter toget_timber_image_responsive_src()
function. This will allow you to prefix thesizes
attribute withdata-
. - Improved lazy filter by adding a parameter to define which attributes should be prefixed with
data-
. E.g., you can now useimage|get_timber_image_responsive('large')|lazy(['srcset', 'src', 'sizes'])
to prefix thesrcset
, thesrc
and thesizes
attributes withdata-
.
You can read more about this in the Lazy Loading Documentation
0.14.2-rc.1
- Added new filter
timmy/use_src_default
to define whether a src attribute should be added as a fallback. - Added new filter
timmy/src_default
to define what the src attribute’s should be.