Skip to content
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

Adding resolution/icc info tags and 8 bits support ? #16

Open
sebastienleon opened this issue Mar 7, 2022 · 6 comments
Open

Adding resolution/icc info tags and 8 bits support ? #16

sebastienleon opened this issue Mar 7, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@sebastienleon
Copy link

Hi Rich,
(I sent an email about this issue, but I guess it didn't reach you)

fpng is really efficient and interesting work. Congratulations !

However, to cover most of png usual features (and according my need), I think it would be great to add the following support/features :

  • resolution information (easy to add)
  • ICC profile (or at least the sRGB tag) (somehow easy to add)
  • support for indexed pictures (more complicated)

I think that I can add the support of resolution and icc profile, keeping the code fast and the API simple (just passing an
extra pointer for optional tags, that can be extend to other tags in the future)...

Do you think you may extend your code in the future to support indexed images ?

Best regards

Sébastien Léon

@sebastienleon
Copy link
Author

Hi guys,
FYI, I implemented these 2 extra features :

  • Resolution information (easy to add)
  • ICC profile (or at least the sRGB tag) (somehow easy to add)
    Do you want me to commit to merge with head ?
    (if the feature is not used, it doesn't take extra time and when used, it is quite fast)
    Best regards
    Sébastien

@richgel999 richgel999 added the enhancement New feature or request label Apr 15, 2022
@richgel999
Copy link
Owner

Do you want me to commit to merge with head ?
Could you give me a PR against head?

@sebastienleon
Copy link
Author

Hi,
Thanks for your answer !
I will do that in 2 weeks.
Thanks

@MiaoDX
Copy link

MiaoDX commented Jul 26, 2023

Hi, looking forward to this feature of 8(/16) bit support, any update?

@sebastienleon
Copy link
Author

Hi MiaoDX,
I implemented support for resolution and ICC profile tags (and I can make a PR so Rich can integrate it in head).
Unfortunately, I didn't look into the 8 bits supports as it is more an in-depth feature :-(
But, I would be really really interested to get 8 bits supports too.
Sébastien

@MiaoDX
Copy link

MiaoDX commented Jul 31, 2023

@sebastienleon

Thanks, we switched to https://github.com/facebook/zstd for quicker integration.
Maybe fpng can be quicker latter, but we are encoding/decoding int8/int16 images, and after testing, ztsd is pretty good.

Maybe it's not bad to add extra comparison in the benchmark @richgel999

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

No branches or pull requests

3 participants