When only width or height is specified (the other being 0), scale the image proportionally to maintain aspect ratio. Previously, 0 was passed directly to the resize function which produced a 0x0 image.
6.6 KiB
6.6 KiB