Giter Site home page Giter Site logo

imgwizard's People

Contributors

shifr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

imgwizard's Issues

Deploying to aws lambda

Would it be possible? Serverless solution is far more reliable and cheap than servers in this case

Cropping by sides

Add GET parameters "?crop=side1,side2". Now images are cropped by center

Single axis scaling works inconsistently across axes

e.g.

Stats page

add statistic page to get performance stats:
current active/waiting request,
received/accepted/processed requests from daemon start

Add ability to notify each process about others

Something like this:
imgw1, imgw2, imgw3, imgw4
imgw1 knows about imgw2, imgw3, imgw4
imgw2 knows about imgw1, imgw3, imgw4 etc.

Therefore we can cache one file one time at one node and request each node before process resize. It prevents overcaching

Limit resize size by size of original

It's possible to send request with size bigger than original. Much more bigger:
ll 133/fc3cb123-cf43-45d3-822f-472aa84f5389_546e81b73d4fbe9472b041afd9723227_1x1_41400x57600.jpeg -h
-rw-r--r-- 1 www www 46M Oct 17 13:27 fc3cb123-cf43-45d3-822f-472aa84f5389_546e81b73d4fbe9472b041afd9723227_1x1_41400x57600.jpeg

You can easily use this to overflow cache partition.
Wise solution will be - return original size if requested sizemore than original

HEAD request returns 404

> curl -I https://media.modnakasta.ua/imgw/loc/460x280/uploads/campaign/2015/07/050/d3d93a5a-ae5b-4240-b2af-c7db0c16635a_ac5201fe3f0e21da034828d97a07de3c.jpg                                                            
HTTP/1.1 404 Not Found
Server: nginx
Date: Mon, 06 Jul 2015 09:07:58 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 19
Connection: keep-alive

Add media white list

Add config for remote media white list to prevent use your imgwizard by others

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.