{"issue":{"created_at":"2011-11-29T16:20:42Z","state":"open","updated_at":"2011-11-29T16:20:44Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","login":"importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":2,"body":"In den Einstellungen kann man Werte für die maximale Breite und Höhe einstellen, die ein Bild nach dem Upload in die Dateiverwaltung maximal haben darf.\nHierbei habe ich zwei Fehler beobachtet:\n1) Wenn man einen Werte über 1200 Px in den Einstellungen angibt, erscheint zwar die Mitteilung \"Die Datei wurde hochgeladen und auf die maximalen Abmessungen verkleinert\", jedoch behält die Datei Ihre bisherige Größe.\n2) Wenn man in den Einstellungen einen Wert kleiner/gleich 1200 Px eingibt,  wird das Bild zwar verkleinert, jedoch wird die kürzere Seite auf die maximale Größe angepasst (Beispiel: Maximale Bildgröße in den Einstellungen: 1024 x 1024 Px; Ausgangsbildgröße: 3264 x 2448 Px; Größe nach Verkleinerung: 1366 x 1024 Px)\n\n--- _Originally created by anonymous on February 9th, 2009, at 11:52pm (ID 501)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2386739,"number":501,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/import/labels/Defect"},{"name":"framework","color":"e6e6e6","url":"https://api.github.com/repos/contao/import/labels/framework"}],"title":"Maximale Bildbreite/-höhe Bildverkleinerung fehlerhaft","closed_at":null,"html_url":"https://github.com/contao/import/issues/501","url":"https://api.github.com/repos/contao/import/issues/501","milestone":{"created_at":"2011-11-29T15:29:33Z","state":"open","due_on":null,"closed_issues":3,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"number":10,"description":"TYPOlight 2.6.7 (maintenance release)","title":"2.6.7","open_issues":1,"url":"https://api.github.com/repos/contao/import/milestones/10"}},"action":"created","comment":{"created_at":"2011-11-29T16:20:44Z","updated_at":"2011-11-29T16:20:44Z","user":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Bitte füge mal testweise folgenden Code in die system/drivers/DC_Folder.php in Zeile 605:\n\n```php\n<?php\n// Resize image if necessary\nif (($arrImageSize = `getimagesize(TL_ROOT . '/' . $strNewFile)) !== false)\n{\n\t// Image exceeds maximum image width\n\tif ($arrImageSizer0 > $GLOBALS['TL_CONFIG']['imageWidth'])\n\t{\n\t\t$blnResized = true;\n\t\t$this->resizeImage($strNewFile, $GLOBALS['TL_CONFIG']['imageWidth'], 0);\n\n\t\t// Recalculate image size\n\t\t$arrImageSize = `getimagesize(TL_ROOT . '/' . $strNewFile);\n\t}\n\n\t// Image exceeds maximum image height\n\tif ($arrImageSizer1 > $GLOBALS['TL_CONFIG']['imageHeight'])\n\t{\n\t\t$blnResized = true;\n\t\t$this->resizeImage($strNewFile, 0, $GLOBALS['TL_CONFIG']['imageHeight']);\n\t}\n}\n?>\n```\n\nDamit hat es auf meinem lokalen Rechner funktioniert.\n\n--- _Originally created on March 9th, 2009, at 08:44pm_","id":2933758,"url":"https://api.github.com/repos/contao/import/issues/comments/2933758"}}