Comments (3)
what happens in a current release? webp was added as a supported mime type a while ago and should work in the current release looking at
dokuwiki/inc/parser/metadata.php
Lines 744 to 746 in 31afae8
jpegxl and avif seem a little exotic imo, the former not even supported by the major browser vendors
from dokuwiki.
Not sure, I'll have to manually switch from the fedora package supplying dokuwiki as it seems to have lost its maintainer. Would manually editing the metadata.php file in my installation break future updates?
I'll agree about the exotic formats but I don't think there'll be an issue in adding them to the if statement. Will there really be an issue? Dokuwiki happily displays the images in the page itself.
from dokuwiki.
I've configured the line to:
if (preg_match('/.(jpe?g|gif|png|webp|svg|jxl|avif)$/i', $src)) {
$this->firstimage = $src;
}
And it works wonderfully, thank you so much! Would it be problematic to have this in the official dokuwiki code?
from dokuwiki.
Related Issues (20)
- Spaces are not replaced with underscore (config setting) - forbidden blank page instead HOT 7
- JWT shouldn't be stored in cachedir HOT 3
- Fulltext search: Nonexistent keyword with ^namespace exclude yields all pages
- Page access control issue HOT 3
- Trusting X-Forwarded-*
- Plugin vshare does not show/load all youtube-Videos on different platforms HOT 1
- Portrait Images not displaying HOT 1
- Media Manager error with Release 2024-02-06a "Kaos" & Bootstrap3
- Kaos 55.1 - E_WARNING: Undefined array key 0 HOT 6
- Automatically set the release date of bundled plugins to match that of DokuWiki HOT 1
- New line in text should be rendered as such and not appended to the line HOT 2
- RFC: Official Docker Image HOT 3
- DokuWiki can't be opened HOT 3
- GitHub actions triggered on forks
- DokuWiki 2024-02-06a has a stored XSS vulnerability HOT 14
- align url for lib/plugin members HOT 10
- Undefined array key 3 in ./inc/media.php on line 1700 HOT 7
- Incorrect logged in details shown in the wiki page HOT 3
- On offiziell DokuWiki Page: loading preview pictures from templates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokuwiki.