Skip to content

Releases: clarifynl/responsive-pics

Version 1.7.2

18 Apr 09:33
b6821cf
Compare
Choose a tag to compare

Fixes

esc_url resized images in case original filename contains spaces (Fixes #43).

Version 1.7.1

15 Feb 10:13
14ea04d
Compare
Choose a tag to compare

Features

– Rename composer package to clarifynl/responsive-pics.
– Update author from Booreiland to Clarify.

Version 1.7.0

02 Feb 11:38
d8b9518
Compare
Choose a tag to compare

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

09 Jan 15:08
797bb56
Compare
Choose a tag to compare

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

12 Nov 14:33
Compare
Choose a tag to compare

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

04 Oct 09:32
Compare
Choose a tag to compare

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

31 Aug 08:24
Compare
Choose a tag to compare

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

10 Jun 09:30
Compare
Choose a tag to compare

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

24 May 13:53
Compare
Choose a tag to compare

Fixes

• Use the maximum possible retina size, while preserving cropping when the original image is too small for a full 2x size.

Version 1.5.1

29 Apr 08:56
Compare
Choose a tag to compare

Fixes

• Only show Responsive Pics errors when WP_DEBUG_DISPLAY is defined and TRUE (Fixes #26).
• Use the original image as 2x fallback when a 2x image can't be generated and the original is larger than the current image being generated (Fixes #28).