RE: CF8 Image manipulation

2009-03-09 Thread Dawson, Michael

Not sure if anyone else has posted this since I started reading this
thread...

http://www.webresourcesdepot.com/jquery-image-crop-plugin-jcrop/

Thanks,
Mike

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320257
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CF8 Image manipulation

2009-03-09 Thread Terry Troxel

Michael,
Thanks for the reply.
I already have that handled and it works great.
I am drawing autocad type drawings using the new cf8 image tools and I was
trying to find an easy way to add perspective, but now I am just going to
force the user to be a little more precise by letting them define 3 points
after they upload their photo along with the exact distances, then I can
scale my drawings perfectly to their dimensions and problem solved.
Coldfusion comes through again like always and thanks to everyone in CF-Talk
as usual as you always start the juices flowing.

Terry Troxel

-Original Message-
From: Dawson, Michael [mailto:m...@evansville.edu] 
Sent: Monday, March 09, 2009 6:26 AM
To: cf-talk
Subject: RE: CF8 Image manipulation


Not sure if anyone else has posted this since I started reading this
thread...

http://www.webresourcesdepot.com/jquery-image-crop-plugin-jcrop/

Thanks,
Mike




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320309
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 Image manipulation

2009-03-08 Thread Azadi Saryev

normal 8 handles? what is that? where is it 'normal to see them???

the only thing i can think of where an image has 8 handles when you
click on it is M$ applications... and even then it is not always the case...
what handles are you talking about?

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Terry Troxel wrote:
 I am loving the CF8 Image drawing functions, but have a question.
 Consider this:
 I have drawn an image and written it to the browser.

 Has anyone seen a way to click on an image and then get the normal 8 handles
 and be able to massage the angles by clicking on a corner handle and
 adusting the perspective or clicking in the middle and moving the whole
 image.

 Terry 
   

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320217
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 Image manipulation

2009-03-08 Thread Peter Boughton

Your browser is not an image editor - it cannot manipulate *any* images in this 
way -regardless of what server-side language/application generated them.

To the browser there is no significant difference with the image downloaded 
from your server and any other image downloaded from the web.

If your want your website users to be able to modify images in-browser, you 
will need either a Flash app or a specific browser plugin.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320218
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CF8 Image manipulation

2009-03-08 Thread Terry Troxel

Azadi,

What I was trying to explain was normally when you click on an image object
you get top left, top middle, top right, left, right, bottom left, bottom
center and bottom right handles that you can then manipulate them. Sorry it
was late.

Terry

-Original Message-
From: Azadi Saryev [mailto:az...@sabai-dee.com] 
Sent: Sunday, March 08, 2009 12:55 AM
To: cf-talk
Subject: Re: CF8 Image manipulation


normal 8 handles? what is that? where is it 'normal to see them???

the only thing i can think of where an image has 8 handles when you
click on it is M$ applications... and even then it is not always the case...
what handles are you talking about?

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Terry Troxel wrote:
 I am loving the CF8 Image drawing functions, but have a question.
 Consider this:
 I have drawn an image and written it to the browser.

 Has anyone seen a way to click on an image and then get the normal 8
handles
 and be able to massage the angles by clicking on a corner handle and
 adusting the perspective or clicking in the middle and moving the whole
 image.

 Terry 
   



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320219
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CF8 Image manipulation

2009-03-08 Thread Terry Troxel

I beg to differ, but I have a cfx_efflare and it allows me to click on an
image and crop it on the admin area of my sites. I can click and drag to any
part of the image and then resize to my heart's content.

What I am looking for is a way to do a similar thing only basically change a
rectangle into a trapezoid in order to make the perspective of the image I
am placing over another fit perspective wise.

Not trying to start a flame here, just looking for some new ideas.

Terry 

-Original Message-
From: Peter Boughton [mailto:bought...@gmail.com] 
Sent: Sunday, March 08, 2009 6:26 AM
To: cf-talk
Subject: Re: CF8 Image manipulation


Your browser is not an image editor - it cannot manipulate *any* images in
this way -regardless of what server-side language/application generated
them.

To the browser there is no significant difference with the image downloaded
from your server and any other image downloaded from the web.

If your want your website users to be able to modify images in-browser, you
will need either a Flash app or a specific browser plugin.




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320221
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 Image manipulation

2009-03-08 Thread Dave Watts

 I beg to differ, but I have a cfx_efflare and it allows me to click on an
 image and crop it on the admin area of my sites. I can click and drag to any
 part of the image and then resize to my heart's content.

The last time I looked at CFX_Efflare, it didn't have any client-side
functionality. But in any case, you would need client-side
functionality to do this - just generating an image on the server is
not enough.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320227
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CF8 Image manipulation

2009-03-08 Thread Terry Troxel

Dave,

I sent the guys at Efflare a the code I downloaded at
http://www.defusion.org.uk/demos/060519/cropper.php 

And they sent me a script for cfx_imageflare to allow me to do the
following:

User uploads a photo, cfx_imagecr3 resizes to 760px with proper aspect
ratio, optimizes to 72 dpi. 
The resulting image is then displayed in the browser.
Then when the user clicks on the image the cropping code I got from the link
above displays a 760px x 300px rectangle that can be dragged up-down to
select the panoramic view to crop from the image when you click the submit
button.

I Have forced the width to be 760px for my task, but as you wull see in the
demo link there is much, much more.

But what I am looking for is how to use the same functionality as above. But
to be able to decrease the bottom width and leave the top alone to create a
trapezoid.

Terry

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Sunday, March 08, 2009 10:44 AM
To: cf-talk
Subject: Re: CF8 Image manipulation


 I beg to differ, but I have a cfx_efflare and it allows me to click on an
 image and crop it on the admin area of my sites. I can click and drag to
any
 part of the image and then resize to my heart's content.

The last time I looked at CFX_Efflare, it didn't have any client-side
functionality. But in any case, you would need client-side
functionality to do this - just generating an image on the server is
not enough.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320233
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 Image manipulation

2009-03-08 Thread Peter Boughton

Cropping is easy, because JavaScript can mimic it with transparent/shaded 
backgrounds, and just send the coordinates of the corner back to the server to 
perform the actual manipulation.

Likewise, normal resizing is also rectangular and easy to mimic in JS.

Creating a trapezoid is more difficult, you wont be able to get a 'live 
preview', though you could use a similar technique to the cropping to define 
the widths of the top and bottom edge.

However, there aren't any trapezoid/trapezium mainupulations with CF8s image 
functions - the closest is Skew/Shear which wont do what you want.

I couldn't find any useful Java-based results either - apparently Java 
manipulations keep lines straight and parallel, which prevents trapezoiding as 
this obviously makes them non-parallel.

Maybe you could investigate using GIMP on the command line to do this - 
although that appears to involve writing LISP... 
http://www.gimp.org/tutorials/Basic_Batch/ 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320235
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF8 Image manipulation

2009-03-08 Thread Peter Boughton

Cropping is easy, because JavaScript can mimic it with transparent/shaded 
backgrounds, and just send the coordinates of the corner back to the server to 
perform the actual manipulation.

Likewise, normal resizing is also rectangular and easy to mimic in JS.

Creating a trapezoid is more difficult - you wont be able to get a 'live 
preview', though you could use a similar technique to the cropping to define 
the widths of the top and bottom edge.

However, there aren't any trapezoid/trapezium manipulations with CF8s image 
functions - the closest is Skew/Shear which wont do what you want.

I couldn't find any useful Java-based results either - apparently Java 
manipulations keep lines straight and parallel, which prevents trapezoiding 
which of course makes them non-parallel.

Maybe you could investigate using GIMP on the command line to do this - 
although that appears to involve writing LISP... 
http://www.gimp.org/tutorials/Basic_Batch/

But other than that, can't think of any solutions, unless there are other cfx 
tags that will support trapezoidizing images (maybe ImageMagick does?) 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320236
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4