GithubHelp home page GithubHelp logo

samastur / image-diet2 Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 0.0 314 KB

A Django application for removing unnecessary bytes from images. Backwards incompatible evolution of image-diet.

License: MIT License

Python 100.00%

image-diet2's People

Contributors

samastur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

image-diet2's Issues

Create a standalone (shell) tool for compressing

It would be great to add a shell command for compressing images that can use pyimagediet for simplified handling of external tools. Even better if configuration was loaded from somewhere like ~/.imagedietrc.

diet command crashes

(django)vagrant@ubuntu-14:/var/www/media$ diet
Traceback (most recent call last):
  File "/home/vagrant/.virtualenvs/django/bin/diet", line 9, in <module>
    load_entry_point('pyimagediet==1.1.0', 'console_scripts', 'diet')()
  File "/home/vagrant/.virtualenvs/django/lib/python3.4/site-packages/pkg_resources/__init__.py", line 547, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/vagrant/.virtualenvs/django/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2710, in load_entry_point
    return ep.load()
  File "/home/vagrant/.virtualenvs/django/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2370, in load
    return self.resolve()
  File "/home/vagrant/.virtualenvs/django/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2376, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ImportError: No module named 'pyimagediet.scripts'

Running in:

Python 3.4.3 Virtual Env

Run external commands asynchronously

I would like an option to run the compression commands asynchronously (should be able to do this with subprocess Popen) so that the webserver does not need to wait for these commands to run. Having the webserver wait for IO operations is generally not a good idea, as you want the browser to return as quickly as possible. Having the optimizations run in the background should be fine.

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.