With mobile development, showing images in an app has become a very frequent task. But with the ever-increasing resolution of smartphone cameras, image compression has become a rather important concern. Although there are already a lot of writings on the internet on the topic, a great number of possible scenarios still have to be thought of, like unsuccessful compressions, too small pictures (eg. for profile pictures) or too bad image quality. Naturally, the first idea was to see how WeChat, the app giant manages this task in action. To gather data, 100 images with different resolutions were sent through WeChat Moments, then the compressed images were compared with the original ones. Luban's foundation is the result of this analysis on WeChat's compression method. Because the process was analyzed backward, Luban's efficacy is not yet exactly the same as that of WeChat, but the results are already very close to what WeChat Moments' image compression produces.

Features

  • Image compressing tool for Android
  • Efficacy very close to that of WeChat
  • Luban internally uses the IO thread to perform image compression
  • Implementations only need to specify what happens when the process finishes successfully
  • With RxJava, more freedom is left to the programmer on controlling the process
  • Licensed under the Apache License

Project Samples

Project Activity

See All Activity >

Categories

Multimedia, Mobile

License

Apache License V2.0

Follow Luban

Luban Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Luban!

Additional Project Details

Operating Systems

Android

Programming Language

Java

Related Categories

Java Multimedia Software, Java Mobile Software

Registered

2022-02-28