File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 22
22
- invertlut: fix final value in some cases
23
23
- matrixload: fix file format detect for some matrix types
24
24
- radload: improve sanity check of colour-related headers [lovell]
25
+ - heifsave: reject multiband images [lovell]
25
26
26
27
10/10/24 8.16.0
27
28
Original file line number Diff line number Diff line change @@ -689,6 +689,15 @@ vips_foreign_save_heif_build(VipsObject *object)
689
689
return -1 ;
690
690
}
691
691
692
+ /* Reject multiband images.
693
+ */
694
+ if (save -> ready -> Type == VIPS_INTERPRETATION_MULTIBAND ) {
695
+ vips_error ("heifsave" , _ ("Unsupported interpretation: %s" ),
696
+ vips_enum_nick (VIPS_TYPE_INTERPRETATION ,
697
+ save -> ready -> Type ));
698
+ return -1 ;
699
+ }
700
+
692
701
/* Make a heif image the size of a page. We send sink_disc() output
693
702
* here and write a frame each time it fills.
694
703
*/
You can’t perform that action at this time.
0 commit comments