allow smaller rowsperstrip
and some other tiny things
This commit is contained in:
parent
ff1dd39432
commit
1593b23fc4
6
TODO
6
TODO
@ -1,9 +1,3 @@
|
||||
- add tests for vips_arrayjoin()
|
||||
|
||||
and valgrind it too
|
||||
|
||||
could crop before we pad, perhaps? we could nest two embeds, that might be
|
||||
simpler
|
||||
|
||||
- get some brightly coloured spots with nohalo / vsqbs on wobble.ws ... very
|
||||
odd, the interpolation shouldn't change between bands
|
||||
|
@ -357,9 +357,6 @@ vips_embed_build( VipsObject *object )
|
||||
embed->height == embed->in->Ysize )
|
||||
return( vips_image_write( embed->in, conversion->out ) );
|
||||
|
||||
if( vips_image_pio_input( embed->in ) )
|
||||
return( -1 );
|
||||
|
||||
if( !(embed->ink = vips__vector_to_ink(
|
||||
class->nickname, embed->in,
|
||||
VIPS_AREA( embed->background )->data, NULL,
|
||||
|
@ -2042,7 +2042,7 @@ vips__tiff_read_buffer( const void *buf, size_t len,
|
||||
|
||||
#ifdef DEBUG
|
||||
printf( "tiff2vips: libtiff version is \"%s\"\n", TIFFGetVersion() );
|
||||
printf( "tiff2vips: libtiff starting for %s\n", filename );
|
||||
printf( "tiff2vips: libtiff starting for buffer %p\n", buf );
|
||||
#endif /*DEBUG*/
|
||||
|
||||
vips__tiff_init();
|
||||
|
@ -857,11 +857,16 @@ write_new( VipsImage *im, const char *filename,
|
||||
write->xres = xres;
|
||||
write->yres = yres;
|
||||
|
||||
if( (write->tilew & 0xf) != 0 ||
|
||||
(write->tileh & 0xf) != 0 ) {
|
||||
vips_error( "vips2tiff",
|
||||
"%s", _( "tile size not a multiple of 16" ) );
|
||||
return( NULL );
|
||||
/* In strip mode we use tileh to set rowsperstrip, and that does not
|
||||
* have the multiple-of-16 restriction.
|
||||
*/
|
||||
if( tile ) {
|
||||
if( (write->tilew & 0xf) != 0 ||
|
||||
(write->tileh & 0xf) != 0 ) {
|
||||
vips_error( "vips2tiff",
|
||||
"%s", _( "tile size not a multiple of 16" ) );
|
||||
return( NULL );
|
||||
}
|
||||
}
|
||||
|
||||
/* We can only pyramid LABQ and non-complex images.
|
||||
|
Loading…
Reference in New Issue
Block a user