{"issue":{"created_at":"2011-11-29T17:07:29Z","state":"open","updated_at":"2011-11-29T17:07:33Z","comments":4,"user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"importer"},"body":"Hallo Leo\n\nIch habe mich die ganze Zeit verwundert, wieso TL meine Bilder nicht automatisch beim Upload verkleinert.\n\nHabe jetzt aus dem IRC erfahren, dass die grenze bei max 1200px ist.\nKönnten man diesen Wert nicht editierbar machen?\n\nIch denke, das würde absolut Sinn machen oder ?\n\nRelated issues: #1123\n\n--- _Originally created by JackJones on August 24th, 2009, at 02:19pm (ID 969)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"id":2387837,"number":969,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"backend","color":"e6e6e6","url":"https://api.github.com/repos/contao/import/labels/backend"},{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/import/labels/Defect"},{"name":"Invalid","color":"ffdd00","url":"https://api.github.com/repos/contao/import/labels/Invalid"}],"title":"Resize von Bildern","closed_at":null,"html_url":"https://github.com/contao/import/issues/969","url":"https://api.github.com/repos/contao/import/issues/969","milestone":null},"action":"created","comment":{"created_at":"2011-11-29T17:07:33Z","updated_at":"2011-11-29T17:07:33Z","user":{"gravatar_id":"9994df352157ae1b778b792744bdbf05","id":1073273,"url":"https://api.github.com/users/aschempp","avatar_url":"https://secure.gravatar.com/avatar/9994df352157ae1b778b792744bdbf05?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"aschempp"},"body":"da du ja Vorlagen so magst ;)\nDas ist in der Controller.php, Funktion getImage()\n\n```\nif (\n\n![](extension_loaded('gd') || )$objFile->isGdImage || $objFile->width > 3000 || $objFile->height > 3000 || (\n\n![]($width && )$height) || $width > 1200 || $height > 1200)\n{\n\tif (class_exists('Imagick'))\n\t{\n\t\t$objImagick = new Imagick(TL_ROOT . '/' . $image);\n\t\t\n\t\tif ($width && $height)\n\t\t{\n\t\t\t$objImagick->cropThumbnailImage($width, $height);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$objImagick->thumbnailImage($width, $height);\n\t\t}\n\t\t\n\t\t$objImagick->writeImage(TL_ROOT . '/' . $strCacheName);\n\t\t\n\t\treturn $strCacheName;\n\t}\n\t\n\treturn $image;\n}\n```\n\n--- _Originally created on November 6th, 2009, at 09:25am_","id":2936065,"url":"https://api.github.com/repos/contao/import/issues/comments/2936065"}}