Repository navigation
Fix imsave output format when format keyword is None - #10048
larrybradley wants to merge 3 commits into
Conversation
|
It looks like appveyor does not have the dependencies to save jpeg Could you either add |
|
👍 in principle |
|
Thanks, @tacaswell. I changed the test to use svg. |
|
@larrybradley travis is failing after calls to imsave The solution would be to use the same "format check" as it is done inside So, that code has to be moved somewhere else as function maybe What about a signature style |
|
FWIW I would just get rid of the png fast path, which also does not set the dpi value. Basically |
|
Why does it exists that Fast path? |
|
maybe worth timing whether it is actually faster... |
|
Looks like the tests are failing because |
|
Closing this as equivalent changes went in with #10231 . Thanks for you work on this @larrybradley ! Hope to hear from you again. |
PR Summary
Calling
imsavewithout explicitly setting theformatkeyword (default=None) is supposed to determine the format of the output file from the output filename extension. Currently, if format is not specified (i.e.None),imsavealways saves a PNG (despite the output filename):This PR fixes this issue.
PR Checklist