R
R
Roma Zvarich2017-03-16 02:40:12
Java
Roma Zvarich, 2017-03-16 02:40:12

How can images be optimized losslessly in Java?

Hello.
There is a site catalog of objects, which provides a very large number of photographs. Trying to look to the future, we decided to make the allowable photo size 2560px.
There is a question of compressing uploaded photos, but an important condition is "without quality loss".
The usual JPG compression, specified as a percentage of 100, is not suitable.
For me, the ideal to follow is the quality of compression by the service https://tinyjpg.com/
Question: tell me, are there free / paid JAVA libraries for lossless image compression. It would also be useful to have information about specialists who are able to make such a library to order. And if there are none, then in which direction should our programmer direct his efforts to delve into this topic?
Thanks

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Roma Zvarich, 2017-03-16
@hisbvdis

At the moment, we finally found an open library on GitHub that compresses lossless photos very well.
True, it is not written in Java, but in C ++. The programmer said that you just need to adapt to Java.
However, this is by far the best solution.
Demo site: https://github.com/Lymphatus
GitHub page: https://github.com/Lymphatus

N
nirvimel, 2017-03-16
@nirvimel

I'll try to guess how this TinyJPG works:
Those who did not notice the difference in A / B tests will not notice the difference in any images compressed using this algorithm.

O
O. J, 2018-03-07
@OrlovEvgeny

You can hang a watcher that will monitor the appearance of new images on the site and compress in the background without losing quality,
for example, this
https://github.com/OrlovEvgeny/TinyJPG

E
Eugene Khrustalev, 2017-03-16
@eugenehr

https://github.com/coobird/thumbnailator/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question