Spectrum – Image transcoding library for Android or iOS

markoa | 130 points

Figured this is worth a note here: Squoosh is an image compression web app that allows you to dive into the advanced options provided by various image compressors. https://github.com/GoogleChromeLabs/squoosh

dubyajaysmith | 5 years ago

Looks interesting, though on recent iOS devices, images will be in HEIF format, which is about 50% the size of JPEG at similar quality, and MozJPEG isn't compatible with it afaik.

If you're interested in compressing JPEGs without quality loss, there's a free Mac app called ImageOptim that can handle JPEG, GIF and PNG. It has Google's Guetlzi, so on some JPEG you can reach 20-40% compression without any loss of quality that I could detect (and sometimes lower levels around 10% on images that are already well compressed or smaller resolution).

https://imageoptim.com/mac

MikeCapone | 5 years ago

Is there a site which tracks the use of such libraries across popular apps, similar to builtwith?

fareesh | 5 years ago

More detail about the open source here: https://code.fb.com/developer-tools/spectrum/

moneil971 | 5 years ago

It's interesting to see no iOS example code in Swift.

I know that the Swift adoption rate at Facebook is low for certain reasons, but I was hoping it would go up, or at least be of concern for open sourced projects.

stigi | 5 years ago

Nice. Anyone have experience using this?

priitmaxx | 5 years ago

Is there integration with React Native?

codecrusade | 5 years ago

Good thing

tsouhaieb | 5 years ago

Facebook has the worst image compression on any website, their photos are compressed to a point where they look horrible. Why would anyone want to use this?

I do not see what this benefits any developer over just using mozjpeg with better settings.

Dork1234 | 5 years ago

I like how there are 2 products called Spectrum on the front page and they are completely unrelated. Anyway, this lib looks pretty ok for it's purpose.

duiker101 | 5 years ago

Facebook. No thanks

SkeptinenSpede5 | 5 years ago

The title should say "Android and iOS" rather than "Android or iOS", it makes more sense that way.

nyuszika7h | 5 years ago

I'm going to make a similar library called Verizon.

njn | 5 years ago