Releases: clarifynl/responsive-pics
Version 1.7.2
Fixes
• esc_url
resized images in case original filename contains spaces (Fixes #43).
Version 1.7.1
Features
– Rename composer package to clarifynl/responsive-pics
.
– Update author from Booreiland to Clarify.
Version 1.7.0
Features
• Add classes
, lazyload
and lqip
parameters in the get_image_data
function and include lazyload
, lqip
and classes
in the result for fully constructing your own <img>
markup with the returned data.
• Add classes
, lazyload
and intrinsic
parameters in the get_picture_data
function and include lazyload
, intrinsic
, picture_classes
and image_classes
in the result for fully constructing your own <picture>
markup with the returned data.
• Allow the classes
parameter in get_background_data
function and include id
and classes
in the result for fully constructing your own background element with the returned data.
Version 1.6.4
Features
• Only use fallback retina image version if it's ratio is at least 1.5 times as big as the non-retina version.
Version 1.6.3
Features
• Added native
lazy loading option to the get_image
& get_picture
to enable the loading="lazy"
img attribute (fixes #30).
Version 1.6.2
Breaking changes
• Renamed get_image_sources
function to get_image_data
for returning image element as data.
• Removed the /responsive-pics/v1/get/
REST API endpoint.
Features
• Added /responsive-pics/v1/image-data/
REST API endpoint for returning image elements as data.
• Added get_picture_data
function and /responsive-pics/v1/picture-data/
REST API endpoint for returning picture elements as data.
• Added get_background_data
function and /responsive-pics/v1/background-data/
REST API endpoint for returning background images as data.
• Pass the original REST API route to the scheduled action for further usage in the responsive_pics_request_processed
hook.
• Updated action-scheduler to version 3.5.2.
Version 1.6.1
Features
• Added get_image_sources
function to return image as data.
Fixes
• Use error_log
when $s3_upload
results in a WP error to prevent the Action Scheduler
queue to halt.
Version 1.6.0
Features
• Added support for WP Offload Media plugin versions 2.6+ (fixes #5).
• Added responsive_pics_request_scheduled
action hook.
• Added responsive_pics_request_processed
action hook.
• Added responsive_pics_file_saved_local
action hook.
• Added responsive_pics_file_s3_uploaded
action hook.
• Added responsive_pics_file_deleted_local
action hook.
• Added responsive_pics_file_s3_deleted
action hook.
Fixes
• Prevent generating retina versions with a density higher than 2.
• Allow floats in process_delete_attachment
regex to also delete @1.6x
images.
Version 1.5.2
Fixes
• Use the maximum possible retina size, while preserving cropping when the original image is too small for a full 2x size.