Can I crop the images to a given size instead of fit it inside the given size??
I have a (header) slideshow on a site in which the images have to be the same size always. For example the size is 200*100px, but now it fit’s the image inside that area. So for example some images get a size of 193*100px instead of 200*100px.
How can I force MaxiGallery to create images of exactly 200*100px and with a watermark?
with regards,
Ronald Lokers
'Front-end developer' @
h2o Media
MaxiGallery can’t crop images. Sorry. And it always resize them by preserving the aspect ratio.
But what you can do instead is that you make maxigallery to store only the uploaded original images, by using &keep_big_img and unlimited max size for big image.
Then use phpThumb snippet in maxigallery templates to resize that big image to what ever size you want. Or you can make maxigallery to just store the images always as they are uploaded and use phpThumb snippet in every maxigallery template to resize and filter them the way you want.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Quote from: MediaGuy at Oct 29, 2008, 06:46 AM
So this will be the idea to do:
Let maxigallery resize the picture to a size bigger then needed (to not store a full 2 / 4mb image). And then let phpThumb make the right sized image with the watermark on it?
And can I do this with 3 different maxigallery templates? I need 2 big photo’s with a different watermark and a small one with a watermark.
Am I right if I say that I just need to use another maxigallery template for every different output? And can I use multiple calls on 1 page?
Yes, that’s correct. You will just use the phpThumb PHx modifier that can be found from resources in MaxiGallery templates. The input image will always be the same originally uploaded and resized image by maxigallery, and you feed that to phpThumb to make it correct size with needed croppings. phpThumb caches all the images it creates, so this doesn’t give much overhead to the process.
You can use multiple calls on one page as allways, just remember to use the &manage_target and &is_target parameters if you want to manage the galleries from there.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Ok, I am trying to use the PHx modifier right now. Can I config Maxigallery to only save the 1 version of the image? I only want to create one image with a maximum size.
with regards,
Ronald Lokers
'Front-end developer' @
h2o Media
No, MaxiGallery will always create it’s own thumbnail.. but what does it matter?
You can set 0 to the max size for the normal picture, so there will be the original uploaded one and a thumbnail, you just won’t use the thumbnail anywhere. If you want to get rid of it, you need to comment the parts from maxigallery code where it’s done.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."