GithubHelp home page GithubHelp logo

Comments (3)

mprins avatar mprins commented on June 25, 2024 1

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

if (preg_match('/.(jpe?g|gif|png|webp|svg)$/i', $src)) {
$this->firstimage = $src;
}

jpegxl and avif seem a little exotic imo, the former not even supported by the major browser vendors

from dokuwiki.

sludgeFudge avatar sludgeFudge commented on June 25, 2024

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.

sludgeFudge avatar sludgeFudge commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.