6.x-1.0-alpha version - here's fix for a bug in the call to image_scale_and_crop in image.module:
I turned on Scale and Crop for Thumbnails (it used to be Scale only).
Then I visited an image gallery. I got all the proper messages, saying the images would rebuilding. But then at the bottom I got "Unable to build images".
Logs showed:
Division by zero in /.../includes/image.inc on line 160.
Found the problem in image.module, here's the fixed call to image_scale_and crop, original code had $destination instead of $original_path:
case 'scale_crop':
$status = image_scale_and_crop($original_path, $destination, $size['width'], $size['height']);
break;
Comments
Comment #1
tomsolo commentedFix is work. thx
Comment #2
drewish commentedthanks, committing the attached patch to head.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
drewish commentedmarked #223836: Division by zero warning in image.inc, no images created. as a duplicate... though it really should be the other way around.