Everytime I upload a media to the media library it creates 9 more images with different sizes. Is Vantage doing this?
In WordPress Settings > Media Settings (Image sizes) the medium and large size widht and height are set to 0px and the Thumbnail size is set to 200 x 200px
I would expect only the 200 x 200px duplicated image.
If I upload an image called “original_image.jpg” I will have in the server:
original_image.jpg
original_image-480×560.jpg
original_image-480×480.jpg
original_image-480×380.jpg
original_image-480×280.jpg
original_image-436×272.jpg
original_image-280×560.jpg
original_image-280×280.jpg
original_image-272×182.jpg
original_image-200×200.jpg
You can see a folde screenshot here:
http://christina-lopes.com/wp-content/uploads/images_duplicate.png
Looking at functions.php I found near line 87:
set_post_thumbnail_size(720, 380, true);
add_image_size(‘vantage-thumbnail-no-sidebar’, 1080, 380, true);
add_image_size(‘vantage-slide’, 960, 480, true);
add_image_size(‘vantage-carousel’, 272, 182, true);
add_image_size(‘vantage-grid-loop’, 436, 272, true);
Some values above look like the duplicates.
Any help?
Regards,
Marcio
Hi Marcio
Thanks for reaching out.
The thumbnails generated in functions.php are correct and necessary for the functioning of various elements in Vantage. The handle of each image gives an indication of what each size is used for. vantage-grid-loop is used for the grid blog layout for example.
By adding these sizes Vantage ensures that the featured images being used are at the correct size and thereby also ensures that load time isn’t negatively impacted.
In addition to Vantage, plugins can also add their own image size requirements.
If you’d like to override the default WordPress behaviour of creating image sizes for your Small, Medium and Large images (Settings > Media) there are a few options you could try:
http://wordpress.stackexchange.com/questions/49332/how-to-prevent-upload-of-a-multiple-sizes-of-images
Answer 3 looks to be the easiest there.
WPBeginner also cover the topic here:
http://www.wpbeginner.com/wp-tutorials/how-to-prevent-wordpress-from-generating-image-sizes/