Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1422627

    Hallo zusammen,

    ich bin am Verwzeifeln! Ich gerate bei meinem Webhosting immer wieder an das Speicherlimit, denn ich lade sehr viele Bilder hoch (Fotogalerien von Kunden) Ich habe jetzt herausgefunden, dass die Bilder nicht nur in der Auflösung gespeichert werden, wie ich Sie hochlade, sondern gefühlt noch in 30 anderen Auflösungen. Wie kann ich das ausstellen? Ich benötige keine Thumbnails oder ähnliches. Teilweise hat der Ordner eines Monats 7GB obwohl die Bilder, die ich hochgeladen habe vielleicht nur 500MB ausmachen würden.

    Ich bitte um Hilfe

    #1422743

    Hey janbornemann44,

    Thank you for the inquiry.

    We can disable some of the registered thumbnails or image sizes using the remove_image_size function in order to save some storage space. Please add this code in the functions.php file.

    // Disable loads of Enfold & WP image sizes upon upload
    // do image sizes manually, double-size with high compression for retina screens
    // use Photoshop to set exact double size and quality between Q30 and Q40
    add_action('init', 'remove_enfold_image_sizes');
    function remove_enfold_image_sizes() {
    // do NOT remove widget size, is used in backend portfolio items!
    // remove_image_size('widget');
      remove_image_size('square');
      remove_image_size('featured');
      remove_image_size('featured_large');
      remove_image_size('portfolio');
      remove_image_size('portfolio_small');
      remove_image_size('gallery');
      remove_image_size('magazine');
      remove_image_size('masonry');
      remove_image_size('entry_without_sidebar');
      remove_image_size('entry_with_sidebar');
      remove_image_size('shop_thumbnail');
      remove_image_size('shop_catalog');
      remove_image_size('shop_single'); 
        remove_image_size('shop_gallery_thumbnail');
    }
    // Remove unneeded WP image sizes
    add_filter( 'intermediate_image_sizes_advanced', 'prefix_remove_default_images' );
    // Remove default image sizes here. 
    function prefix_remove_default_images( $sizes ) {
    // do NOT remove small and medium sizes, they are used in backend Media Library!
    // unset( $sizes['small']); // 150px
    // unset( $sizes['medium']); // 300px
     unset( $sizes['large']); // 1024px
     unset( $sizes['medium_large']); // 768px
     return $sizes;
    }
    

    After adding the code, use the following plugin to regenerate the thumbnails.

    // https://wordpress.org/plugins/force-regenerate-thumbnails/

    IMPORTANT: Please make sure to create a site backup or a restore point before proceeding with the steps above.

    Related threads:

    // https://kriesi.at/support/topic/enfold-image-sizes-3/#post-1108904
    // https://kriesi.at/support/topic/still-fighting-with-managing-default-image-sizes/#post-1418393

    Best regards,
    Ismael

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