Releases: junaidbhura/auto-cloudinary
Video URL support
What's Changed
- fix github action by @junaidbhura in #46
- Issue 50: Add support for videos by @dishitpala in #51
New Contributors
- @dishitpala made their first contribution in #51
Full Changelog: 1.3.0...1.3.1
Better handling of soft crops
Better handling of soft crops #41
Fix admin settings page
Fixed missing admin settings page: #33
Fix block editor image sizes
Fixes #25 . The previous release did not resolve the issue: https://github.com/junaidbhura/auto-cloudinary/releases/tag/1.2.1
Fix block editor image sizes
Fixes a conflict with the block editor's image sizes: #25
REST API filter, Progressive image parameter
1. Cloudinary URLs in REST API calls
Cloudinary URLs now do not appear in REST API calls by default. It can be turned on by using a filter:
add_filter( 'cloudinary_allow_rest_api_call', '__return_true' );
2. Progressive image transform parameter
Added a new progressive image parameter as suggested in #20
It accepts one of four values:
'progressive' => true, // fl_progressive
'progressive' => 'semi', // fl_progressive:semi
'progressive' => 'steep', // fl_progressive:steep
'progressive' => 'none', // fl_progressive:none
More info here: https://cloudinary.com/documentation/transformation_flags#delivery_and_image_format_flags
Better AJAX support
Better AJAX support, fixes #13
Default crop options to the WP Admin
Added default crop options to the WP Admin based on this issue: #10
Based on requests on Github and on the WordPress support forums, it became apparent that it would be easier to set default crops for hard and soft crops directly from the WP admin, rather than by using filters.
The filters still continue to work as before:
Setting the filter cloudinary_default_crop
sets the default crop for all images.
Setting the filter cloudinary_default_hard_crop
sets the default crop for hard cropped images.
Setting the filter cloudinary_default_soft_crop
sets the default crop for soft cropped images.
New filters and performance improvements
1. New Filters
Added two new filters based on this issue: #2 :
cloudinary_default_soft_crop
Filter the default crop used for content images which are "soft cropped". This inherits the value of cloudinary_default_crop
by default.
Example:
add_filter( 'cloudinary_default_soft_crop, function() {
return 'fit';
} );
cloudinary_default_hard_crop
Filter the default crop used for content images which are "hard cropped". This inherits the value of cloudinary_default_crop
by default.
Example:
add_filter( 'cloudinary_default_hard_crop, function() {
return 'fit';
} );
2. Performance Improvements
Cached image sizes for better performance.
Remove empty width and height from URL
This fixes #1 .
A width or height with value 0 would cause an error on Cloudinary. This is fixed by not adding empty width or height values in the URL.