set magick-format

see https://github.com/libvips/libvips/discussions/3011
This commit is contained in:
John Cupitt 2022-08-26 15:53:01 +01:00
parent f4cd55ddf5
commit 4a85214c0e
1 changed files with 9 additions and 0 deletions

View File

@ -66,6 +66,8 @@
* - add profile (xmp, ipct, etc.) read
* 12/11/21
* - set "orientation"
* 26/8/22
* - set "magick-format"
*/
/*
@ -485,6 +487,13 @@ parse_header( Read *read )
}
#endif
/* Something like "BMP".
*/
if( read->image->magick &&
strlen( read->image->magick ) > 0 )
vips_image_set_string( im, "magick-format",
read->image->magick );
/* Do we have a set of equal-sized frames? Append them.
FIXME ... there must be an attribute somewhere from dicom read