better arg ranges for embed

This commit is contained in:
John Cupitt 2012-03-06 14:34:56 +00:00
parent dbb8f5fac5
commit 11fff8343e

View File

@ -537,14 +537,14 @@ vips_embed_class_init( VipsEmbedClass *class )
_( "Image width in pixels" ),
VIPS_ARGUMENT_REQUIRED_INPUT,
G_STRUCT_OFFSET( VipsEmbed, width ),
0, 1000000, 0 );
1, 1000000, 1 );
VIPS_ARG_INT( class, "height", 5,
_( "Height" ),
_( "Image height in pixels" ),
VIPS_ARGUMENT_REQUIRED_INPUT,
G_STRUCT_OFFSET( VipsEmbed, height ),
0, 1000000, 0 );
1, 1000000, 1 );
VIPS_ARG_ENUM( class, "extend", 6,
_( "Extend" ),