spngsave: name ICC profiles (#3068)

The PNG spec requires that the iCCP chunk has a profile name with
a minumum length of 1 (we use the same "icc" name as pngsave).
This commit is contained in:
Lovell Fuller 2022-09-28 16:28:44 +01:00 committed by GitHub
parent a86f33769b
commit d3a1d4df1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
- reduce latency on dzsave kill [kleisauke]
- improve text too large check [kleisauke]
- fix subifd writing for small images [ruven]
- name ICC profiles in spngsave [lovell]
24/7/22 started 8.13.1
- fix im7 feature detection in meson

View File

@ -217,7 +217,7 @@ vips_foreign_save_spng_metadata( VipsForeignSaveSpng *spng, VipsImage *in )
"of ICC profile\n", length );
#endif /*DEBUG*/
vips_strncpy( iccp.profile_name, "",
vips_strncpy( iccp.profile_name, "icc",
sizeof( iccp.profile_name ) );
iccp.profile_len = length;
iccp.profile = (void *) data;