Page MenuHomePhabricator

Thumbor original file download limit should be 4GB
Closed, ResolvedPublic

Description

As of April, Commons allows uploading files up to 4GB: https://commons.wikimedia.org/wiki/Commons:Maximum_file_size

This TIFF, for instance, is 1,69GB: https://commons.wikimedia.org/wiki/File:Andromeda_Galaxy_M31_-_Heic1502a_Full_resolution.tiff

While other limits might prevent the thumbnail from rendering (memory, time), there's no reason no to try rendering a thumbnail for that image, considering that it's an acceptable upload on Commons and that huge TIFFs like that should be resized efficiently memory-wise thanks to VIPS.

Event Timeline

Gilles lowered the priority of this task from Medium to Low.Nov 23 2016, 2:26 PM
Gilles created this task.

I'm kind of ambivalent about that now. We could raise the limit, but that would make Thumbor potentially consume a lot more disk when things go wrong. And there's no guarantee that if the limit is raised, it will be capable of rendering a 4GB file's thumbnail without running out of memory first.

I guess we could raise the limit and see if it's actually possible to render thumbnails for those files. If not, it's not worth keeping the limit that high.