Skip to content
Snippets Groups Projects
Unverified Commit 95eaef6e authored by Travis Ralston's avatar Travis Ralston Committed by GitHub
Browse files

Merge pull request #161 from ananace/fix-svg-thumbnailing

Fix tempfile handling for SVG thumbnailing
parents 37d91797 3277bbe1
No related branches found
No related tags found
No related merge requests found
...@@ -350,7 +350,7 @@ func svgToImage(media *types.Media, ctx context.Context, log *logrus.Entry) (ima ...@@ -350,7 +350,7 @@ func svgToImage(media *types.Media, ctx context.Context, log *logrus.Entry) (ima
return nil, err return nil, err
} }
f, err := os.Open(tempFile1) f, err := os.OpenFile(tempFile1, os.O_RDWR|os.O_CREATE, 0640)
if err != nil { if err != nil {
return nil, err return nil, err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment