Tagged: ,

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1139215

    Hi,
    I have a site with a lot of galleries (Avia Layout Architect -> Gallery). I always used 3 columns and the no-scaling-option and although the pictures are not squared, I would get perfectly squared thumbs as in: https://blumen-hegemann.de/floristik/straeusse/
    Wordpress offered a 450×450.jpg, the gallery used this and everything was fine.

    Now after the last theme-update this doesn’t work anymore and I get what the option says: no-scaled-thumbs. So I look for alternatives, but none of them work. The only squared thumbs I can get are 180×180.jpg and these are too low in resolution. Everything else is rectangular (if the original picutre is).

    So what can I do? All I want is a gallery with square thumbnails in appr. 450px size and good resolution – no matter what the originals picture-size is.

    Thanks for your help,
    Daniel

    • This topic was modified 4 years, 10 months ago by danielmarsch.
    #1140038

    Hey danielmarsch,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,
    Basilis

    #1142442

    Hi Basilis,
    I send you an admin-login a while ago. Any help possible?
    I had added a lot of galleries with perfect squared thumbs (WP-sizes used 450*450, resized to 355*355) of rectangular pictures before.

    Now (after the last update?) it is not possible anymore. WP doesn’t make 450*450.
    Medium (300*300) , Large (1030*1030) and Extra Large (1500*1500) deliver rectangular thumbs.
    The only squares (1*1) I get are with Thumbnail (80*80) and Square (180*180) and these are definitely too small in resolution.
    How do I get square thumbnails in 355*355 out of rectangular pictures?
    Thanks,
    Daniel

    #1142480

    You can redefine an existing Format – but then you had to regenerate thumbnails ( there are plugins for that – force regenerate thumbnails ).
    or you can add a custom format- for example create a new bigger-square format:

    this comes to functions.php of your child-theme:

    shorter form:

    add_image_size( 'bigger_square', 344, 344, true );
    add_filter( 'image_size_names_choose', 'my_custom_sizes' );
    function my_custom_sizes( $sizes ) {
        return array_merge( $sizes, array(
            'bigger_square' => __('Bigger Square','avia_framework'),
        ) );
    }

    even here you had to regenerate Thumbnails.

    • This reply was modified 4 years, 10 months ago by Guenni007.
    #1142481

    if you like to redefine an existing one:

    function custom_modified_thumb_sizes( $size ){
      $size['square'] = array('width'=>344, 'height'=>344 );      
      return $size;
    }
    add_filter('avf_modify_thumb_size', 'custom_modified_thumb_sizes', 10, 1 );

    PS ich komme mal vorbei und hole mir einen schönen Blumenstrauß ab. Schöne Grüße aus Buschdorf/Bonn

    #1142492

    übrigens – wenn du die Vollauflösung in der lightbox anzeigen willst – setze das hier in die child-theme functions.php:

    Masonry Lightbox Bilder Größe

    function avia_change_masonry_thumbnail_link($size) {
      return "full";
    }
    add_filter('avf_avia_builder_masonry_lightbox_img_size', 'avia_change_masonry_thumbnail_link', 10, 1);

    und das für das Galerie Lightbox Size:

    function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta){
        $link = wp_get_attachment_image_src($attachment->ID, "full");
        return $link;
    }
    add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4);
    #1142747

    Hallo Guenni007,
    du bist echt ein Schatz! Functions-Schnipsel 1 hat schonmal super funktioniert. Von Haus aus ist es so, dass die von WP erzeugten Formate einfach überhaupt nicht mit den vom Theme vorgegebenen Miniaturbildgrößen zusammenpassen. Und das ist anscheinend wirklich erst so seit dem letzten Update.

    Bevor ich das zweite Schnipsel einsetze nochmal die Frage: was macht das genau, wird es auf magische Weise für alle bisherigen Bilder neue Formate hinzufügen? Das wäre ziemlich grandios…

    Das mit dem Blumenstrauß ist eine gute Idee, ich muss dich nur anmelden. Ich sitze nämlich weder in Bonn noch im Blumenladen, sondern im schönen Hückeswagen im Bergischen Land.

    Viele Grüße,
    Daniel

    #1142827

    ich kann dir leider keine Garantie geben. Wenn du früher die 450px hattest wäre es gut wenn du das als Maß für entweder das neue Format oder eben square austauscht.
    Um ein Regenerieren der Thumbnails kommst du dann wohl nicht rum. Wie gesagt ich habe gute Erfahrungen mit “Force Regenerate Thumbnails” gemacht.

    Diese Snippets hier zeigen dann die Vollauflösung Bilder in der Lightbox. Wenn du in deinen Quellcode guckst, dann siehst du dort 1030px x ??? als Quellimage. Mit den o.a. Snippets würde also dann 1280px oder eben die Auflösung des geuploadeten Bildes gezeigt werden.

    #1143388

    Alles klar. Mit dem ersten PHP-Schnipsel, das die 344*344-Größe registriert und erzeugt und dem “Regenerate Thumbnails”-Plugin läuft alles wie geschmiert. Vielen Dank nochmal!

    #1143430

    Gibt es eigentlich auch einen entsprechenden Code, um nicht benötigte Formate zu deregistrieren – um sie anschließend mit dem Plugin in zu löschen?

    #1143438

    Hallo Günni,
    wenn du magst, wirf doch mal hier einen Blick rein: https://kriesi.at/support/topic/link-buttons-in-layer-slider/
    Die Antwort vom Support ist nicht wirklich befriedigend :-)
    Wenn du magst, kannst du mir auch gerne direkt schreiben über netschmie.de.
    Herzlichen Gruß,
    Daniel

    #1143533

    Hi,

    Thank you for the update.

    Yes, there is a function called “remove_image_size”, which can be used to remove existing thumbnails.

    // https://developer.wordpress.org/reference/functions/remove_image_size/

    Best regards,
    Ismael

    #1144455

    @danielmarsch

    You don’t need to add snippet over snippet, you can just use the plugin https://de.wordpress.org/plugins/simple-image-sizes/

    – There you can see then at settings -> media all the originally from ENFOLD created sizes.
    – There you can change these sizes to your desire AND at the bottom regenerate thumbnails then for correct working.
    – If you do not need an image size you can set there the size to 0/0 and it won’t be created in the future.
    – There you can also define the cropping of the images

    View post on imgur.com

    #1144954

    @colorit:
    sometimes I prefer snippets, but sure that plugin is a good alternative, Thanks!

    #1145075

    Hi danielmarsch,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

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