Thanks to visit codestin.com
Credit goes to github.com

Skip to content

spngsave: ensure ICC profiles have a name #3068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

lovell
Copy link
Member

@lovell lovell commented Sep 28, 2022

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).

http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html#C.iCCP

png_set_iCCP( write->pPng, write->pInfo,
"icc", PNG_COMPRESSION_TYPE_BASE,
(void *) data, length );

Targets the 8.13 branch as this is a bug fix.

Originally reported at lovell/sharp#3390

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).
@jcupitt
Copy link
Member

jcupitt commented Sep 28, 2022

Huh what a strange spec. Good fix!

@jcupitt
Copy link
Member

jcupitt commented Sep 28, 2022

... I'll merge to master as well.

Should we make 8.13.2? It's picked up quite a few useful fixes now.

@lovell lovell deleted the 8.13-spngsave-icc-profile branch September 28, 2022 19:33
@lovell
Copy link
Member Author

lovell commented Sep 28, 2022

Thanks, and yes please to 8.13.2 when you're ready.

@jcupitt
Copy link
Member

jcupitt commented Sep 29, 2022

OK, done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants