fisharebest / webtrees

Online genealogy
https://webtrees.net
GNU General Public License v3.0
429 stars 294 forks source link

Problems displaying media - image failed to load #4858

Closed FrankWarius closed 5 months ago

FrankWarius commented 1 year ago

We have problems displaying some documents, e.g. https://wbt.warius.info/tree/Warius/media/X1679/1873-11-30-Backer-Hermann-Otto-Willy-Taufe.

If you click on the thumbnail without being logged in, "image failed to load" appears. If you are logged in, the image is loaded normally. Hypothesis: it could be due to the generation of the watermark.

This concerns newer images, older ones load (unregistered) without problems (cache?).

I became aware of the problem through Google Bot: https://wbt.warius.info/tree/Warius/media-download?xref=X1679&fact_id=0b35e7d5af2cef9b193d0e46f1fbb323&disposition=inline&mark=1 leads to Allowed memory size of 268435456 bytes exhausted (tried to allocate 97377425 bytes) D:\web\WT21Git\webtrees\vendor\intervention\image\src\Intervention\Image\Gd\Commands\ResizeCommand.php: 58 Workaround: Blocking media-download in robots-txt

FrankWarius commented 7 months ago

still exits under 2.1.18 [04-Dec-2023 15:59:15 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 76737601 bytes) in D:\web\WT21Git\webtrees\vendor\intervention\image\src\Intervention\Image\Gd\Commands\ResizeCommand.php on line 58 Workaround: Rescaling the image e.g. in Photoshop and replace on webtrees. I think this only affected a small number of images that I extracted from a PDF via Acrobat pro.

arbor95 commented 5 months ago

So you can close this issue?

FrankWarius commented 5 months ago

This is a workaround not a fix. Only 3 images were affected. We should close it