tiff write works

This commit is contained in:
John Cupitt 2011-12-03 10:59:25 +00:00
parent 47fdd3ae6d
commit 24b3330487
3 changed files with 24 additions and 7 deletions

17
TODO
View File

@ -1,17 +1,28 @@
- does the tiff writer support "none" for the profile? - does the tiff writer support "none" for the profile?
bool args should let you skip the '=', eg.
vips copy x.jpg x.tif[tile,tile-width=1024]
try
$ vips copy x.jpg x.tif[tile=true,tilew=1024]
save image to tiff file: class `VipsForeignSaveTiff' has no property named `tilew'
VipsObject: bad object arguments
using class blurb rather than nick in error!
- "header fred.tif" does not work, since header uses im_open() which uses
- "header fred.png" does not work, since header uses im_open() which uses
VipsForeign VipsForeign
- make the old format/vips.c into a stub as well? - make the old format/vips.c into a stub as well?
try tiff load
move format/* to deprecated move format/* to deprecated

View File

@ -1016,6 +1016,7 @@ vips_foreign_operation_init( void )
extern GType vips_foreign_save_jpeg_file_get_type( void ); extern GType vips_foreign_save_jpeg_file_get_type( void );
extern GType vips_foreign_save_jpeg_buffer_get_type( void ); extern GType vips_foreign_save_jpeg_buffer_get_type( void );
extern GType vips_foreign_save_jpeg_mime_get_type( void ); extern GType vips_foreign_save_jpeg_mime_get_type( void );
extern GType vips_foreign_save_tiff_get_type( void );
extern GType vips_foreign_load_vips_get_type( void ); extern GType vips_foreign_load_vips_get_type( void );
extern GType vips_foreign_save_vips_get_type( void ); extern GType vips_foreign_save_vips_get_type( void );
@ -1026,6 +1027,11 @@ vips_foreign_operation_init( void )
vips_foreign_save_jpeg_buffer_get_type(); vips_foreign_save_jpeg_buffer_get_type();
vips_foreign_save_jpeg_mime_get_type(); vips_foreign_save_jpeg_mime_get_type();
#endif /*HAVE_JPEG*/ #endif /*HAVE_JPEG*/
#ifdef HAVE_TIFF
vips_foreign_save_tiff_get_type();
#endif /*HAVE_TIFF*/
vips_foreign_load_vips_get_type(); vips_foreign_load_vips_get_type();
vips_foreign_save_vips_get_type(); vips_foreign_save_vips_get_type();
} }

View File

@ -90,13 +90,13 @@ vips_operation_class_print_arg( VipsObjectClass *object_class,
vips_buf_appendf( buf, "%s\n", print->message ); vips_buf_appendf( buf, "%s\n", print->message );
if( print->oftype ) { if( print->oftype ) {
vips_buf_appendf( buf, " %-10s - %s, %s (%s)\n", vips_buf_appendf( buf, " %-12s - %s, %s %s\n",
g_param_spec_get_name( pspec ), g_param_spec_get_name( pspec ),
g_param_spec_get_blurb( pspec ), g_param_spec_get_blurb( pspec ),
g_type_name(
G_PARAM_SPEC_VALUE_TYPE( pspec ) ),
(argument_class->flags & VIPS_ARGUMENT_INPUT) ? (argument_class->flags & VIPS_ARGUMENT_INPUT) ?
_( "input" ) : _( "output" ) ); _( "input" ) : _( "output" ),
g_type_name(
G_PARAM_SPEC_VALUE_TYPE( pspec ) ) );
} }
else { else {
if( print->n > 0 ) if( print->n > 0 )