Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1256685

    Hi there,

    I have a question, is it possible to change the size of the miniatures in a gallery in a portrait size instead of landscape? I can choose a lot of sizes, but there’s no portrait size-option… And my gallery has got all portrait book-images in it, so that’s the reason I really want the miniatures also to be portrait.
    Please let me know, I’m looking forward to your reply!

    #1257832

    Hey JoStudioDeRijp,

    Thank you for the inquiry.

    The thumbnail size can be set in the Gallery’s Styling > Gallery Preview Image Size settings. Try to set it to the first option if you want to display the original size of the images.

    You could also use the following plugin if you need to adjust the size of the registered thumbnails.

    // https://wordpress.org/plugins/simple-image-sizes/

    Best regards,
    Ismael

    • This reply was modified 4 years ago by Ismael.
    #1258037

    Hi Ismael,
    Thanks for your reply.
    I already saw and tried that option… But that option works in a different way that the sizes in the list.
    When I choose for example Portfolio 495 x 400, all the miniatures are shown in that size, even if my images I set in the Media Library are all different sizes.
    With your solution I have to make all the original images the same size.
    I am wondering if there is a solution not to do that… so an extra option with a portrait size in the Gallery Preview Image Setting.
    Hope you can help me!

    #1259146

    Hi,

    When I choose for example Portfolio 495 x 400, all the miniatures are shown in that size, even if my images I set in the Media Library are all different sizes.

    That is how selecting a thumbnail is supposed to work, so it is actually recommended to upload images with the same size. Another solution is to use the original image and show it as is, or register another thumbnail or size as you see fit and use it instead.

    // https://developer.wordpress.org/reference/functions/add_image_size/
    // https://developer.wordpress.org/reference/hooks/image_size_names_choose/

    You can use the add+image_size function to register your own thumbnail or image size, and the filter image_size_names_choose should allow you to include the new thumbnail or image size in the image list so that they can be selected later on.

    Best regards,
    Ismael

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