Hiya, I have a bazillion images and I want to um you know like:
- Be able to use new resolutions on the fly
- Have these dynamically created images cached
- Incur almost zero overhead in the process
- Have a dedicated image web server or a web server module to do it ... images are important
Basically, given file /myimage.jpg I want to do say, /myimage_500x500.jpg and then say,
- Look for myimage_500x500.jpg.
- If not found, back up, try myimage.jpg
- See that (_500x500) is a resize directive
- Dynamically resize myimage.jpg to 500x500, serve that image
- Save a new file to disk myimage_500x500.jpg so that when it is requested again ... it's easy
Oh, and I want some other things
- When the image is resized the first time, I want it to be the fastest algorithm possible so that the user sees the resized image with minimal delay.
- But I also want a different, slow, high quality algorithm to run to save it to disk
One more thing, if it's not too hardI want to specify things like this:"medium": {so I can do something stupid like request /myimage_medium.jpg
"resize": [1024,1024],
"quality": 50,
"cropwhitespace": true
}
If only this existed! [ Download it here ]
Current implementation details
- Written in C.
- Uses Mongoose as a webserver
- Uses Imagemagick for sizing
- Doesn't actually do *everything* above yet, but that is the goal.
Is apophnia still active? It looks interesting, but I don't see any recent updates.
ReplyDeleteSure. Just file a bug. I'll fix it.
DeleteHi, I create an issue at github :) Hope, you still working on this project, because its great ;)
ReplyDelete