img->scale(0.5) produces images of zero size.
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3384
Reported by Anders Johansson anders@roxen.com
This simple program causes a segfault.
void main()
{
object img = Image.Image(1,1);
img = img->scale(0.5);
img = img->scale(2.0);
}
After scale(0.5) the image is 0x0 pixels, and when doing scale(2.0) on that image Pike goes BOOM!
Tested on Pike 7.0, 7,2 and 7.4.