Skip to content

Releases: rosell-dk/webp-convert

Fixed ewww

06 Apr 16:50
Compare
Choose a tag to compare

Ewww stopped working because the ewww api changed the content-type in the response. This update works with the changed api (as well as the old, in case ewww should decide to revert the change)

Changes:
https://github.com/rosell-dk/webp-convert/milestone/29?closed=1

Refactor and a bugfix

19 May 14:11
Compare
Choose a tag to compare
  • Bumped image-mime-type-guesser to 1.1.1 (fixes a bug in the mime mapper)
  • Improved the workflows so testing again works in a big matrix.

Also extracted some code into new repositories:

Setting WEBPCONVERT_CWEBP_PATH environment variable wasn't working

09 Dec 13:09
Compare
Choose a tag to compare
Setting WEBPCONVERT_CWEBP_PATH was no longer working. Fixed it. Close…

…s #326

no exec? - we try proc_open() and other alternatives

07 Dec 08:27
Compare
Choose a tag to compare
  • When exec() is unavailable, alternatives are now tried (emulations with proc_open(), passthru() etc). Using this library to do it.
  • Gd is now marked as not operational when the needed functions for converting palette images to RGB is missing. Rationale: A half-working converter causes more trouble than one that is marked as not operational
  • Improved CI tests. It is now tested on Windows, Mac and with deactivated functions (such as when exec() is disabled)
  • And more (view closed issues here

Converter options definitions are now exposed

24 Nov 10:19
Compare
Choose a tag to compare
  • Converter option definitions are now accessible along with suggested UI and helptexts. This allows one to auto-generate a frontend based on conversion options. The feature is already in use in the webp-convert file manager, which is used in WebP Express. New method: WebPConvert::getConverterOptionDefinitions()
  • The part of the log that displays the options are made more readable. It also now warns about deprecated options.
  • Bumped image-mime-type guesser library to 0.4. This version is able to dectect more mime types by sniffing the first couple of bytes.
  • And more (view closed issues here

ImageMagick now supports near-lossless (and more)

25 Oct 08:41
Compare
Choose a tag to compare
  • ImageMagick now supports the "near-lossless" option (provided Imagick >= 7.0.10-54) (#299)
  • Added "try-common-system-paths" option for ImageMagick (default: true). So ImageMagick will now peek for "convert" in common system paths (#293)
  • Fixed memory leak in Gd on very old versions of PHP (#264)

minor:

  • ImageMagick and Imagick now logs if options aren't supported due to too low version number (near-lossless and sharp-yuv) (#300)
  • Imagick now logs Imagick version (#304)
  • Switched from Travis CI to GitHub Workflows (#298)
  • Docs update (#297, #294)

https://github.com/rosell-dk/webp-convert/milestone/24?closed=1

New options, updated cwebp binaries, less overhead in cwebp

20 May 11:00
Compare
Choose a tag to compare
  • Introduced auto-limit option which replaces setting "quality" to "auto" #281.
  • Added "sharp-yuv" option and made it default on. Its great, use it! Works in most converters (works in cwebp, vips, imagemagick, graphicsmagick, imagick and gmagick) #267, #280, #284
  • Bumped cwebp binaries to 1.2.0 #273
  • vips now supports "method" option and "preset" option.
  • graphicsmagick now supports "auto-filter" potion
  • vips, imagick, imagemagick, graphicsmagick and gmagick now supports "preset" option #275
  • cwebp now only validates hash of supplied precompiled binaries when necessary. This cuts down conversion time. #287
  • Added new option to cwebp for skipping precompiled binaries that are known not to work on current system. This will cut down on conversion time. #288
  • And more (view closed issues here)

PHP 8

06 May 17:50
Compare
Choose a tag to compare

You can now use webp-convert with PHP 8.

Note: In order to have the unit tests working in PHP 8, an update to a newer version of PHPUnit was required (minimum 9.3 for PHP8 support). As PHPUnit 9.3 requires at least PHP 7.3, the requirements for dev is now PHP 7.3. But just dev - the library still works in PHP 7.2, 7.1, 7.0 and 5.6. The travis configuration has been tweaked a bit in order to still have unit tests run on those older PHP versions (PHP 8.0, PHP 7.4, PHP 7.2 and PHP 5.6 are currently tested on travis-ci)

Other:

  • Vips now supports the "method" option

ffmpeg

11 Nov 09:38
Compare
Choose a tag to compare

A new conversion method is available: ffmpeg. It works by executes ffmpeg binary if available on host. It is no match for cwebp, vips and imagick, as it only have a few options. But it seems to be generally more available than these. It however supports encoding (specifying lossless / lossy), "method" and "preset", which makes it a better choice than Gd.

Also, the cwebp binaries have been bumped to 1.1.0 (from 1.0.3), and there have been some minor bug fixes.

Check out the milestone for all changes:
https://github.com/rosell-dk/webp-convert/milestone/20?closed=1

Minor fixes. File permissions etc

18 Apr 14:43
Compare
Choose a tag to compare
  • The cwebp converter used the file permissions of the destination folder for the new converted file. It now takes the file permissions of the file that is converted instead.
  • Added error redirection to places where exec() command is used to prevent pollution of log files and CLI output (thanks, @raivisdejus)