Tagged: 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #774648

    When I upload an image to the media gallery. It appears to generate anywhere from 4-18 thumbnails. That is quite ridiculous and a massive waste since I don’t use any but maybe 2 versions. Is this enfold’s doing? How do I stop all the thumbnail generations? Now I have literally tens of thousands of copies of images wasting away.

    • This topic was modified 7 years, 7 months ago by dethfire.
    #774669

    Hey dethfire,
    This is a core WordPress issue, at WP > Settings > Media > Image sizes you will see the 3 addition images that are created for everyone you upload. I’m not sure if there is a practical way around this as image sizes are served by screen sizes.

    Best regards,
    Mike

    #774674

    Thanks! I zeroed those out, but it appears the rest are generated by enfold and I don’t use any of them. It should be an option to disable instead of automatically creating a dozen versions of the same image. Image size can be dynamically changed for screen size via CSS.

    • This reply was modified 7 years, 7 months ago by dethfire.
    #774686

    Hi,
    This post discuses removing the entire set of image sizes from the functions.php
    https://kriesi.at/support/topic/how-to-disable-enfold-creating-media-image-sizes/#post-305466
    Yet perhaps using a plugin would be better: https://wordpress.org/plugins/thumbnail-cleaner/

    Best regards,
    Mike

    #774713

    Hi Mike, I will look at the page you sent me. For the plugin that will end up removing all featured post images.

    #774733

    Hi,
    Let us know if this addresses your issue :)

    Best regards,
    Mike

    #774739

    I think that should work thanks. I just have to remember to redo the edit when upgrading. Would be best to create an option to select what sizes we want generated.

    • This reply was modified 7 years, 7 months ago by dethfire.
    #774742

    Hi,
    Please feel free to request – or vote if already requested – such feature on Enfold feature request form.

    Best regards,
    Mike

    #774747

    @dethfire I suggest you use the filter hook ‘avf_modify_thumb_size’ in a child theme rather then modifying the functions.php file in the parent theme. Using the filter you can easily unset specific sizes without having to change anything after an update. Just keep in mind the removed size will still appear in the size selector box in the media gallery while adding images to posts, pages and layout elements.

    #840038

    I’d made the following alterations to functions file

    /*
    * register the layout classes
    *
    */

    $avia_config[‘layout’][‘fullsize’] = array(‘content’ => ‘av-content-full alpha’, ‘sidebar’ => ‘hidden’, ‘meta’ => ”,’entry’ => ”);
    $avia_config[‘layout’][‘sidebar_left’] = array(‘content’ => ‘av-content-small’, ‘sidebar’ => ‘alpha’ ,’meta’ => ‘alpha’, ‘entry’ => ”);
    $avia_config[‘layout’][‘sidebar_right’] = array(‘content’ => ‘av-content-small alpha’,’sidebar’ => ‘alpha’, ‘meta’ => ‘alpha’, ‘entry’ => ‘alpha’);

    /*
    * Register additional image thumbnail sizes
    * Those thumbnails are generated on image upload!
    *
    * If the size of an array was changed after an image was uploaded you either need to re-upload the image
    * or use the thumbnail regeneration plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/
    */

    $avia_config[‘imgSize’][‘widget’] = array(‘width’=>36, ‘height’=>36); // small preview pics eg sidebar news
    $avia_config[‘imgSize’][‘square’] = array(‘width’=>180, ‘height’=>180); // small image for blogs
    $avia_config[‘imgSize’][‘featured’] = array(‘width’=>1500, ‘height’=>430 ); // images for fullsize pages and fullsize slider
    $avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>321); // big images for blog and page entries
    $avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1210, ‘height’=>423 ); // images for fullsize pages and fullsize slider
    $avia_config[‘imgSize’] = apply_filters(‘avf_modify_thumb_size’, $avia_config[‘imgSize’]);

    Yet I still get 9 images generated every upload. It’s totally bonkers. I don’t know how others accept this.

    #841322

    Hi dethfire,

    Here is an article for you

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.