• Hey,

    Thanks for the great plugin! I have small bug report, however.

    Wherever I use the ‘full’ image size in my themes and plugins, I get the following PHP notice

    Notice:  Undefined index: full in /../wp-content/plugins/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/cloudinary.php on line 296

    The issue is that the get_wp_sizes() function on line 253 does not take into account the ‘full’ image size (it is not returned by get_intermediate_image_sizes()).

    While all the images actually appear, I did not want this notice filling up my logs so I have temporarily worked it out by using the handy ‘intermediate_image_sizes_advanced’ filter

    /**
     * Add 'full' image size to Cloudinary $sizes array
     */
    function enollo_cloudinary_intermediate_image_sizes_advanced( $sizes ) {
    	$sizes['full'] = array( 'width' => 9999, 'height' => 9999, 'crop' => false);
    }
    add_filter( 'intermediate_image_sizes_advanced', 'enollo_cloudinary_intermediate_image_sizes_advanced' );

    Would you be able to add something to this effect to the plugin itself so others do not get confused by the notice?

    Thanks,

    Tamara

    https://wordpress.org/plugins/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/

Viewing 1 replies (of 1 total)
  • Thread Starter enollo

    (@enollo)

    Oops, forgot the return. If anyone is looking to add this temporary solution here is the updated function to be placed in a custom plugin or functions.php

    /**
     * Add 'full' image size to Cloudinary $sizes array
     */
    function enollo_cloudinary_intermediate_image_sizes_advanced( $sizes ) {
    	$sizes['full'] = array( 'width' => 9999, 'height' => 9999, 'crop' => false);
    	return $sizes;
    }
    add_filter( 'intermediate_image_sizes_advanced', 'enollo_cloudinary_intermediate_image_sizes_advanced' );
Viewing 1 replies (of 1 total)

The topic ‘Cloudinary does not support 'full' WP image size’ is closed to new replies.