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
Graphics3d saves every png image twice #15728
Comments
comment:2
(new to system, so please forgive) on line 1290 :
on line 1298 :
so both instances of strcmp parameters are ill formed. I would like to change both of these in my commit. |
comment:4
Replying to @sagetrac-probinso:
Right -- both should be changed :) When you upload the new commit, I'll be happy to review it. |
Branch: u/probinso/ticket/15728 |
Commit: |
Changed branch from u/probinso/ticket/15728 to u/niles/ticket/15728 |
Author: Philip Robinson |
Reviewer: Niles Johnson |
comment:8
I'm happy with the changes and all tests pass; positive review! |
comment:10
Thank you, for reviewing now that I have completed the process once I feel better about moving forward. I will remember to flag later bugs as 'needs_review' next time. |
comment:11
No worries -- good job :) Also remember to include your full name in the Authors section of the ticket properties. |
In
Graphics3d.save
sage creates a png file and then uses PIL to convert it to whatever format was requested. But the check for whether to save another format is broken and so sage always creates a second file, even if it's just converting from png to png.The reason for this is a broken check for the file extension:
if ext != 'png'
should instead beif ext != '.png'
sinceext
begins with a dot!CC: @nilesjohnson
Component: graphics
Author: Philip Robinson
Branch/Commit: u/niles/ticket/15728 @
d6024fe
Reviewer: Niles Johnson
Issue created by migration from https://trac.sagemath.org/ticket/15728
The text was updated successfully, but these errors were encountered: