Skip to content

Conversation

@ChiragAgg5k
Copy link
Member

In converting of images using exec for avif, heic and webp images we create temporary files. These file names were based on image signatures, so werent unique to each request. This can lead to race condition errors when let's say a file was deleted but request was cached.

The PR uses tempnam to get unique temporary file names. It also uses sys_get_temp_dir instead of /tmp/ to get default php temporary dir.

@christyjacob4 christyjacob4 merged commit 6c73696 into main Apr 8, 2025
5 checks passed
@christyjacob4 christyjacob4 deleted the fix-image-conversion-error branch April 8, 2025 11:31
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.

3 participants