Hey @emsbrand I’m not exactly sure what you are trying to achieve, but the documentation has a list of all hooks that are available with this plugin.
Hope this helps!
https://github.com/junaidbhura/auto-cloudinary/wiki/Filters
At the moment all the svg images are delivered from cloudinary as raster formats despite the svg extension.
The second question is related to the use of Art Direction for a specific image: we defined some breakpoints with the respective image transformations in the cloudinary backend.
We would like to know how to retrieve this specific image with the respective transformations.
Thank you in advance.
Hey @emsbrand it sounds like there’s a bit of programming involved in this.
The plugin currently only changes images’ paths from the WordPress media library to the Cloudinary URLs.
All responsive code would have to be done in the theme. You can take a look at the documentation to see how it would fit your case:
https://github.com/junaidbhura/auto-cloudinary/wiki/Filters
You can feel free to open an issue on GitHub if you feel the plugin needs more functionality, and we can discuss the merits of it there, so we have a public record of it:
https://github.com/junaidbhura/auto-cloudinary/issues
Hello @junaidbhura ,
Thank you for the pointers.
PS. We do use the following filter
add_filter( 'cloudinary_default_args', function ( $args ) {
$args['transform']['fetch_format'] = 'auto';
return $args;
} );
So one can say conditional fetch_format would help with the svg files.
@emsbrand Okay, I understand now. I think this is a good use-case. I’ve created an issue on Github based on this:
https://github.com/junaidbhura/auto-cloudinary/issues/15
You can keep a track of progress there, and please feel free to comment directly on that issue!