Skip to content

Commit d3a1d4d

Browse files
authored
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).
1 parent a86f337 commit d3a1d4d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- reduce latency on dzsave kill [kleisauke]
77
- improve text too large check [kleisauke]
88
- fix subifd writing for small images [ruven]
9+
- name ICC profiles in spngsave [lovell]
910

1011
24/7/22 started 8.13.1
1112
- fix im7 feature detection in meson

libvips/foreign/spngsave.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ vips_foreign_save_spng_metadata( VipsForeignSaveSpng *spng, VipsImage *in )
217217
"of ICC profile\n", length );
218218
#endif /*DEBUG*/
219219

220-
vips_strncpy( iccp.profile_name, "",
220+
vips_strncpy( iccp.profile_name, "icc",
221221
sizeof( iccp.profile_name ) );
222222
iccp.profile_len = length;
223223
iccp.profile = (void *) data;

0 commit comments

Comments
 (0)