incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Ramage <ryan.ram...@gmail.com>
Subject Re: CouchDB: Automatically resizing images
Date Fri, 22 Nov 2013 18:29:32 GMT
check out: https://github.com/jo/worker-generate-thumbnails




On Wed, Nov 20, 2013 at 9:08 PM, Alexander Uvarov <dev@electrosystem.ru>wrote:

> Try my gist https://gist.github.com/wildchild/407311
>
> You can run imagemagick, upload thumbs on request and serve them.
>
>
> On Nov 21, 2013, at 5:52 AM, Hank Knight <hknight555@gmail.com> wrote:
>
> > I want this to be triggered by the URL when the image is requested,
> > not when the image is uploaded.
> >
> > For example:
> >
> https://zuhqtr5.couchappy.com/site/www/qqq/z.jpg/resized/201x201/www/qqq/z.jpg
> >
> https://zuhqtr5.couchappy.com/site/www/qqq/z.jpg/resized/202x202/www/qqq/z.jpg
> >
> https://zuhqtr5.couchappy.com/site/www/qqq/z.jpg/resized/203x203/www/qqq/z.jpg
> >
> > On Wed, Nov 20, 2013 at 6:48 PM, Mark Hahn <mark@reevuit.com> wrote:
> >> I would use a simple node program that "watches" all the image uploads
> and
> >> then runs imagemagick
> >>
> >>
> >>
> >> On Wed, Nov 20, 2013 at 2:36 PM, Hank Knight <hknight555@gmail.com>
> wrote:
> >>
> >>> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message