Page MenuHomePhabricator

429 error when requesting certain image resolutions on Commons
Closed, DuplicatePublic

Description

When requesting this SVG in 1280px width, I get error 429: https://commons.wikimedia.org/wiki/Special:FilePath/Third%20imperial%20Faberg%C3%A9%20egg.svg?width=1280

Resolutions of up to 1000px width seem to work: https://commons.wikimedia.org/wiki/Special:FilePath/Third%20imperial%20Faberg%C3%A9%20egg.svg?width=1000

But even some resolutions linked on the File page don't work, like 2000px: https://commons.wikimedia.org/wiki/File:Third_imperial_Faberg%C3%A9_egg.svg

I suspect his has to do with this file being an especially complex SVG?

Event Timeline

This seems to be about thumbnails, hence adding Thumbor.

I suspect his has to do with this file being an especially complex SVG?

Yes, especially the 375+ uses of Gaussian blur. The version of librsvg currently in use doesn't have good optimizations for Gaussian blur, and it takes over 3 minutes to generate the 2000px thumbnail. We only give it one minute, so the generation fails. Later versions of librsvg have better optimization, and rsvg-convert version 2.48.4 takes only 15 seconds to generate the 2000px thumbnail.