skrev:
> wrote:
>
> > I dont know, and i dont much like javascript, however, i am told that
> > the only way to do want i want to do, is with javascript, so here goes.
> >
> > zoom and cut is the only features i need.
> >
> > 1. the image that need manipulating is places on the server. dont need
> > js for that 
> > 2. the client has the oppotunity to manipulate the image. cut and zoom.
> > 3. the image i saved on the server.
> >
> > It sound realy simple, but than again, i know nothing of js 
> >
> > Hope to get the help i need.
>
> Not sure if I understand what you mean? Are you talking about a web
> page which lets you zoom into an area of a photograph and then crop it
> to size?
I think you got it right, but maybe i shoud outline the part of my
project, this is all about.
Avatar pictures is what its all about, the must have a fixed size of
150*200px.
Often people upload pictures that are this size, or do not contrain
proportions and the last issue it the real problem, i want to give the
client a tool to make do something about it.
I for one know how enoying it is having a picture you want to use, but
cant because its not the right size, this way i dont have to install
software and stuff to fix it, but you can do via your browser.
Serverside/Clientside, doesnt matter as long as it works in all the
popular browser: ie, ns, ff, etc.
>
> The problem with this is that as far as I know, you can't do image
> manipulation like this in javascript - it simply doesn't have the right
> commands to do it. What you could do is this:
>
> - have the server generate a page with an image embedded in it.
> - use javascript to zoom into the image using it's height and width
> properties. I.e. you don't manipulate the image itself, just change the
> way it's displayed so it /looks/ like it's been cropped or zoomed.
> - then send back to the server the details of what you want doing to
> it.
> - then the server does the actual image manipulation using a server
> side scripting language like perl or php and a graphics toolkit like
> ImageMagick.
>
I originally wanted it to be server side, but was told that it would be
too demanding or that it simply wasnt posible.
> I.e. you use javascript to give the illusion of having really cropped
> the image, but the actual work of doing this is done on the server.
>
Just to make sure we understand eachother.
When all is done i have an image the size of 150*200 lying on the
server, no ilusions here
> hope this helps,
>
> andy baxter