Re: Working With Images...Still looking

2009-12-14 Thread Barry Mcconaghey

Hello.

I was able to upload an image and add it to my DB using CF8 and MySQl this 
weekend.

Can somebody tell me if this is correct. There are no error messages and the DB 
is also correct.

Thanks

Barry

 cfset thisDir = expandPath(images)
!--- Determine whether the form is uploaded with the image. ---

cfif IsDefined(image) AND image IS NOT  and len(trim(form.image))
!--- Determine whether the image file exceeds the size limits.--- 
cfimage action=read source=#form.image# name=myImage
cfif myImage.width lt 100 
or myImage.height lt 100
or myImage.width gt 1000
or myImage.height gt 1000
cfthrow message=Please provide an image between 100 and 1000 pixels tall and 
wide.
cflocation url=demo.cfm
cfelse

!--- Use the cffile tag to upload the image file. ---
cffile action=upload
fileField=image
destination=#thisDir#
result=fileUpload
nameconflict=makeunique accept=image/jpeg,image/jpg,image/png

cfset newImageName = fileUpload.serverDirectory
  fileUpload.serverFilename 
  fileUpload.serverFileExt
  
/cfif
/cfif

!--- Insert into the database ---
cfquery datasource=mydb
INSERT INTO artists(
image
   )

VALUES( 
'#fileUpload.serverFile#')
/cfquery 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329137
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Working With Images...Still looking

2009-12-14 Thread Rick Faircloth

Hi, Barry...sorry I took so long to get back to you...busy weekend.

The code looks good as far as I can tell...the proof is always in the
results.

You're now getting the correct filename in the db...are you also getting
the image into the correct directory after uploading?

Rick

-Original Message-
From: Barry Mcconaghey [mailto:bmcconag...@gmail.com] 
Sent: Monday, December 14, 2009 10:55 AM
To: cf-talk
Subject: Re: Working With Images...Still looking


Hello.

I was able to upload an image and add it to my DB using CF8 and MySQl this
weekend.

Can somebody tell me if this is correct. There are no error messages and the
DB is also correct.

Thanks

Barry

 cfset thisDir = expandPath(images)
!--- Determine whether the form is uploaded with the image. ---

cfif IsDefined(image) AND image IS NOT  and len(trim(form.image))
!--- Determine whether the image file exceeds the size limits.--- 
cfimage action=read source=#form.image# name=myImage
cfif myImage.width lt 100 
or myImage.height lt 100
or myImage.width gt 1000
or myImage.height gt 1000
cfthrow message=Please provide an image between 100 and 1000 pixels tall
and wide.
cflocation url=demo.cfm
cfelse

!--- Use the cffile tag to upload the image file. ---
cffile action=upload
fileField=image
destination=#thisDir#
result=fileUpload
nameconflict=makeunique accept=image/jpeg,image/jpg,image/png

cfset newImageName = fileUpload.serverDirectory
  fileUpload.serverFilename 
  fileUpload.serverFileExt
  
/cfif
/cfif

!--- Insert into the database ---
cfquery datasource=mydb
INSERT INTO artists(
image
   )

VALUES( 
'#fileUpload.serverFile#')
/cfquery 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329138
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Working With Images...Still looking

2009-12-14 Thread Barry Mcconaghey

Yes and Yes. The DB and the directory is perfect. I was just wondering if I was 
leaving a temp image on the server every time I upload an image.

Hi, Barry...sorry I took so long to get back to you...busy weekend.

The code looks good as far as I can tell...the proof is always in the
results.

You're now getting the correct filename in the db...are you also getting
the image into the correct directory after uploading?

Rick

Hello.

I was able to upload an image and add it to my DB using CF8 and MySQl this
weekend.

Can somebody tell me if this is correct. There are no error messages and the
DB is also correct.

Thanks

Barry

 cfset thisDir = expandPath(images)
!--- Determine whether the form is uploaded with the image. ---

cfif IsDefined(image) AND image IS NOT  and len(trim(form.image))
!--- Determine whether the image file exceeds the size limits.--- 
cfimage action=read source=#form.image# name=myImage
cfif myImage.width lt 100 
or myImage.height lt 100
or myImage.width gt 1000
or myImage.height gt 1000
cfthrow message=Please provide an image between 100 and 1000 pixels tall
and wide.
cflocation url=demo.cfm
cfelse

!--- Use the cffile tag to upload the image file. ---
cffile action=upload
fileField=image
destination=#thisDir#
result=fileUpload
nameconflict=makeunique accept=image/jpeg,image/jpg,image/png

   cfset newImageName = fileUpload.serverDirectory
 fileUpload.serverFilename 
 fileUpload.serverFileExt
  
/cfif
/cfif

!--- Insert into the database ---
   cfquery datasource=mydb
INSERT INTO artists(
image
   )

VALUES( 
'#fileUpload.serverFile#')
/cfquery 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329139
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Working With Images...Still looking

2009-12-14 Thread Leigh

 I was just wondering if I was leaving a temp image on 
 the server every time I upload an image.

Yes and no. ColdFusion places uploaded files in a special temporary directory, 
like the path mentioned in your earlier message: 
C:\ColdFusion8\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp9855.tmp
 . But CF automatically cleans up those temporary files. So you do not need to 
do it manually.

However, you might also read up on securing file uploads. There are some well 
known mime type security exploits:

http://www.coldfusionjedi.com/index.cfm/2009/6/30/Are-you-aware-of-the-MIMEFile-Upload-Security-Issue

HTH
Leigh


  

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329140
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Working With Images...Still looking

2009-12-14 Thread Tony Bentley

just sent a reply.


 
 Tony's link did not work and I sent him an email via his contact form. 
 No reply so far.
 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329141
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Working With Images...Still looking

2009-12-14 Thread Barry Mcconaghey

OK...last newbie question.

How do i add more than one photo to this code below. I added 4 new fields in 
the DB called (image2, image3, image4, image5) and 4 more cfinputs with the 
same names as the DB.

Thanks

Barry

This code below works when adding 1 photo.

 cfset thisDir = expandPath(images)
!--- Determine whether the form is uploaded with the image. ---

cfif IsDefined(image) AND image IS NOT  and len(trim(form.image))
!--- Determine whether the image file exceeds the size limits.--- 
cfimage action=read source=#form.image# name=myImage
cfif myImage.width lt 100 
or myImage.height lt 100
or myImage.width gt 1000
or myImage.height gt 1000
cfthrow message=Please provide an image between 100 and 1000 pixels tall
and wide.
cflocation url=demo.cfm
cfelse

!--- Use the cffile tag to upload the image file. ---
cffile action=upload
fileField=image
destination=#thisDir#
result=fileUpload
nameconflict=makeunique accept=image/jpeg,image/jpg,image/png

   cfset newImageName = fileUpload.serverDirectory
 fileUpload.serverFilename 
 fileUpload.serverFileExt
  
/cfif
/cfif

!--- Insert into the database ---
   cfquery datasource=mydb
INSERT INTO artists(
image
   )

VALUES( 
'#fileUpload.serverFile#')
/cfquery 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329149
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Working With Images...Still looking

2009-12-14 Thread Rick Faircloth

Try something like this, Barry...

cfloop from=1 to=5 index=i  !--- [ set the to= according to the
number of upload fields you have ] ---

cfset imageFileField = image#i#

cffile action = upload filefield=imageFileField
destination=your/destination/path etc...

(run whatever other actions, such as resize, using the
imageFileField as your variable for each loop)

/cfloop

hth,

Rick

-Original Message-
From: Barry Mcconaghey [mailto:bmcconag...@gmail.com] 
Sent: Monday, December 14, 2009 4:54 PM
To: cf-talk
Subject: Re: Working With Images...Still looking


OK...last newbie question.

How do i add more than one photo to this code below. I added 4 new fields in
the DB called (image2, image3, image4, image5) and 4 more cfinputs with the
same names as the DB.

Thanks

Barry

This code below works when adding 1 photo.

 cfset thisDir = expandPath(images)
!--- Determine whether the form is uploaded with the image. ---

cfif IsDefined(image) AND image IS NOT  and len(trim(form.image))
!--- Determine whether the image file exceeds the size limits.--- 
cfimage action=read source=#form.image# name=myImage
cfif myImage.width lt 100 
or myImage.height lt 100
or myImage.width gt 1000
or myImage.height gt 1000
cfthrow message=Please provide an image between 100 and 1000 pixels tall
and wide.
cflocation url=demo.cfm
cfelse

!--- Use the cffile tag to upload the image file. ---
cffile action=upload
fileField=image
destination=#thisDir#
result=fileUpload
nameconflict=makeunique accept=image/jpeg,image/jpg,image/png

   cfset newImageName = fileUpload.serverDirectory
 fileUpload.serverFilename 
 fileUpload.serverFileExt
  
/cfif
/cfif

!--- Insert into the database ---
   cfquery datasource=mydb
INSERT INTO artists(
image
   )

VALUES( 
'#fileUpload.serverFile#')
/cfquery 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329151
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Working With Images...Still looking

2009-12-13 Thread Barry Mcconaghey

Hi Rick.

I started with this code below:

http://tutorial40.learncf.com/

I used two pages insert_form.cfm and insert_action.cfm

I added a field in the DB called image to the artists table

I also added a folder called user_photos

On the insert_form.cfm page I added:

cfform action=insert_action.cfm method=post enctype=multipart/form-data
cfinput type=file name=image id=image size=50

On the insert_action.cfm page I added:

INSERT INTO artists
image

Values
cfqueryparam cfsqltype=cf_sql_varchar value=#FORM.image#

cfset imageDirPath = ExpandPath(user_photos)

cfset userPhotoPath = #imageDirPath#/thumb.jpg

!--- Accept the file upload ---
cffile
action=upload
destination=#getTempDirectory()#
fileField=image
nameconflict=makeunique

!--- Get info about the photo ---
cfimage
action=info
source=#cffile.serverDirectory#\#cffile.serverFile#
structName=uploadedFileInfo

!--- Convert the photo ---
cfimage
action=resize
width=300
height=300
source=#cffile.serverDirectory#\#cffile.serverFile#
destination=#userPhotoPath#
overwrite=true

There are no error messages. But in the DB, the image field displays 
C:\ColdFusion8\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp9855.tmp

Thanks...Barry 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329132
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Working With Images...Still looking

2009-12-12 Thread Barry Mcconaghey

Any Help ?

I am still looking for an interface that allows me to add a new image record, 
update a current image record, or delete a current image record with CF8.

Thanks,

Barry 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329123
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Working With Images...Still looking

2009-12-12 Thread Joe None

 Any Help ?
 
 I am still looking for an interface that allows me to add a new image 
 record, update a current image record, or delete a current image 
 record with CF8.
 
 Thanks,
 
 Barry 

What do you mean interface? You just need to code something that does this, as 
in writing a query to insert, update or delete a database record that points to 
an image. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329124
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Working With Images...Still looking

2009-12-12 Thread Barry Mcconaghey

I was ask to help build a dynamic website for a volunteer fire department were 
they could add news and photos. I’m having trouble with the photos.

I would like to be able to add, update, and delete or CRUD images to a database 
(MySQL) and have CF8 crop the images too. Next, display the images related to 
the article.

Thanks,

Barry


  Any Help ?
  
  I am still looking for an interface that allows me to add a new 
 image 
  record, update a current image record, or delete a current image 
  record with CF8.
  
  Thanks,
  
  Barry 
 
 What do you mean interface? You just need to code something that does 
 this, as in writing a query to insert, update or delete a database 
 record that points to an image. 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329125
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Working With Images...Still looking

2009-12-12 Thread Rick Faircloth

Barry...

Have you used cfimage before?  Are you familiar with uploading
images through a form?

I know these are basic questions, and forgive me if these insult
your level of experience, but your questions seem to indicate that
you're uncertain of how to implement file uploading and manipulation.

I'm just trying to get a handle on what your current level of knowledge
and experience is so I can know best how to help you.

I work with images every day and built interfaces (forms, basically) to
upload them, along with using cfimage to resize (I don't crop in cfimage),
rename, move, etc., the images on the server, as well as handling the
storage of the images on the server and filenames in databases, and finally,
displaying those images on the web.

This process really just involves forms, server-side ColdFusion hanlding of
the
images with the cfimage tag and queries for database work.

I don't have a packaged solution to offer you, as I typically write code
specific
to the website task at hand.

Can you explain at what point you need help?

Perhaps, understanding of file uploading via a form?

Again, I hope these questions aren't insulting...they're just meant to help
me understand your needs.

Rick

-Original Message-
From: Barry Mcconaghey [mailto:bmcconag...@gmail.com] 
Sent: Saturday, December 12, 2009 8:28 AM
To: cf-talk
Subject: Re: Working With Images...Still looking


Any Help ?

I am still looking for an interface that allows me to add a new image
record, update a current image record, or delete a current image record with
CF8.

Thanks,

Barry 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329126
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Working With Images...Still looking

2009-12-12 Thread Rick Faircloth

Also, did you have a look at Tony Bentley packaged solution
for your site?  Was it understandable and usable for you?

Rick

-Original Message-
From: Barry Mcconaghey [mailto:bmcconag...@gmail.com] 
Sent: Saturday, December 12, 2009 8:28 AM
To: cf-talk
Subject: Re: Working With Images...Still looking


Any Help ?

I am still looking for an interface that allows me to add a new image
record, update a current image record, or delete a current image record with
CF8.

Thanks,

Barry 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329127
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Working With Images...Still looking

2009-12-12 Thread Barry Mcconaghey

Hi Rick...Thanks for your time!

Tony's link did not work and I sent him an email via his contact form. No reply 
so far.

Here is an example of what I'm looking for but only that I want to add images 
to the ArtistID. I understand all this code in this example. The problem is 
with the images.

http://tutorial40.learncf.com/

Run this demo:

http://tutorial40.learncf.com/demo/40

This is an interface I like to use to add news and photos for the fire 
department's website.

Here is the code I want to use:

cfset imageDirPath = ExpandPath(user_photos)


cfif isDefined(form.fileToUpload) and form.fileToUpload neq 
cfset userPhotoPath = #imageDirPath#/user_#form.ArtistID#.jpg
cfset userThumbPath = #imageDirPath#/user_#form.ArtistID#_thumb.jpg
!--- Accept the file upload ---
cffile 
action=upload
destination=#getTempDirectory()#
fileField=fileToUpload
nameconflict=makeunique

!--- Get info about the photo ---
cfimage
action=info
source=#cffile.serverDirectory#\#cffile.serverFile#
structName=uploadedFileInfo

cfif uploadedFileInfo.width lt 100 
   or uploadedFileInfo.height lt 100
   or uploadedFileInfo.width gt 1000
   or uploadedFileInfo.height gt 1000
!---cfthrow message=Please provide an image between 100 and 
1000 pixels tall and wide.---
cflocation url=upload_error.cfm
/cfif

!--- Convert the photo ---
cfimage
action=resize
width=300
height=300
source=#cffile.serverDirectory#\#cffile.serverFile#
destination=#userPhotoPath#
overwrite=true

!--- Resize the photo to create a thumbnail ---
cfimage
action=resize
width=100
height=100
source=#userPhotoPath#
destination=#userThumbPath#
overwrite=true

/cfif

Thanks Barry.

Barry...

Have you used cfimage before?  Are you familiar with uploading
images through a form?

I know these are basic questions, and forgive me if these insult
your level of experience, but your questions seem to indicate that
you're uncertain of how to implement file uploading and manipulation.

I'm just trying to get a handle on what your current level of knowledge
and experience is so I can know best how to help you.

I work with images every day and built interfaces (forms, basically) to
upload them, along with using cfimage to resize (I don't crop in cfimage),
rename, move, etc., the images on the server, as well as handling the
storage of the images on the server and filenames in databases, and finally,
displaying those images on the web.

This process really just involves forms, server-side ColdFusion hanlding of
the
images with the cfimage tag and queries for database work.

I don't have a packaged solution to offer you, as I typically write code
specific
to the website task at hand.

Can you explain at what point you need help?

Perhaps, understanding of file uploading via a form?

Again, I hope these questions aren't insulting...they're just meant to help
me understand your needs.

Rick

Any Help ?

I am still looking for an interface that allows me to add a new image
record, update a current image record, or delete a current image record with
CF8.

Thanks,

Barry 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329128
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Working With Images

2009-12-12 Thread Maureen

Have you considering using one of the existing content management
systems.  All of these functions already there.

On Fri, Dec 11, 2009 at 4:55 AM, Barry Mcconaghey bmcconag...@gmail.com wrote:

 Hello.

 I was ask to help build a dynamic website for a volunteer fire department 
 were they could add news and photos. I’m having trouble with the photos. Does 
 anybody know of a free or paid website were I can find some coldfusion code 
 to add, edit, update, and delete images. I would like to be able to add the 
 images to a database and have CF8 crop the images too.

 Thanks for your time,

 Barr

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329129
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Working With Images...Still looking

2009-12-12 Thread Rick Faircloth

What's the first error message you get?
(Or perhaps it's not an error message, but what you expect
to happen, doesn't...)

Also, one of the first things to do is make sure all the variables
you're setting are accurate...run some cfoutput's and check what
you're getting for variables, like this:

cfset imageDirPath = ExpandPath(user_photos)
cfoutput#imageDirPath#/cfoutput

Once you run that make sure the imageDirPath is what you expect it to be.

Is it?

Rick

-Original Message-
From: Barry Mcconaghey [mailto:bmcconag...@gmail.com] 
Sent: Saturday, December 12, 2009 1:28 PM
To: cf-talk
Subject: Re: Working With Images...Still looking


Hi Rick...Thanks for your time!

Tony's link did not work and I sent him an email via his contact form. No
reply so far.

Here is an example of what I'm looking for but only that I want to add
images to the ArtistID. I understand all this code in this example. The
problem is with the images.

http://tutorial40.learncf.com/

Run this demo:

http://tutorial40.learncf.com/demo/40

This is an interface I like to use to add news and photos for the fire
department's website.

Here is the code I want to use:

cfset imageDirPath = ExpandPath(user_photos)


cfif isDefined(form.fileToUpload) and form.fileToUpload neq 
cfset userPhotoPath = #imageDirPath#/user_#form.ArtistID#.jpg
cfset userThumbPath =
#imageDirPath#/user_#form.ArtistID#_thumb.jpg
!--- Accept the file upload ---
cffile 
action=upload
destination=#getTempDirectory()#
fileField=fileToUpload
nameconflict=makeunique

!--- Get info about the photo ---
cfimage
action=info
source=#cffile.serverDirectory#\#cffile.serverFile#
structName=uploadedFileInfo

cfif uploadedFileInfo.width lt 100 
   or uploadedFileInfo.height lt 100
   or uploadedFileInfo.width gt 1000
   or uploadedFileInfo.height gt 1000
!---cfthrow message=Please provide an image between 100
and 1000 pixels tall and wide.---
cflocation url=upload_error.cfm
/cfif

!--- Convert the photo ---
cfimage
action=resize
width=300
height=300
source=#cffile.serverDirectory#\#cffile.serverFile#
destination=#userPhotoPath#
overwrite=true

!--- Resize the photo to create a thumbnail ---
cfimage
action=resize
width=100
height=100
source=#userPhotoPath#
destination=#userThumbPath#
overwrite=true

/cfif

Thanks Barry.

Barry...

Have you used cfimage before?  Are you familiar with uploading
images through a form?

I know these are basic questions, and forgive me if these insult
your level of experience, but your questions seem to indicate that
you're uncertain of how to implement file uploading and manipulation.

I'm just trying to get a handle on what your current level of knowledge
and experience is so I can know best how to help you.

I work with images every day and built interfaces (forms, basically) to
upload them, along with using cfimage to resize (I don't crop in cfimage),
rename, move, etc., the images on the server, as well as handling the
storage of the images on the server and filenames in databases, and
finally,
displaying those images on the web.

This process really just involves forms, server-side ColdFusion hanlding of
the
images with the cfimage tag and queries for database work.

I don't have a packaged solution to offer you, as I typically write code
specific
to the website task at hand.

Can you explain at what point you need help?

Perhaps, understanding of file uploading via a form?

Again, I hope these questions aren't insulting...they're just meant to help
me understand your needs.

Rick

Any Help ?

I am still looking for an interface that allows me to add a new image
record, update a current image record, or delete a current image record
with
CF8.

Thanks,

Barry 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329130
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Working With Images

2009-12-11 Thread Barry Mcconaghey

Hello.

I was ask to help build a dynamic website for a volunteer fire department were 
they could add news and photos. I’m having trouble with the photos. Does 
anybody know of a free or paid website were I can find some coldfusion code to 
add, edit, update, and delete images. I would like to be able to add the images 
to a database and have CF8 crop the images too.

Thanks for your time,

Barry

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329083
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Working With Images

2009-12-11 Thread Jessica Kennedy

try googling cfimage, or if you like learning by example, download galleon 
forums and play around with the avatar uploader.  i'm sure there are more (and 
possibly better) examples but it's the first thing that comes to mind

 Hello.
 
 I was ask to help build a dynamic website for a volunteer fire 
 department were they could add news and photos. I’m having trouble 
 with the photos. Does anybody know of a free or paid website were I 
 can find some coldfusion code to add, edit, update, and delete images. 
 I would like to be able to add the images to a database and have CF8 
 crop the images too.
 
 Thanks for your time,
 
Barry

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329090
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Working With Images

2009-12-11 Thread Rick Faircloth

Hi, Barry...

Did you ever get any private response for your image-handling issue?
(I see that no one has responded publicly...)

Rick

-Original Message-
From: Barry Mcconaghey [mailto:bmcconag...@gmail.com] 
Sent: Friday, December 11, 2009 7:55 AM
To: cf-talk
Subject: Working With Images


Hello.

I was ask to help build a dynamic website for a volunteer fire department were 
they could add news and photos. I’m having trouble with the photos. Does 
anybody know of a free or paid website were I can find some coldfusion code to 
add, edit, update, and delete images. I would like to be able to add the images 
to a database and have CF8 crop the images too.

Thanks for your time,

Barry



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329089
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Working With Images

2009-12-11 Thread Rick Faircloth

Yes, google cfimage and check out the google docs, etc.
After checking that out, let me know if you need any more
assistance understanding how to put it all together.

Rick

-Original Message-
From: Jessica Kennedy [mailto:police_kidnapped_your_child...@yahoo.com] 
Sent: Friday, December 11, 2009 10:43 AM
To: cf-talk
Subject: Re: Working With Images


try googling cfimage, or if you like learning by example, download galleon 
forums and play around with the avatar uploader.  i'm sure there are more (and 
possibly better) examples but it's the first thing that comes to mind

 Hello.
 
 I was ask to help build a dynamic website for a volunteer fire 
 department were they could add news and photos. I’m having trouble 
 with the photos. Does anybody know of a free or paid website were I 
 can find some coldfusion code to add, edit, update, and delete images. 
 I would like to be able to add the images to a database and have CF8 
 crop the images too.
 
 Thanks for your time,
 
Barry



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329095
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Working With Images

2009-12-11 Thread Tony Bentley

Barry,

Try installing this product I built. It handles single level categories and 
uses fckeditor for editing the image description but also does sorting, crop, 
rotate, many categories to one image relationships, etc. It also works with 
mysql and mssql.

http://cfimagemanager/downloads/cfimagemanager_5.7.09.4pm.zip

Send me an email offline using the contact form. 

http://cfimagemanager.com/contact.cfm

This is something I build, had plans on supporting and extending but other 
projects got in the way. You need to download and install fckeditor, have cf8 
on your server and have a datasource to mysql or mssql for it to work properly. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329098
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Working With Images

2009-12-11 Thread Barry Mcconaghey

Hi Rick.

I already tried googling cfimage but I have been unsuccessful in finding any 
good CRUD with CF8 Images.

Barry

 Yes, google cfimage and check out the google docs, etc.
 After checking that out, let me know if you need any more
 assistance understanding how to put it all together.
 
 Rick
 
 -Original Message-
 From: Jessica Kennedy [mailto:police_kidnapped_your_child...@yahoo.
 com] 
 Sent: Friday, December 11, 2009 10:43 AM
 To: cf-talk
 Subject: Re: Working With Images
 
 
 try googling cfimage, or if you like learning by example, download 
 galleon forums and play around with the avatar uploader.  i'm sure 
 there are more (and possibly better) examples but it's the first thing 
 that comes to mind
 
  Hello.
  
  I was ask to help build a dynamic website for a volunteer fire 
  department were they could add news and photos. I’m having trouble 
 
  with the photos. Does anybody know of a free or paid website were I 
 
  can find some coldfusion code to add, edit, update, and delete 
 images. 
  I would like to be able to add the images to a database and have CF8 
 
  crop the images too.
  
  Thanks for your time,
  
 Barry
 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329111
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4