Videos cause timeouts when syncing because of getimagesize #2026

Closed
opened 2026-10-05 01:04:12 +02:00 by adam · 1 comment
Owner

When you synchronize files in admin, it runs all files through getimagesize even if that file is not compatible. A large image file can take upwards of 20s just for that one call. Even for a standard 240s maximum execution time for PHP this can push you over the limit.

It can be remedied by first checking the mimetype in functions_metadata.php

When you synchronize files in admin, it runs all files through `getimagesize` even if that file is not compatible. A large image file can take upwards of 20s just for that one call. Even for a standard 240s maximum execution time for PHP this can push you over the limit. It can be remedied by first checking the mimetype in `functions_metadata.php` <!-- github-sync-id:2888376969 -->
adam closed this issue 2026-10-05 01:04:12 +02:00
Author
Owner

fixed in 24c51f7225

fixed in 24c51f7225efea53c0db13256ebeb3cc71ffd631 <!-- github-comment-id:3510888507 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#2026