webpconv stable port information

Package: webpconv
Version: 0.0.5
Revision: 2
Description: OBSOLETE use package 'libwebp0-bin' instead
DescDetail: <<
WebP is a method of lossy compression that can be used on photographic
images. The degree of compression is adjustable so a user can choose
the trade-off between file size and image quality.

A WebP file consists of VP8 image data, and a container based on RIFF.
Webmasters, web developers and browser developers can use the WebP
format to create smaller, better looking images that can help make the
web faster.
<<
DescUsage: <<
This package is obsolete. Use the 'cwebp' and 'dwebp' utilities from
'libwebp0-bin' instead to convert to/from WebP files.

Using webpconv to convert images

Use webpconv on the command line to convert files to WebP or another format.

The webpconv command has the following syntax:

webpconv [-output_dir dir] [-format format] [-quality quality] input_file(s)

Arguments

-output_dir

Path to directory where files are placed. If no path is specified, files
are created in the input directory.

-format

Output image format. Valid formats are: BMP, JPEG, PNG, WEBP.

-quality

Integer. Parameter that specifies the trade off between the file size and
the quality of the output image. The range is from 0 to 100; 100 is the
best image quality with the largest file size. If no value is specified,
the default quality value corresponds to a target peak signal-to-noise
ratio (PSNR) value of 42. A PSNR value of 42 is usually regarded as a good
quality image.

Examples

You can convert a PNG image in /home/user/images/ to a WebP image with a
quality range of 80 with the command:

webpconv -quality 80 /home/user/images/img.png

You can convert a group of WebP images in /home/user/images/ to PNG and
place them in the /tmp folder with the command:

webpconv -output_dir /tmp -format PNG /home/user/images/*.webp
<<
License: BSD
Homepage: http://code.google.com/speed/webp/
Maintainer: Daniel Johnson

Source: http://webp.googlecode.com/files/webp-leptonica-%v.tar.gz
Source-MD5: da695d17be466156825b6ee799136042
SourceDirectory: webp

BuildDepends: <<
libjpeg8,
libpng14,
libvpx (>= 0.9.5)
<<

Depends: <<
fink-obsolete-packages,
libjpeg8-shlibs,
libpng14-shlibs
<<

# No, we don't want to add /opt/local and /sw.
PatchScript: perl -pi -e 's/\*-darwin\*/notme/' libwebp/configure

GCC: 4.0
CompileScript: <<
cd leptonlib-1.066/src && make EXTRAINCLUDES=-I%p/include
cd libwebp && ./configure %c && make INCLUDES='-I../../leptonlib-1.066/src -I%p/include' AM_LDFLAGS='-L../../leptonlib-1.066/lib/nodebug -L%p/lib'
<<

InstallScript: <<
install -d %i/bin
install libwebp/src/webpconv %i/bin/webpconv
<<

DocFiles: libwebp/LICENSE libwebp/README