magicksave supports strip option
This commit is contained in:
parent
20b9d77086
commit
aac01126af
@ -580,15 +580,6 @@ vips_foreign_load_gif_set_header( VipsForeignLoadGif *gif, VipsImage *image )
|
||||
if( gif->comment )
|
||||
vips_image_set_string( image, "gif-comment", gif->comment );
|
||||
|
||||
{
|
||||
int array[10];
|
||||
int i;
|
||||
|
||||
for( i = 0; i < 10; i++ )
|
||||
array[i] = i;
|
||||
vips_image_set_array_int( image, "delay", array, 10 );
|
||||
}
|
||||
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
|
@ -6,6 +6,8 @@
|
||||
* 17/2/19
|
||||
* - support ICC, XMP, EXIF, IPTC metadata
|
||||
* - write with a single call to vips_sink_disc()
|
||||
* 29/6/19
|
||||
* - support "strip" option
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -165,7 +167,8 @@ vips_foreign_save_magick_next_image( VipsForeignSaveMagick *magick )
|
||||
*/
|
||||
image->dispose = BackgroundDispose;
|
||||
|
||||
if( magick_set_magick_profile( image, im, magick->exception ) ) {
|
||||
if( !save->strip &&
|
||||
magick_set_magick_profile( image, im, magick->exception ) ) {
|
||||
magick_vips_error( class->nickname, magick->exception );
|
||||
return( -1 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user