contao/import — Issue #2422: Additional Crop modes for getImage()
Author: importer
Created: 2011-11-29 19:32:33+00:00
State: open
Labels: Accepted, Feature, framework

Hi Leo

I realise that you've implemented the HOOK for getImage(), which allows us to duplicate the getImage() with complete control. However a few simple crop types will prevent having to install these as extensions, hence making Contao perform the cropping twice (once in getImage() and again in the HOOK).

I wanted to load website images as main images in the News Module and I cannot tell the cropper to crop from the TOP-LEFT only. This will show the header part of the website in the thumbnail, and throw away the lower part of the image. If I use the old default mode of "Exact Dimension" or CROP, then the middle part of the website image is shown in the thumbnail.

I suggest that we have additional modes.

Standard (select group)
- Exact Dimensions (Crop Align Center)
- Proportional
- Fit the Box
Advanced Crop (select group)
- Align Top Left
- Align Top Center
- Align Top Right
- Align Center Left
- Align Center Right
- Align Bottom Left
- Align Bottom Center
- Align Bottom Right

I'm writing my own extension, but just wanted to alert you that the double work can be avoided in the Contao Core.

Thanks for your consideration.

[Download the attachments](http://www.contao.org/tl_files/tickets/2422.zip "Download the attachments of this ticket")

--- _Originally created by thyon on August 12th, 2010, at 01:13am (ID 2422)_