webp-convert: Error handling

I’m not happy with the side effects of calling convert (besides the conversion of the file). Right now, calling convert causes stuff to be echoed out (either as html text or image). It would be cleaner not to have these side effects, but rather have a way to receive that kind of information. Also, I’d like there to be a way for consumers to handle conversion errors.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (11 by maintainers)

Commits related to this issue

Most upvoted comments

Typically, you will just want to do a conversion and be able to handle errors. For that, a static function is most suitable, it seem

Sounds good! Btw, Monday, I’m off for easter holliday. Going to your country, actually. But not quite as far south as your residence. First a couple of days in Hamburg, next some days in Hannover, where my wife lived some time.