Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Replaced the 1200 pixel limit when resizing images with the values de…
Browse files Browse the repository at this point in the history
…fined in the system settings (see #5268)
  • Loading branch information
leofeyer committed Jan 23, 2013
1 parent a75deb9 commit 825ed34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,10 @@ Contao Open Source CMS Changelog
Version 2.11.9 (2013-XX-XX)
---------------------------

### Fixed
Replaced the 1200 pixel limit when resizing images with the values defined in
the system settings (see #5268).

### Fixed
Make sure there is an array in `Controller::generateMargin()` (see #5217).

Expand Down
2 changes: 1 addition & 1 deletion system/libraries/Controller.php
Expand Up @@ -1006,7 +1006,7 @@ protected function getImage($image, $width, $height, $mode='', $target=null, $fo
}

// Return the path to the original image if the GDlib cannot handle it
if (!extension_loaded('gd') || !$objFile->isGdImage || $objFile->width > $GLOBALS['TL_CONFIG']['gdMaxImgWidth'] || $objFile->height > $GLOBALS['TL_CONFIG']['gdMaxImgHeight'] || (!$width && !$height) || $width > 1200 || $height > 1200)
if (!extension_loaded('gd') || !$objFile->isGdImage || $objFile->width > $GLOBALS['TL_CONFIG']['gdMaxImgWidth'] || $objFile->height > $GLOBALS['TL_CONFIG']['gdMaxImgHeight'] || (!$width && !$height) || $width > $GLOBALS['TL_CONFIG']['gdMaxImgWidth'] || $height > $GLOBALS['TL_CONFIG']['gdMaxImgHeight'])
{
return $this->urlEncode($image);
}
Expand Down

0 comments on commit 825ed34

Please sign in to comment.