Skip to content
Permalink
Browse files

Remove lock test on image processing

  • Loading branch information...
nrobinaubertin committed Aug 22, 2019
1 parent c3d1066 commit 1c6e13befc3ee44fbf4935afb06861f3b6b53fd8
Showing with 0 additions and 2 deletions.
  1. +0 −2 api/src/Controller/Upload.php
@@ -71,11 +71,9 @@ public function __invoke(Request $request, ImageService $imageService): File
}
// immediately process the file if it's an image
// don't try to convert if there's already a video converting
if (
substr($file->getType(), 0, 6) == "image/"
&& $file->getStatus() != File::STATUS_READY
&& !file_exists("/tmp/zusam_video_convert.lock")
) {
list($width, $height) = getimagesize($filesDir."/".$file->getContentUrl());
// This is a special check for long format images that should not be limited in height

0 comments on commit 1c6e13b

Please sign in to comment.
You can’t perform that action at this time.