mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 22:28:22 +01:00
03f40955a3
Usage: img2webp [file-level options] [image files...] [per-frame options...] File-level options (only used at the start of compression): -min_size ............ minimize size -loop <int> .......... loop count (default: 0, = infinite loop) -kmax <int> .......... maximum number of frame between key-frames (0=only keyframes) -kmin <int> .......... minimum number of frame between key-frames (0=disable key-frames altogether) -mixed ............... use mixed lossy/lossless automatic mode -v ................... verbose mode -h ................... this help Per-frame options (only used for subsequent images input): -d <int> ............. frame duration in ms (default: 100) -lossless ........... use lossless mode (default) -lossy ... ........... use lossy mode -q <float> ........... quality -m <int> ............. method to use example: img2webp -loop 2 in0.png -lossy in1.jpg -d 80 in2.tiff -o out.webp Change-Id: I23771b90eaf0660f420d7ffd304e704155386286
76 lines
2.6 KiB
Makefile
76 lines
2.6 KiB
Makefile
AM_CPPFLAGS += -I$(top_builddir)/src -I$(top_srcdir)/src
|
|
|
|
bin_PROGRAMS = dwebp cwebp
|
|
if BUILD_ANIMDIFF
|
|
noinst_PROGRAMS = anim_diff
|
|
endif
|
|
if BUILD_GIF2WEBP
|
|
bin_PROGRAMS += gif2webp
|
|
endif
|
|
if BUILD_IMG2WEBP
|
|
bin_PROGRAMS += img2webp
|
|
endif
|
|
if WANT_MUX
|
|
bin_PROGRAMS += webpmux
|
|
endif
|
|
if BUILD_VWEBP
|
|
bin_PROGRAMS += vwebp
|
|
endif
|
|
|
|
noinst_LTLIBRARIES = libexample_util.la
|
|
|
|
libexample_util_la_SOURCES = example_util.c example_util.h
|
|
libexample_util_la_LIBADD = ../src/libwebp.la
|
|
|
|
anim_diff_SOURCES = anim_diff.c anim_util.c anim_util.h
|
|
anim_diff_CPPFLAGS = $(AM_CPPFLAGS) $(USE_EXPERIMENTAL_CODE) $(GIF_INCLUDES)
|
|
anim_diff_LDADD = ../src/demux/libwebpdemux.la
|
|
anim_diff_LDADD += libexample_util.la ../imageio/libimageio_util.la
|
|
anim_diff_LDADD += $(GIF_LIBS) -lm
|
|
|
|
cwebp_SOURCES = cwebp.c stopwatch.h
|
|
cwebp_CPPFLAGS = $(AM_CPPFLAGS) $(USE_EXPERIMENTAL_CODE)
|
|
cwebp_LDADD = libexample_util.la ../imageio/libimageio_util.la
|
|
cwebp_LDADD += ../imageio/libimagedec.la ../src/libwebp.la
|
|
cwebp_LDADD += $(JPEG_LIBS) $(PNG_LIBS) $(TIFF_LIBS)
|
|
|
|
dwebp_SOURCES = dwebp.c stopwatch.h
|
|
dwebp_CPPFLAGS = $(AM_CPPFLAGS) $(USE_EXPERIMENTAL_CODE)
|
|
dwebp_CPPFLAGS += $(JPEG_INCLUDES) $(PNG_INCLUDES)
|
|
dwebp_LDADD = libexample_util.la
|
|
dwebp_LDADD += ../imageio/libimagedec.la
|
|
dwebp_LDADD += ../imageio/libimageenc.la
|
|
dwebp_LDADD += ../imageio/libimageio_util.la
|
|
dwebp_LDADD += ../src/libwebp.la
|
|
dwebp_LDADD +=$(PNG_LIBS) $(JPEG_LIBS)
|
|
|
|
gif2webp_SOURCES = gif2webp.c gifdec.c gifdec.h
|
|
gif2webp_CPPFLAGS = $(AM_CPPFLAGS) $(USE_EXPERIMENTAL_CODE) $(GIF_INCLUDES)
|
|
gif2webp_LDADD = libexample_util.la ../imageio/libimageio_util.la
|
|
gif2webp_LDADD += ../src/mux/libwebpmux.la ../src/libwebp.la $(GIF_LIBS)
|
|
|
|
vwebp_SOURCES = vwebp.c
|
|
vwebp_CPPFLAGS = $(AM_CPPFLAGS) $(USE_EXPERIMENTAL_CODE) $(GL_INCLUDES)
|
|
vwebp_LDADD = libexample_util.la ../imageio/libimageio_util.la
|
|
vwebp_LDADD += ../src/demux/libwebpdemux.la $(GL_LIBS)
|
|
|
|
webpmux_SOURCES = webpmux.c
|
|
webpmux_CPPFLAGS = $(AM_CPPFLAGS) $(USE_EXPERIMENTAL_CODE)
|
|
webpmux_LDADD = libexample_util.la ../imageio/libimageio_util.la
|
|
webpmux_LDADD += ../src/mux/libwebpmux.la ../src/libwebp.la
|
|
|
|
img2webp_SOURCES = img2webp.c
|
|
img2webp_CPPFLAGS = $(AM_CPPFLAGS) $(USE_EXPERIMENTAL_CODE)
|
|
img2webp_LDADD = libexample_util.la ../imageio/libimageio_util.la
|
|
img2webp_LDADD += ../imageio/libimagedec.la
|
|
img2webp_LDADD += ../src/mux/libwebpmux.la ../src/libwebp.la
|
|
img2webp_LDADD += $(PNG_LIBS) $(JPEG_LIBS) $(TIFF_LIBS)
|
|
|
|
if BUILD_LIBWEBPDECODER
|
|
anim_diff_LDADD += ../src/libwebpdecoder.la
|
|
vwebp_LDADD += ../src/libwebpdecoder.la
|
|
else
|
|
anim_diff_LDADD += ../src/libwebp.la
|
|
vwebp_LDADD += ../src/libwebp.la
|
|
endif
|