Announcement

#1 2023-11-25 16:58:12

Criss
Former Piwigo Team
Calvi
2008-03-31
95

Use of direct url to thumbnail instead of i.php

Hello,

When displaying lots of thumbnails on my host I got a 508 error (Insufficient Resource).
Is it possible to have :

1- a physical "thumbnail" folder and the engines links to the TN in the folder
AND / OR
2- link directly to the generation folder and not use the i.php script

Criss


Signup and get your Piwigo photo gallery automatically installed and hosted. Help us to beta test it !

Offline

 

#2 2023-11-25 17:44:11

OHappyDay
Member
2023-02-08
67

Re: Use of direct url to thumbnail instead of i.php

Sorry, but Error 508 is this:

508 Loop Detected

Maybe these links might help to resolve it:

https://sitechecker.pro/what-is-508-status-code/
https://http-statuscode.com/de/code/5XX/508

Offline

 

#3 2023-11-25 17:47:13

Criss
Former Piwigo Team
Calvi
2008-03-31
95

Re: Use of direct url to thumbnail instead of i.php

This is the code and status text returned by server.
The fact is when too many queries to a script are done the servers returns an error.

The idea is still the same : how to use direct link instead of script ?


Signup and get your Piwigo photo gallery automatically installed and hosted. Help us to beta test it !

Offline

 

#4 2023-11-25 18:44:28

erAck
Only trying to help
2015-09-06
2043

Re: Use of direct url to thumbnail instead of i.php

Cloudflare involved? Because they seem to "use" that 508 Loop Detected WebDAV context status if the origin server reports resource limits exceeded. See https://http.dev/508#usage-specific-to-cloudflare

Anyway, there is no "physical thumbnail folder", thumbnail derivatives are generated on the fly when needed and cached under _data/i/upload/... of the same directory structure as the original images, only in the case of physical albums there are corresponding _data/i/galleries/... directories. Which doesn't help much either as all sizes' derivatives are generated there.


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2023-11-26 21:32:14

Criss
Former Piwigo Team
Calvi
2008-03-31
95

Re: Use of direct url to thumbnail instead of i.php

So as far as I understand there is no way to use direct link instead of php script ? Even if we provide thumbnail and use a conf parameter such as

Code:

$conf['prefix_thumbnail'] = 'TN_';

?


Signup and get your Piwigo photo gallery automatically installed and hosted. Help us to beta test it !

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact