My question was more about implementing a method on the view rather
than the program/service that will do it.
Anyway, thanks for the help.

--
Att,
Alan Hoffmeister


2012/5/15 Richard Marr <[email protected]>:
>
> If this is a business app (i.e. you have some degree of load and/or budget)
> I'd recommend Transloadit, which is a hosted image/video service that will
> just do all this stuff for you. If you want to code it yourself (and aren't
> using Windows) I'd recommend checking out an ImageMagick wrappers, like
> https://github.com/rsms/node-imagemagick
>
>
>
> On 15 May 2012 13:41, Alan Hoffmeister <[email protected]> wrote:
>>
>> Hello there!
>>
>> I came from PHP and I have been working with NodeJS since the
>> beginning of this year, I have no plans to stop working with it.
>> My most recent work is to convert an CMS that I made with PHP to
>> NodeJS, I stuck when I tryed to find an elegant way for people crop
>> images directly from the CMS HTML, the function crop the image (doh!),
>> cache and return an url with an unique ID, so there was no need to use
>> that ugly way of specifyng height and width within the url.
>>
>> In other words, this is what I was doing:
>>
>>    <img src="<?php resize('myimage.jpg', 300, 200) ?>" />
>>
>> And the output was:
>>
>>   <img src="http://mycms.com/images/4b34055024223964159797"; />
>>
>> This way the user doesn't need to configure anything on the server,
>> add another view helper or convert previously to a lot of sizes...
>> Everything is made inside the HTML, if you could understand me.
>>
>> In NodeJS I know that the best way is to convert every uploaded image
>> to all sizes that I will need, but what if I need to change the
>> layout? The user will need to edit functions inside the server core
>> files...
>> Or maybe I could use some view helper to generate an URL that have
>> params like ?width=200&height=300&method=cropCenter, and make all the
>> crop on another route. But how can I stop people from misusing this? I
>> mean: "Let's look if this url can generate a million pixel width
>> image", or maybe "Let's try to resize this image from 1x1 until
>> 200x300"...
>>
>> Some ideas would be very welcomed :D
>>
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>
>
>
>
> --
> Richard Marr
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to