I have a comics translation project with 25 languages and 102k+ pages. in each language section it is more advantageous to use a same picture and briefly link, for example, from en/folder-folder-folder/0002 page to {{0002.jpg}} instead of a detailed description {{./folder-folder-folder/0002.jpg}}. I made up a short but messy hack years ago to redirect picture links from the language sections to a central section:
- added a rule in a .htaccess file
RewriteRule ^_media/(s?...)[/:](.*) lib/exe/fetch.php?media=$2 [QSA,L]
- also a javascript removes a path attributes w=\d+ h=\d+ and tok=...... in all selectors
.dokuwiki img:not([src*='fetch'])
however, this hack obviously prevents me from using compression for chapter thumbnails, but the images can be quite epic in size, up to 10-12 mb. i don't want to specifically make thumbnailed versions for all chapters - there are too many of them. moreover, the project is self-growing. so i have to go into an engine core. any idea where I should dig?
ps if I disable the script, I will get 412 Precondition Failed
only