I'll send them directly to you.
<!--- This instantiates the component, thereby creating an object
for us to work with. --->
<cfset myImage = CreateObject("Component",
"CustomTags.corev2.imageComponent.Image") />
<cfset thisFile = "#thisImageID#.#form.filetype#">
<!--- Get the extension of the file we are uploading and the name
of the file --->
<cfset fileName = #listFirst(thisFile, ".")#>
<cfset fileExtention = #listLast(thisFile, ".")#>
<!--- Test to make sure this is an ok file. IE it's an image
file. --->
<!--- The getReadableFormats() function returns a list of ok
formats to use. --->
<cfif #ListFindNoCase(#myImage.getReadableFormats()#,
#fileExtention#, ",")#>
<!--- read the source image --->
<cfset
myImage.readImage("#APPLICATION.installpath#\uploads\100011_product\#thisFil
e#") />
<!--- resize the image to a specific width and height --->
<cfparam name="URL.scaleToSize" default="25">
<cfset myImage.scalePercent(#URL.scaleToSize#,#URL.scaleToSize#)
/>
<!--- output the image in it's original format with the new
_thumbs added to the name. --->
<cfset
myImage.writeImage("#APPLICATION.installpath#\uploads\100011_product\#fileNa
me#_thumb.#fileExtention#", "#fileExtention#") />
</cfif>
ERJ
-----Original Message-----
From: Joe Rinehart [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 24, 2004 11:11 AM
To: CF-Talk
Subject: Re: Alagad Image CFC
Eric,
Can you post your code?
-joe
----- Original Message -----
From: Eric Jones <[EMAIL PROTECTED]>
Date: Tue, 24 Aug 2004 11:00:47 -0400
Subject: Alagad Image CFC
To: CF-Talk <[EMAIL PROTECTED]>
Anyone using the alagad image CFC and having problems with it putting a
red
tint on resized images?
ERJ________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

