-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix imsave output format when format keyword is None #10048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modulo tests passing.
@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
imsave
without explicitly setting theformat
keyword (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
),imsave
always saves a PNG (despite the output filename):This PR fixes this issue.
PR Checklist