Okay
  Public Ticket #2623767
generated pictures
Closed

Comments

  •  8
    dan-kray started the conversation

    Hi 

    Via FTP I see that 25 variants of each uploaded picture are generated in different resolutions, but I hardly use or need any of them. Is it possible to prevent the generation of unneeded images, or is there a recommended procedure to avoid using up storage space with unnecessary data?

    I also use the plugin "Imsanity" to reduce very large images to max. 1920 px image width already during upload.

    Thank you very much for your support.

  •  2,963
    Andrew replied

    Hi Dan.

    This might help : https://www.wpbeginner.com/wp-tutorials/how-to-prevent-wordpress-from-generating-image sizes/#:~:text=You%20can%20stop%20WordPress%20from,you%20upload%20a%20new%20image.

    Thanks.

  •  8
    dan-kray replied

    Thanks Andrew.

    The article only refers to the 3 image variants generated by Wordpress but not to the 25 image variants of the Salient Theme.

    I would like to have only the actually needed image variants created or saved.

    Is there a recommended way to do this?


  •  2,963
    Andrew replied

    Hi Dan,

    Please try pasting this code to your function.php to see whether it stops the generation of images:

    add_filter( 'intermediate_image_sizes_advanced', 'mdc_image_sizes' );
     
    function mdc_image_sizes( $sizes ){
    return array();
    }

    Let me know how it goes.

    Kind Regards.