• Resolved dorelly2

    (@dorelly2)


    WordPress 5.3.2
    Envira Gallery Lite 1.7.6

    In the WP Admin area – when I add a picture to a Envira gallery – choosing one from the already site-uploaded images – and hit “Refresh” on the piblic page containing that Envira gallery – at this very moment the Envira plugin creates 2 thumbnails in the WP “uploads” folder – “whatever-640×480” and “whatever-1280×960”.

    How do I DISABLE the creation of these 2 thumbnails? I want to save my hosting space.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dorelly2

    (@dorelly2)

    Ok, I found it myself.

    wp-content/plugins/envira-gallery-lite/includes/global/shortcode.php

    line 312-313:

    // These calls will generate thumbnails as necessary for us.
    $imagesrc = $this->get_image_src( $id, $item, $data );
    $image_src_retina = $this->get_image_src( $id, $item, $data, false, true );

    Just comment out these 2 lines – and that’s it:

    // These calls will generate thumbnails as necessary for us.
    //$imagesrc = $this->get_image_src( $id, $item, $data );
    //$image_src_retina = $this->get_image_src( $id, $item, $data, false, true );

    The first line generates the “whatever-640×480” thumbnail, the second one – the “whatever-1280×960” thumbnail.

    and now the gallery uses the original (full-size) uploaded images.

    Besides – these 2 thumbnails were never deleted – even after an image was removed from an Elvira gallery – obviously a bug.

    • This reply was modified 6 years, 3 months ago by dorelly2.

    Thank you for the information @dorelly2

    You could also try using the original image size.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to disable thumbnails creation?’ is closed to new replies.