Skip to content
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

ioutil.TempFile: file extension as suffix #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maclav3
Copy link

@maclav3 maclav3 commented Jun 24, 2016

ioutil.TempFile adds a random int as suffix, which confuses ImageMagick. Rename the result file so that the file ends with the extension.
Also, cleanup with deferred os.Remove after you're done with the file.

ioutil.TempFile adds a random int as suffix, which confuses ImageMagick. Rename the result file so that the file ends with the extension.
Also, cleanup with deferred os.Remove after you're done with the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant