you can only set a max depending on the fact if the image is portrait or landscape it will grab height or with (the longest side) and set this to you max so you would need to do it like this: $max_thumb_size : ’128’
if you like the pictures to be square use css on the li {display:block; width:128px; height128px; overflow:hidden}
Ill borrow this thread for a question...
Isnt it possible to crop the image thumbnail with php? I want square images 73x73px on the thumbnail page. As for now i do that with the css code supplied earlier but wont work 100% cause if i expand the box to like 75x75 then it just shows more of the picture cuase the thumbnail picture is like 110x73
So the perfect thing would be to crop the thumbnail (like a squarebox 73x73) before it is finished, im pretty sure this IS possible with php but maybe its not working together with this script ?
yes, it is possible, but not implemented in maxigallery.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
-
☆ A M B ☆
- 1,056 Posts
Quote from: beejay at Jul 16, 2007, 12:56 PM
Ill borrow this thread for a question...
Isnt it possible to crop the image thumbnail with php? I want square images 73x73px on the thumbnail page. As for now i do that with the css code supplied earlier but wont work 100% cause if i expand the box to like 75x75 then it just shows more of the picture cuase the thumbnail picture is like 110x73
So the perfect thing would be to crop the thumbnail (like a squarebox 73x73) before it is finished, im pretty sure this IS possible with php but maybe its not working together with this script ?
Could you not take the CSS further and apply directly to
img ? This way you can still "crop", only at the image-level rather than the container...let us know!
This seemed to work for me:
.thumbscontainer .thumbs li img{
display:block; width:128px; height128px; overflow:hidden
}
Quote from: beejay at Jul 17, 2007, 04:53 AM
Quote from: doze at Jul 16, 2007, 09:25 PM
yes, it is possible, but not implemented in maxigallery.
doze; will it be implented in futher versions?
Thanks for a great snippet anyway!
Yes, when I get the time to convert maxigallery to use phpThumb for image processing.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
any chance it will be soon
Great stuff. Thx
salik
//Why use windows since there is a door?//
Sorry but no.. it won’t happen very soon..
"He can have a lollipop any time he wants to. That's what it means to be a programmer."