matthewwithanm / pilkit

Utilities and processors built for, and on top of PIL
BSD 3-Clause "New" or "Revised" License
196 stars 54 forks source link

Fix ResizeToFit when width or height is not set #39

Closed lesleslie closed 1 year ago

lesleslie commented 5 years ago

ResizeToFit will throw a TypeError when width or height is not set.

Since the image has already been resized by Resize, we should send ResizeToCanvas the new dimensions to avoid the TypeError.

vstoykov commented 5 years ago

Your PR has failing test. In your PR there is no test which will describe your issue. Can you provide one?