• Resolved vitorhugo

    (@vitorhugo)


    I really liked the plugin and everything it offers built-in (and free).

    My only two cents:
    – Too many thumbnails: I know it generates for all shapes and sizes because the templates available and Google’s recommendation. But the plugin does it for every single image uploaded to the Media Library, not just for the Recipe Card image. One post with 3 images can generate in the end +30 images. And no, image compression is not a solution.
    – Custom template: the documentation and implementation aren’t that friendly, well, it’s possible. But the user must know the way with WordPress.

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author mediavine

    (@mediavine)

    Hey @victorhugo,

    Thank you for your feedback.

    We will be working on an new templating system and will have a new system of clearer documentation when the new templates are released. However, WordPress development knowledge is still expected for someone utilizing custom templates.

    Due to the nature of WordPress’s image size generation, when an image size is added to WordPress, it will create those sizes for all images. This is done so that images can be selected within various plugins and themes using the same image.

    Having multiple images sizes of the same ratio is also not a bad thing as it allows more image sizes to be in the same srcset for an image, giving users on various screen sizes an optimal and faster experience.

    However, because we understand that some sites may need to be more concerned about the number of files created, Create has the ability to limit the number of sizes generated. The function provided below can be added as a separate plugin or in your functions.php file.

    A few caveats here:

    1. If an image is not big enough to be cropped down by WordPress, then the ratio will be incorrect, and Google schema will recognize them.
    2. If you need a smaller image because of that, you should remove one of the higher resolution images, and add mv_create_{size}_high_res to the array of sizes to be unset.
    3. This will only affect new images, and not the ones that have had images already generated. To remove those images, you will need to manually find those images and remove them, they will be the ones ending in: 200×200, 320×320, 480×480, 320×240, 480×360, 320×180, 480×270
    4. If you decide to manually remove images, be careful, as other plugins and/or your theme may be using that image size somewhere.
    
    function remove_mv_create_image_sizes( $img_sizes ) {
        $img_sizes_to_remove = array(
            'mv_create_1x1',
            'mv_create_1x1_medium_res',
            'mv_create_1x1_medium_high_res',
            'mv_create_4x3',
            'mv_create_4x3_medium_res',
            'mv_create_4x3_medium_high_res',
            'mv_create_16x9',
            'mv_create_16x9_medium_res',
            'mv_create_16x9_medium_high_res',
        );
    
        foreach ( $img_sizes_to_remove as $img_size_to_remove ) {
            unset( $img_sizes[ $img_size_to_remove ] );
        }
    
        return $img_sizes;
    }
    add_filter( 'mv_create_image_sizes', 'remove_mv_create_image_sizes' );
    

    Seth Alling
    Mediavine

Viewing 1 replies (of 1 total)
  • The topic ‘Very powerful, but too many thumbnail’ is closed to new replies.