make sure tiff load is THINSTRIP

it was always SMALLTILE before, since it was the result of _header which
set downstream behaviour, not the actual load
This commit is contained in:
John Cupitt 2015-12-14 14:07:48 +00:00
parent 26ae034389
commit d093b6447b
1 changed files with 6 additions and 0 deletions

View File

@ -1146,6 +1146,12 @@ parse_header( ReadTiff *rtiff, VipsImage *out )
out->Xsize = width;
out->Ysize = height;
/* Even though we could end up serving tiled data, always hint
* THINSTRIP, since we're quite happy doing that too, and it could need
* a lot less memory.
*/
vips_image_pipelinev( out, VIPS_DEMAND_STYLE_THINSTRIP, NULL );
#ifdef DEBUG
printf( "parse_header: samples_per_pixel = %d\n",
rtiff->samples_per_pixel );