incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hank Knight <hknight...@gmail.com>
Subject CouchDB: Automatically resizing images
Date Wed, 20 Nov 2013 22:36:15 GMT
Here is an example of an image attachment served by CouchDB:
https://zuhqtr5.couchappy.com/site/www/qqq/z.jpg

I would like a CouchDB module that would use ImageMagick to
automatically resize an image based on parameters passed in the URL.
https://github.com/kivra/emagick

For example this should return the same image, sized to 200px by 200px:
https://zuhqtr5.couchappy.com/site/www/qqq/z.jpg/resized/200x200/www/qqq/z.jpg

It should also automatically add the resized image as an attachment so
the next time that URL was requested it would not need to be resized
again.

Do you know if this idea would be technically possible?

Has something like this already been done?

Mime
View raw message