Skip to content

ioutil.TempFile: file extension as suffix#20

Open
maclav3 wants to merge 1 commit intoquirkey:masterfrom
maclav3:master
Open

ioutil.TempFile: file extension as suffix#20
maclav3 wants to merge 1 commit intoquirkey:masterfrom
maclav3:master

Conversation

@maclav3
Copy link
Copy Markdown

@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