/extremeimgcompression

Using Genetic Algorithm To Compress Images (Destructive)

Primary LanguagePythonApache License 2.0Apache-2.0

Extreme Image Compression

Using Genetic Algorithm To Compress Images (Destructive)

The idea is to find the best way to approximate an image using a limited set of triangles.

Screenshots

Showcase

Picasso Pearl Banksy
Picasso Pearl Banksy
200 × 265 Raw Size : 159K 128 × 162 Raw Size : 62K 250 x 330 Raw Size : 247K
32 triangles : 576 bytes 32 triangles : 576 bytes 32 triangles : 576 bytes
Ratio : 0.3 % Ratio : 0.9 % Ratio : 0.2 %
Scream Cupcake Banksy
Scream cupcake Banksy
128 × 172 Raw Size: 66K 160 x 162 Raw: 77K 250 x 330 Raw Size : 247K
20 triangles : 360 bytes 32 triangles : 576 bytes 8 triangles : 152 bytes
Ratio : 0.3 %

Showcase transparent

Scream Scream Pearl
Scream ScreamMov Scream