contao/import — Issue #3142: Move or remove image resizing conditions
Author: DyaGa
Created: 2011-11-29 20:58:27+00:00
State: open
Labels: backend, Duplicate, Feature

If to look inside function `getImage` at line 793 (http://api.contao.org/__filesource/fsource_Controller__librariesController.php.html#a793) we can see some image resize limitations:

```
if (

![](extension_loaded('gd') || )$objFile->isGdImage || $objFile->width > 3000 || $objFile->height > 3000 || (

![]($width && )$height) || $width > 1200 || $height > 1200)
```

System will not resize image if it height and width are bigger then 3000 in pixels.
I develop project, that have to work with big sized images (for example, `JPG 7323 x 3602`). And this limitations disallow to resize such images. As I see, it image resizing works fine if to remove this conditions (`$objFile->width > 3000 || $objFile->height > 3000` and `$width > 1200 || $height > 1200`) (perhaps I am not quite testing all, but it works).

So, is there a need for such restrictions?
And, if so, why not just put this conditional values to `localconfig.php` file?

Related issues: #2156

--- _Originally created on June 6th, 2011, at 11:07pm (ID 3142)_