changes in layout - square thumbnails
  • Hi all,
    I really like a default design/layout of this gallery but there is only one disadvantage, in my humble opinion thumbnails should be square. Is it possible in future releases?
    Just look at this example
    image
    which rows do you prefer more? :)

    mayby in my example thumbs are to big, and the gaps are to small but generally square thumbs look better.

    thanks in advance
  • square thumbs are ok when you have 4:3 aspect ratio pictures, since you don't loose too much of a picture. but if you're showing a 260x1000 pixel picture, it will crop much of the actual picture, giving you a nice but not very revealing thumbnail.

    i go for practicality.

    if you want your thumbs to come up square, add
    thumbPath += '&sq=1';
    just after
    if (cache_thumbnails == true)
    thumbPath += '&c=1';

    so it'll look like this
    if (cache_thumbnails == true)
    thumbPath += '&c=1';

    thumbPath += '&sq=1';

    at line 467 of the
    /includes/ajax.functions.js
    file
  • thank, much better now :)
    but thumbs are still small and have grey frame :(
    http://monster.art.pl/zdjecia/
    "How do I" increase size of thumbnails to the same as rey frame?

    Thanks in advance,
    Paweł Nawrocki
  • victor said:
    square thumbs are ok when you have 4:3 aspect ratio pictures, since you don't loose too much of a picture. but if you're showing a 260x1000 pixel picture


    I think it is wrong assumption. I suppose that most of us will use it to publish our photos, and 99% of them are 4:3 or 2:3.
    If most of us wil use it as a photo gallery, it would be better to have square thumbs whick look more professional. (IMHO)

    best regards,
    Pawel from Poland :P

    ps. sorry for my english
  • i don't assume. and the phrase "looks more professional" is a subjective assumption, an opinion.

    i might change the way thumbnails look, but i cannot do it on one person's assumptions. also, the code is quite complex, and mostly any change on the stylesheet's side breaks it in some browser.

    let me think about it.
  • also, the color of the frame can be changed in the themes. you might want it white, as your background, so it won't show. play with colors and you might find one set that suits you.
  • well, it finally made sense to me, so it has been added. thanks for the suggestion.

    version 0.9 alpha can create square thumbnails or regular ones. i might add this feature in the next release, though it might be in version 0.9 beta.
  • :D
    Thank you a lot,
    I see that you bring into effect my suggestion :)
    I hope users of your gallery will like square thumbs.
  • now with the border the squared thumbs look more nice :) .. victor could you add the hover effect to the boarder again? me i'm using the thumbs without showing their filenames and so actually nothing happens when i cross a thumb with the mouse

    2nd in the actual build (09b81) the bottom border of a thumb is too big if i switch off showing filenames

    and 3rd a suggestion :)
    for the horizontal thumbs i would prefer to have the middle part of the image (cut left and right to get the squared area) because the most photos have the object in the center .. for vertical photos let it like it is, it's better to have the top part instead of a center image because missing feet are not so bad than cutted heads :D .. just my opinion
  • i'll check 2nd, thanks.

    for 3rd: if you get too many a foot cut out, just switch to non-square thumbnails.

In this Discussion