small fixups

- remove -c abbrv. for --vips-concurrency
- better desc for insert
- revise vips.1 man page
This commit is contained in:
John Cupitt 2014-06-19 09:59:29 +01:00
parent 32f5c444c5
commit 415b6d08be
4 changed files with 22 additions and 18 deletions

6
TODO
View File

@ -6,9 +6,11 @@
on set_progress(FALSE) vips_sink_disc() should stop calling on set_progress(FALSE) vips_sink_disc() should stop calling
vips_image_preeval() vips_image_preeval()
- rewrite vips.1 manpage - shouldn't
- remove -c abbrev. for --vips-concurrency $ vips invert --help
produce help for invert? or did that get removed?
- threadpool recyling might be useful for dzsave? - threadpool recyling might be useful for dzsave?

View File

@ -451,7 +451,8 @@ vips_insert_class_init( VipsInsertClass *class )
gobject_class->get_property = vips_object_get_property; gobject_class->get_property = vips_object_get_property;
vobject_class->nickname = "insert"; vobject_class->nickname = "insert";
vobject_class->description = _( "insert an image" ); vobject_class->description =
_( "insert image @sub into @main at @x, @y" );
vobject_class->build = vips_insert_build; vobject_class->build = vips_insert_build;
operation_class->flags = VIPS_OPERATION_SEQUENTIAL_UNBUFFERED; operation_class->flags = VIPS_OPERATION_SEQUENTIAL_UNBUFFERED;

View File

@ -511,7 +511,7 @@ static GOptionEntry option_entries[] = {
{ "vips-fatal", 0, G_OPTION_FLAG_HIDDEN | G_OPTION_FLAG_NO_ARG, { "vips-fatal", 0, G_OPTION_FLAG_HIDDEN | G_OPTION_FLAG_NO_ARG,
G_OPTION_ARG_CALLBACK, (gpointer) &vips_set_fatal_cb, G_OPTION_ARG_CALLBACK, (gpointer) &vips_set_fatal_cb,
N_( "abort on first error or warning" ), NULL }, N_( "abort on first error or warning" ), NULL },
{ "vips-concurrency", 'c', 0, { "vips-concurrency", 0, 0,
G_OPTION_ARG_INT, &vips__concurrency, G_OPTION_ARG_INT, &vips__concurrency,
N_( "evaluate with N concurrent threads" ), "N" }, N_( "evaluate with N concurrent threads" ), "N" },
{ "vips-tile-width", 0, G_OPTION_FLAG_HIDDEN, { "vips-tile-width", 0, G_OPTION_FLAG_HIDDEN,

View File

@ -6,13 +6,13 @@ vips \- run vips operations from the command line
.SH DESCRIPTION .SH DESCRIPTION
.B vips(1) .B vips(1)
is the VIPS universal main program. You can use it to run any VIPS operation is the VIPS universal main program. You can use it to run any VIPS operation
from the command line, to query the VIPS function database, and to from the command line, to query the VIPS class hierarchy, and to
maintain parts of the VIPS library. maintain parts of the VIPS library.
To run a VIPS function, the first argument should be the name of the function To run a VIPS function, the first argument should be the name of the function
and following arguments should be the function parameters. For example: and following arguments should be the function parameters. For example:
$ vips im_invert lena.v lena2.v $ vips invert lena.v lena2.v
.SH OPTIONS .SH OPTIONS
.TP .TP
@ -28,7 +28,7 @@ Show VIPS version.
.TP .TP
.B list PACKAGE .B list PACKAGE
List operations defined in PACKAGE. PACKAGE can also be "classes", "packages" List operations defined in PACKAGE. PACKAGE can also be "classes", "packages"
or "all". or "all".
.TP .TP
.B cpph PACKAGE .B cpph PACKAGE
@ -46,26 +46,27 @@ vips8 interface.
.SH EXAMPLES .SH EXAMPLES
Run a vips7 operation. The vips7 interface does not suport optional arguments.
$ vips im_invert lena.v lena2.v
Run a vips8 operation. Operation options must follow the operation name. Run a vips8 operation. Operation options must follow the operation name.
$ vips add --imtest=option.jpg lena.v lena2.v out.v $ vips insert lena.v lena2.v out.v 0 0 --background "128 0 0"
Get a "usage" message for an operation Get a "usage" message for an operation
$ vips add $ vips insert
insert image @sub into @main at @x, @y
usage: usage:
add left right out insert main sub out x y
add two images
where: where:
left - Left-hand image argument, input VipsImage main - Main input image, input VipsImage
right - Right-hand image argument, input VipsImage sub - Sub-image to insert into main image, input VipsImage
out - Output image, output VipsImage out - Output image, output VipsImage
x - Left edge of sub in main, input gint
y - Top edge of sub in main, input gint
optional arguments:
expand - Expand output to hold all of both inputs, input gboolean
background - Colour for new pixels, input VipsArrayDouble
operation flags: sequential-unbuffered operation flags: sequential-unbuffered
add: too few arguments insert: too few arguments
.SH RETURN VALUE .SH RETURN VALUE
returns 0 on success and non-zero on error. returns 0 on success and non-zero on error.