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

Using save_image with a filename #8

Closed saimn closed 11 years ago

saimn commented 11 years ago

Hi, First, thanks a lot for making pilkit, it's really great and useful. Since version 1.1.2, it's no longer possible to use save_image with a filename. A file pointer is now required with the new FileWrapper. Do you think it is possible to support the previous behavior ? Maybe save_image could open the file if outfile is a string ?

matthewwithanm commented 11 years ago

Oops! I definitely didn't mean to break any current behavior, so yeah I'll be fixing that.

Thanks for the kind words!

matthewwithanm commented 11 years ago

Alright, I added a test for this in c0cc820b933913a3d5967d377f557a26ff21dcf7 and a fix in 16d4edc4684de59004b8fe9b7b33cf9786180dc5. It's on PyPI as 1.1.4 now.

Let me know if there are any issues. Thanks for the report!

saimn commented 11 years ago

Thanks for the quick fix !

matthewwithanm commented 11 years ago

Np. Thanks for the report!