magick icon indicating copy to clipboard operation
magick copied to clipboard

ioutil.TempFile: file extension as suffix

Open maclav3 opened this issue 8 years ago • 0 comments

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.

maclav3 avatar Jun 24 '16 09:06 maclav3