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

FPNG-JAVA: Java Wrapper available #23

Open
manticore-projects opened this issue Nov 14, 2023 · 2 comments
Open

FPNG-JAVA: Java Wrapper available #23

manticore-projects opened this issue Nov 14, 2023 · 2 comments

Comments

@manticore-projects
Copy link

Thank you for providing this great encoder.
I have wrapped it into a Java Library and also ran benchmark against other fast Java PNG Encoders. Your implementation is doing great (despite the JNA overhead and the expensive RGBA byte array composition).

https://github.com/manticore-projects/fpng-java

@manticore-projects
Copy link
Author

Greetings! We have just released FPNG-JAVA stable version 1.1.0 with binaries for Windows, Linux and MacOS.

I had to add some Macros for getting the Windows DLL work.

Please try it and let us know about your benchmarks.
Thank you a lot and cheers!

@manticore-projects
Copy link
Author

Question please:

For "small" size PNGs, the FPNG encoded size is very competitive, especially when considering the huge performance gain.
Of course, with the other encoders even smaller encodings are possible, but that would come with much worse performance.

However, for large size PNGs, there seem to be a material penalty in encoded size. Almost 70% larger than ImageIO.
Is that expected an explainable by design? If so, what is the expected "sweet spot" where compression rates fall off? What is the reason that compression gets worse for the large image?

image

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

No branches or pull requests

1 participant