This commit is contained in:
John Cupitt 2009-10-08 16:14:11 +00:00
parent a584569881
commit 3ca5f876e4
3 changed files with 6 additions and 1 deletions

3
TODO
View File

@ -2,6 +2,9 @@
split prepare, generate etc. out to another chapter, maybe generate.h
man page for im_demand_hint() has some nice notes on SMALLTILE etc we could
paste into the VipsDemandStyle comment
- VipsFormat next? where should we document the im_vip2jpeg() options?

View File

@ -617,6 +617,7 @@ im_magick2vips( const char *filename, IMAGE *im )
if( parse_header( read ) ||
im_poutcheck( im ) ||
im_demand_hint( im, IM_SMALLTILE, NULL ) ||
im_generate( im, NULL, magick_fill_region, NULL, read, NULL ) )
return( -1 );

View File

@ -260,7 +260,8 @@ open_lazy( OpenLazyFn read_header, OpenLazyFn read_pixels,
lazy->read_pixels = read_pixels;
lazy->lazy_im = NULL;
if( read_header( filename, out ) )
if( read_header( filename, out ) ||
im_demand_hint( out, IM_ANY, NULL ) )
return( -1 );
if( im_generate( out,