GithubHelp home page GithubHelp logo

c8bit / web-mage Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 24 KB

A small Python package for optimizing images for the web. Can be used as an import or a CLI utility.

Home Page: https://pypi.org/project/web-mage/

License: MIT License

Makefile 0.74% Python 99.26%

web-mage's People

web-mage's Issues

More complete Unit Tests

Right now there's only one test that is a very simple run-through of the 80% case. Should add more coverage and break tests down by function and by component.

Implement max_size parameter in formats

Implement max_size param which will dictate the maximum file size of the resulting file. This constraint should allow user to leave out optimization percentages or max dimensions so that they can maintain higher quality when desired.

Image rotations in original image are not respected in optimized images

The exif metadata that stores rotation information in the original image is not taken into account after images are optimized. The metadata should still be removed since it can take up a lot of space (and since optimized images should be as lean as is practical). Need to figure out some way to re-orient the image data based on the original image's metadata.

Pillow doesn't take care of this because it disregards the metadata. Need to find a way to read this and then edit the image data accordingly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.