davidbyttow / govips

A lightning fast image processing and resizing library for Go
MIT License
1.23k stars 196 forks source link

Options to relocate temporaryDirectory #428

Open xmlking opened 4 months ago

xmlking commented 4 months ago

I was trying Hasura-auth software which is using this lib. When I run this in docker container with non-root user, it keep failing due to permissions. ASK : please provide options to specify the temp location either via API or via environment variables

IMG_0315
tonimelisma commented 4 months ago

Hey @xmlking - I'm more than happy to review a PR. Please check the contributing documentation, and write a unit test.

xmlking commented 3 months ago

I found a solution to support non-root runner use case: by setting environment variable TMPDIR=/some_temp_root we can control base directory for ioutil.TempDir()