diff --git a/TODO b/TODO index af11e202..29abd088 100644 --- a/TODO +++ b/TODO @@ -1,9 +1,3 @@ -- try: - - vips colourspace 16bit.tif 8bit.tif sRGB - - to convert a RGB16 image to a sRGB one ... you get RGB in 8bit.tif, but it's - still 16-bit - can we use postbuild elsewhere? look at use of "preclose" / "written", etc. diff --git a/libvips/foreign/dzsave.c b/libvips/foreign/dzsave.c index 16f27149..31ee8095 100644 --- a/libvips/foreign/dzsave.c +++ b/libvips/foreign/dzsave.c @@ -39,6 +39,9 @@ * 18/4/14 * - use libgsf for output so we can write to .zip etc. as well as the * filesystem + * 8/5/14 + * - set Type on strips so we can convert for save correctly, thanks + * philipgiuliani */ /* @@ -859,6 +862,10 @@ strip_init( Strip *strip, Layer *layer ) strip_free( strip ); return; } + + /* Type needs to be set so we know how to convert for save correctly. + */ + strip->image->Type = layer->image->Type; } static int