[webp] Use well documented use_sharp_yuv option instead of preprocessing

This commit is contained in:
Przemysław Sobala 2019-07-05 13:14:32 +02:00
parent 80f247cfb2
commit 1c30a8567c
2 changed files with 4 additions and 4 deletions

View File

@ -1160,14 +1160,14 @@ if test x"$with_cfitsio" != x"no"; then
) )
fi fi
# libwebp ... target 0.5+ to reduce complication # libwebp ... target 0.6+ to reduce complication
# webp has the stuff for handling metadata in two separate libraries -- we # webp has the stuff for handling metadata in two separate libraries -- we
# insit on having all of them # insit on having all of them
AC_ARG_WITH([libwebp], AC_ARG_WITH([libwebp],
AS_HELP_STRING([--without-libwebp], [build without libwebp (default: test)])) AS_HELP_STRING([--without-libwebp], [build without libwebp (default: test)]))
if test x"$with_libwebp" != x"no"; then if test x"$with_libwebp" != x"no"; then
PKG_CHECK_MODULES(LIBWEBP, libwebp >= 0.5 libwebpmux >= 0.5 libwebpdemux >= 0.5, PKG_CHECK_MODULES(LIBWEBP, libwebp >= 0.6 libwebpmux >= 0.6 libwebpdemux >= 0.6,
[AC_DEFINE(HAVE_LIBWEBP,1,[define if you have libwebp/libwebpmux/libwebpdemux installed.]) [AC_DEFINE(HAVE_LIBWEBP,1,[define if you have libwebp/libwebpmux/libwebpdemux installed.])
with_libwebp=yes with_libwebp=yes
PACKAGES_USED="$PACKAGES_USED libwebp libwebpmux libwebpdemux" PACKAGES_USED="$PACKAGES_USED libwebp libwebpmux libwebpdemux"
@ -1476,7 +1476,7 @@ SVG import with librsvg-2.0: $with_rsvg
zlib: $with_zlib zlib: $with_zlib
file import with cfitsio: $with_cfitsio file import with cfitsio: $with_cfitsio
file import/export with libwebp: $with_libwebp file import/export with libwebp: $with_libwebp
(requires libwebp, libwebpmux, libwebpdemux 0.5.0 or later) (requires libwebp, libwebpmux, libwebpdemux 0.6.0 or later)
text rendering with pangoft2: $with_pangoft2 text rendering with pangoft2: $with_pangoft2
file import/export with libpng: $with_png file import/export with libpng: $with_png
(requires libpng-1.2.9 or later) (requires libpng-1.2.9 or later)

View File

@ -184,7 +184,7 @@ vips_webp_write_init( VipsWebPWrite *write, VipsImage *image,
if( near_lossless ) if( near_lossless )
write->config.near_lossless = Q; write->config.near_lossless = Q;
if( smart_subsample ) if( smart_subsample )
write->config.preprocessing |= 4; write->config.use_sharp_yuv = 1;
if( !WebPValidateConfig( &write->config ) ) { if( !WebPValidateConfig( &write->config ) ) {
vips_webp_write_unset( write ); vips_webp_write_unset( write );