m14t/sots — Issue #442: Thumbnail regeneration throws a ton of PHP notices
Author: gabehayes
Created: 2012-03-01 20:44:52+00:00
State: open

While regenerating images with the following command: `./symfony thumbnail:regenerate --model=AbstractUpdateImage` and these settings:

Thumbnailable:
image:
original:
storage_class: AmazonS3Storage
local_path: "update/image/orig"
image_sizes:
#Image size names must have low chars
thumb:
size: 195x195
storage_class: AmazonS3Storage
local_path: "update/image/thumb"
crop: true
type: jpeg
quality: 85
gallery:
size: 540x1080
storage_class: AmazonS3Storage
local_path: "update/image/gallery"
scale: true
crop: true
type: jpeg
quality: 85

My console is being flooded with an endless stream of the following:

PHP Notice: imagecolorat(): 24,905 is out of bounds in /Users/gabe/Sites/summitonthesummit/trunk/site/plugins/cwThumbnailPlugin/lib/sfGDAdapterExt.php on line 135
PHP Stack trace:
PHP 1. {main}() /Users/gabe/Sites/summitonthesummit/trunk/site/symfony:0
PHP 2. include() /Users/gabe/Sites/summitonthesummit/trunk/site/symfony:14
PHP 3. sfSymfonyCommandApplication->run() /Users/gabe/Sites/summitonthesummit/trunk/site/lib/vendor/symfony/lib/command/cli.php:20
PHP 4. sfTask->runFromCLI() /Users/gabe/Sites/summitonthesummit/trunk/site/lib/vendor/symfony/lib/command/sfSymfonyCommandApplication.class.php:76
PHP 5. sfBaseTask->doRun() /Users/gabe/Sites/summitonthesummit/trunk/site/lib/vendor/symfony/lib/task/sfTask.class.php:97
PHP 6. cwThumbnailRegenerateTask->execute() /Users/gabe/Sites/summitonthesummit/trunk/site/lib/vendor/symfony/lib/task/sfBaseTask.class.php:68
PHP 7. cwThumbnailRegenerateTask->iteration() /Users/gabe/Sites/summitonthesummit/trunk/site/plugins/cwThumbnailPlugin/lib/task/cwThumbnailRegenerateTask.class.php:70
PHP 8. cwThumbnail->createThumbnails() /Users/gabe/Sites/summitonthesummit/trunk/site/plugins/cwThumbnailPlugin/lib/task/cwThumbnailRegenerateTask.class.php:92
PHP 9. cwThumbnail->createThumbnail() /Users/gabe/Sites/summitonthesummit/trunk/site/plugins/cwThumbnailPlugin/lib/cwThumbnail.class.php:33
PHP 10. sfThumbnail->loadFile() /Users/gabe/Sites/summitonthesummit/trunk/site/plugins/cwThumbnailPlugin/lib/cwThumbnail.class.php:76
PHP 11. sfGDAdapterExt->loadFile() /Users/gabe/Sites/summitonthesummit/trunk/site/plugins/sfThumbnailPlugin/lib/sfThumbnail.class.php:116
PHP 12. sfGDAdapterExt->alphaSafeCopyResampled() /Users/gabe/Sites/summitonthesummit/trunk/site/plugins/cwThumbnailPlugin/lib/sfGDAdapterExt.php:75
PHP 13. imagecolorat() /Users/gabe/Sites/summitonthesummit/trunk/site/plugins/cwThumbnailPlugin/lib/sfGDAdapterExt.php:135