Giter VIP home page Giter VIP logo

webp-convert-and-serve's People

Contributors

rosell-dk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hengle

webp-convert-and-serve's Issues

new convertAndServeImage signature

proposing moving from:

convertAndServeImage($source, $destination, $options, $failAction, $criticalFailAction, $debug = false)

to:

convertAndServeImage($source, $destination, $options)
  • $failAction and $criticalFailAction could be part of $options instead
  • $debug could also be part of options. But perhaps rename it to "display-errors'. Or perhaps, better: removed entirely

Control error_reporting

In 0.3, (and in convertAndServeImage), we had these lines:

        if ($debug) {
            error_reporting(E_ALL);
            ini_set('display_errors', 'On');
        } else {
            ini_set('display_errors', 'Off');
        }

These were removed in 0.4
But actually, they made a lot of sense.
If a warning should be issued, while we are producing an image, we will get a corrupt image.

I propose a new option, "display_errors".
If set to "auto", it will behave like above (On, if showing a report, Off, if showing a report). This should be default value.
If set to "dont-mess", nothing will be messed with.
No other values needed (we don't want to advocate that same setting is used for report and image)

Set up travis with functioning converters

It should be possible to set up Travis with functioning converters (cwebp, gd, imagick and perhaps also wpc, if I can figure out a way to only allow travis to use it).

This issue is related to #4.

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.