Skip to content

Image processing #27

Description

@awesomejay

We need to start handling images. I am not sure what the API should be for this. Like this?: http://datacache.org/dc/sync?source=http://datacache.org/dc/demo/file1.png&filter=convert&filterargs=-size 1024x768


Existing code should already be able to serve images. So I guess you want to process images like re-sizing?

Image processing is CPU consuming. Since Node.js is single-threaded, this might make the server unresponsive for incoming requests for a while. We might need to fork another Node.js instance to handle image processing.


We could just fork the processes to call a command line program. I am not sure if we should be doing

http://datacache.org/dc/sync?source=http://datacache.org/dc/demo/file1.png&filter=convert&filterargs=-size 1024x768

or if we should set up a separate service and do

http://datacache.org/dc/sync?source=http://imgconvert.org/convert%2Fsize=1024x768%26url=http://datacache.org/dc/demo/file1.png

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions