Topic Resolution: Resolved
  • Closed
  • Jeff Hoffman
    Spectator
    February 9, 2016 at 10:58 pm #24164

    I searched but could only find where the theme may be causing all these extra images (sizes) of the original to be created, 17 I think, when I upload only one. I checked the media settings and it shows only 3 to be created. How can I prevent this from happening.
    Thanks

    Imran
    Spectator
    Posts: 402
    February 10, 2016 at 9:43 am #24172

    Hi Jeff,

    Thanks for writing in!

    It seems to be related to a plugin. I’d advise testing for a plugin conflict by deactivating all the third party plugins in your site, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can specify which one by reactivating them one at a time.

    Thank you!

    Jeff Hoffman
    Spectator
    Posts: 47
    February 10, 2016 at 3:06 pm #24189

    I tried that, no luck. Even with all plugins deactivated it still generates about 15 different sizes of the same image when I upload.

    Imran
    Spectator
    Posts: 402
    February 11, 2016 at 9:13 am #24226

    Hi Jeff,

    Please try to regenerate the images while after deactivating the third party plugins. You can use the following plugin:

    Force Regenerate Thumbnails

    Thank you!

    Jeff Hoffman
    Spectator
    Posts: 47
    February 12, 2016 at 4:47 am #24282

    Since I still have not found out why so many are created why would I need any but the original? What would happen if I deleted all but the original.

    Imran
    Spectator
    Posts: 402
    February 12, 2016 at 8:29 am #24289

    Hi Jeff,

    As we mentioned earlier that after deactivating all third party plugins, please regenerate new images and check if the issue has resolved. And you can use the provided plugin for force regenerate.

    Thank you!

    Jeff Hoffman
    Spectator
    Posts: 47
    February 12, 2016 at 8:34 pm #24305

    I am sorry if I was not clear but 3 times I have deactivated all plugins, uploaded a new image and the last time it gave me 9 different sizes of the image.

    Imran
    Spectator
    Posts: 402
    February 13, 2016 at 7:44 am #24307

    Hi Jeff,

    Thanks for clarifying! in such case you may refer to the following:

    How to Prevent WordPress from Generating Image Sizes

    Thank you!

    Denzel Chia
    Moderator
    Posts: 2656
    February 14, 2016 at 5:59 pm #24341

    Hi Jeff,

    These are all the image sizes need by Evolve Plus Theme.
    Open up evolve-plus/libary/functions/basic-functions.php
    and you will see the following codes at line 9 to 21

    add_image_size('post-thumbnail', 680, 330, true);
    add_image_size('slider-thumbnail', 400, 280, true);
    add_image_size('tabs-img', 50, 50, true);
    add_image_size('recent-works-thumbnail', 65, 65, true);
    add_image_size('blog-large', 669, 272, true);
    add_image_size('blog-medium', 320, 202, true);
    add_image_size('related-img', 180, 138, true);
    add_image_size('portfolio-one', 540, 272, true);
    add_image_size('portfolio-two', 460, 295, true);
    add_image_size('portfolio-three', 300, 214, true);
    add_image_size('portfolio-four', 220, 161, true);
    add_image_size('portfolio-full', 940, 400, true);
    add_image_size('recent-posts', 660, 405, true);

    There will be 13 images and if including WordPress default sizes, it will be a total of probably 17 images created when you upload one image.

    This is correct. Nothing wrong with it.
    You can remove some image sizes if you are sure that you will not use it.
    For example, if you do not need to use portfolio templates, you can remove the following.

    add_image_size('portfolio-one', 540, 272, true);
    add_image_size('portfolio-two', 460, 295, true);
    add_image_size('portfolio-three', 300, 214, true);
    add_image_size('portfolio-four', 220, 161, true);
    add_image_size('portfolio-full', 940, 400, true);

    Thank you.

    Jeff Hoffman
    Spectator
    Posts: 47
    February 14, 2016 at 7:44 pm #24344

    Thank you very much, this is the information I was looking for.
    THanks

    Denzel Chia
    Moderator
    Posts: 2656
    February 15, 2016 at 3:22 am #24347

    Hi Jeff,

    You are welcome!

    Regards,
    Denzel