Crop
Permalink Browser Info Environment
Crop effect would be awesome on this addon!
Type: | Discussion |
---|---|
Status: | New |
I would like it to Crop every image automatically like i want a thumbnail set to (150x120px) it crops the image to fit the gallery like the rest on the images! :)
I probably won't have time to get to this for a while, but if I ever do, it looks like there are 2 ways to crop images: just cut out the center, or try to resize it down to either the width or the height (whichever is smaller), then chop off the other dimension so it fits.
Which of these do you think would be better visually? (I'm thinking the resize-then-crop makes more sense, but curious what others think).
Which of these do you think would be better visually? (I'm thinking the resize-then-crop makes more sense, but curious what others think).
change this in the controller - line 49
$thumb = $ih->getThumbnail($file, $this->thumbWidth, $this->thumbHeight);
$thumb = $ih->getThumbnail($file, $this->thumbWidth, $this->thumbHeight, true);
This will crop them automatically to fit
$thumb = $ih->getThumbnail($file, $this->thumbWidth, $this->thumbHeight);
$thumb = $ih->getThumbnail($file, $this->thumbWidth, $this->thumbHeight, true);
This will crop them automatically to fit
Wanted to let you know that there is a new, more advanced (but not free) version of this gallery that includes image cropping:
http://www.concrete5.org/marketplace/addons/deluxe-image-gallery/...
http://www.concrete5.org/marketplace/addons/deluxe-image-gallery/...
There was a discussion about this in the forums recently -- seehttp://www.concrete5.org/index.php?cID=70847... if you're interested.