image size setup

2008-05-14 Thread Daniel Kessler
Recently, someone has posted how to check image sizes using java in  
CF.  I have hundreds of images to check on one page where the images  
are entered by users.  On the code that was posted, a java object is  
created and then a pict is assigned to it.  It would seem that since  
I am doing lots of images, I shouldn't create an image object each  
time, just the picture object (f).  So I broke them into two batches  
of script, but I'm getting the error stating that imgRdr is undefined  
(cause it's in another function).  I'm not sure how to reference this  
var or if the rest of this is gonna work or if it's a good idea at  
all.  Any thoughts?

Here's the code:

cfscript
   function init_image (){
 imgObj = CreateObject 
(java,java.awt.image.BufferedImage);
 imgRdr = CreateObject 
(java,javax.imageio.ImageIO);
   }
   function set_size(image_name){
 f = CreateObject(java,java.net.URL).init 
('http://www.sph.umd.edu/images/careerexpo.jpg');
 imgObj = imgRdr.read(f);
 imgObj.imageWidth  = imgObj.getWidth();
 imgObj.imageHeight = imgObj.getHeight();
 return imgObj; 

   }
/cfscript



-- 

Daniel Kessler

University of Maryland College Park
School of Public Health
3302E HHP Building
College Park, MD  20742-2611
Phone: 301-405-2545
http://sph.umd.edu





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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305229
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: image size setup

2008-05-14 Thread Robert Harrison
 Recently, someone has posted how to check image sizes using java in CF.
 This was not posted by me, but it was in response to my query. Works
great. My thanks to the person who first posted it. 


!--- function to get the properties of the image file ---
cfscript
function get_imageinfo(imgfile){
  jFileIn = createObject(java,java.io.File).init(imgfile);
  ImageInfo = StructNew();
  ImageObject =
createObject(java,javax.imageio.ImageIO).read(jFileIn);
  imageFile = CreateObject(java, java.io.File); 
  imageFile.init(imgfile); 
  sizeb = imageFile.length(); 
  sizekb = numberformat(sizeb / 1024, 9.99);
  sizemb = numberformat(sizekb / 1024, .99);
  get_imginfo = StructNew();
  get_imginfo.ImgWidth = ImageObject.getWidth();
  get_imginfo.ImgHeight = ImageObject.getHeight();
  get_imginfo.SizeKB = sizekb;
  get_imginfo.SizeMB = sizemb;
  get_imginfo.ImageFormat = ListLast(ListLast(imgfile, \), .);
}
/cfscript

cfset tmp = get_imageinfo(MYPATH\MYFILENAME) /   !--- this is
the image file to get ---
cfset width=#get_imginfo.ImgWidth#   !--- this is
the resulting image width ---
cfset height=#get_imginfo.ImgHeight# !--- this is
the resulting image height ---


!--- now define what to test width and height against and what to
do ---
cfif width gt MYMAXWIDTH or height gt MYMAXHEIGHT 
File To Large
cfelse
File OK
/cfif


Robert B. Harrison
Director of Interactive services
Austin  Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119 
F : 631.434.7022
www.austin-williams.com





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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305231
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: image size setup

2008-05-14 Thread Bobby Hartsfield
Wow... that looks eerily familiar to this...

/*
 * Returns image height, width and file size (kb, kB, mB)
 *
 * @param imgfile   Absolute path to a valid image file
(Required)
 * @param appname   Application name. (Required)
 * @return  Returns a struct. 
 * @author  Bobby Hartsfield ([EMAIL PROTECTED]) 
 * @version 3
 * @created May 8, 2006 
 */
function bhimginfo(imgfile){ 
  var jFileIn = createObject(java,java.io.File).init(imgfile); 
  var ImageObject =
createObject(java,javax.imageio.ImageIO).read(jFileIn); 
  var ImageInfo = StructNew(); 
   
  var imageFile = CreateObject(java, java.io.File).init(imgfile);  
  var sizeb = imageFile.length(); 
  var sizekb = numberformat(sizeb / 1024, 9.99); 
  var sizemb = numberformat(sizekb / 1024, .99); 
  var bhImageInfo = StructNew(); 
  
  bhImageInfo.ImgWidth = ImageObject.getWidth(); 
  bhImageInfo.ImgHeight = ImageObject.getHeight(); 
  bhImageInfo.SizeB = sizeb; 
  bhImageInfo.SizeKB = sizekb; 
  bhImageInfo.SizeMB = sizemb; 
   
  return bhImageInfo; 
 }


:-)

Anyway... If you don't need to change it or lose it... just use a persistent
scope for it. Then you can pass it around to whatever you want.

function init_image()
{
 application.imgObj = CreateObject(java,java.awt.image.BufferedImage);
 application.imgRdr = CreateObject(java,javax.imageio.ImageIO);
}

function set_size(image_name){
 f =
CreateObject(java,java.net.URL).init('http://www.sph.umd.edu/images/care
erexpo.jpg');
 imgObj = application.imgRdr.read(f);
 imgObj.imageWidth  = imgObj.getWidth();
 imgObj.imageHeight = imgObj.getHeight();
 return imgObj;

}

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: Robert Harrison [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 14, 2008 10:37 AM
To: CF-Talk
Subject: RE: image size setup

 Recently, someone has posted how to check image sizes using java in CF.
 This was not posted by me, but it was in response to my query. Works
great. My thanks to the person who first posted it. 


!--- function to get the properties of the image file ---
cfscript
function get_imageinfo(imgfile){
  jFileIn = createObject(java,java.io.File).init(imgfile);
  ImageInfo = StructNew();
  ImageObject =
createObject(java,javax.imageio.ImageIO).read(jFileIn);
  imageFile = CreateObject(java, java.io.File); 
  imageFile.init(imgfile); 
  sizeb = imageFile.length(); 
  sizekb = numberformat(sizeb / 1024, 9.99);
  sizemb = numberformat(sizekb / 1024, .99);
  get_imginfo = StructNew();
  get_imginfo.ImgWidth = ImageObject.getWidth();
  get_imginfo.ImgHeight = ImageObject.getHeight();
  get_imginfo.SizeKB = sizekb;
  get_imginfo.SizeMB = sizemb;
  get_imginfo.ImageFormat = ListLast(ListLast(imgfile, \), .);
}
/cfscript

cfset tmp = get_imageinfo(MYPATH\MYFILENAME) /   !--- this is
the image file to get ---
cfset width=#get_imginfo.ImgWidth#   !--- this is
the resulting image width ---
cfset height=#get_imginfo.ImgHeight# !--- this is
the resulting image height ---


!--- now define what to test width and height against and what to
do ---
cfif width gt MYMAXWIDTH or height gt MYMAXHEIGHT 
File To Large
cfelse
File OK
/cfif


Robert B. Harrison
Director of Interactive services
Austin  Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119 
F : 631.434.7022
www.austin-williams.com







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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305233
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: image size setup

2008-05-14 Thread Adrian Lynch
If set_size needs a reference to the image object, return the image object
from init_image and then pass it to the set_size function.

Adrian
http://www.adrianlynch.co.uk/

-Original Message-
From: Daniel Kessler [mailto:[EMAIL PROTECTED]
Sent: 14 May 2008 15:18
To: CF-Talk
Subject: image size setup


Recently, someone has posted how to check image sizes using java in
CF.  I have hundreds of images to check on one page where the images
are entered by users.  On the code that was posted, a java object is
created and then a pict is assigned to it.  It would seem that since
I am doing lots of images, I shouldn't create an image object each
time, just the picture object (f).  So I broke them into two batches
of script, but I'm getting the error stating that imgRdr is undefined
(cause it's in another function).  I'm not sure how to reference this
var or if the rest of this is gonna work or if it's a good idea at
all.  Any thoughts?

Here's the code:

cfscript
   function init_image (){
 imgObj = CreateObject
(java,java.awt.image.BufferedImage);
 imgRdr = CreateObject
(java,javax.imageio.ImageIO);
   }
   function set_size(image_name){
 f = CreateObject(java,java.net.URL).init
('http://www.sph.umd.edu/images/careerexpo.jpg');
 imgObj = imgRdr.read(f);
 imgObj.imageWidth  = imgObj.getWidth();
 imgObj.imageHeight = imgObj.getHeight();
 return imgObj;
   }
/cfscript



--

Daniel Kessler

University of Maryland College Park
School of Public Health
3302E HHP Building
College Park, MD  20742-2611
Phone: 301-405-2545
http://sph.umd.edu


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305237
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: image size setup

2008-05-14 Thread daniel kessler
Thank you everyone - it's working now.

I have a related question, though it's not about referencing.  It seems that 
now that I'm going through java, the images often can't be read because their 
title contains odd characters - characters that are fine in CF, for example 
joe_smiling (small).jpg.  In this case the parens mess it up, but I'm not 
sure what else might.

Clearly I should cleanse the image name on the way in.  I don't work in java 
much, so I'm not sure which chars to replace.  I have something that cleanses 
chars but it's not useful for this.

I've been googling for illegal path characters but haven't found  a list yet.

daniel 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305258
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: image size setup

2008-05-14 Thread Bobby Hartsfield
A safe bet would be rereplace [^a-zA-Z0-9-_]

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: daniel kessler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 14, 2008 1:25 PM
To: CF-Talk
Subject: Re: image size setup

Thank you everyone - it's working now.

I have a related question, though it's not about referencing.  It seems that
now that I'm going through java, the images often can't be read because
their title contains odd characters - characters that are fine in CF, for
example joe_smiling (small).jpg.  In this case the parens mess it up, but
I'm not sure what else might.

Clearly I should cleanse the image name on the way in.  I don't work in java
much, so I'm not sure which chars to replace.  I have something that
cleanses chars but it's not useful for this.

I've been googling for illegal path characters but haven't found  a list
yet.

daniel 



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305262
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: image size setup

2008-05-14 Thread daniel kessler
A safe bet would be rereplace [^a-zA-Z0-9-_]

Thank you very much.

I want to just implement it without getting it, but I can't.  What would that 
clear out?  My guess is that it only allows a-z (and caps) and 0 to 9 (and 
maybe dash).

I do appreciate the help. 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305265
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: image size setup

2008-05-14 Thread Bobby Hartsfield
Sorry, yes... it removes anything that isn't a letter, number, underscore or
hyphen

You could add dots to it as well if you want to run it against the whole
name including the extenstion...

[^a-zA-Z0-9-_\.]

So this:
Rereplace('joe_smiling (small).jpg', '[^a-zA-Z0-9-_\.]', '_', 'all')

Would result in:
joe_smiling__small_.jpg



..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: daniel kessler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 14, 2008 2:19 PM
To: CF-Talk
Subject: Re: image size setup

A safe bet would be rereplace [^a-zA-Z0-9-_]

Thank you very much.

I want to just implement it without getting it, but I can't.  What would
that clear out?  My guess is that it only allows a-z (and caps) and 0 to 9
(and maybe dash).

I do appreciate the help. 



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305267
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: image size setup

2008-05-14 Thread daniel kessler
Sorry, yes... it removes anything that isn't a letter, number, underscore or
hyphen


Very nice = thank you very much 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305268
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Image size

2007-01-23 Thread Dave Francis
I am on CF5.0. Is there anything out there that lets me determine an image's
width, height and filesize?

TIA,
Dave



~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267335
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Image size

2007-01-23 Thread Dave Phillips
Dave,

I seem to remember there being a CFX_Image or CFX_ImageInfo.  Google that.

Dave

I am on CF5.0. Is there anything out there that lets me determine an image's
width, height and filesize?

   TIA,
   Dave

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267336
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Image size

2007-01-23 Thread Chad Gray
Efflare.com has ImageCR that can do what you want.  

I use them all the time and they are rock solid applications.
Chad


-Original Message-
From: Dave Francis [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 23, 2007 12:26 PM
To: CF-Talk
Subject: Image size

I am on CF5.0. Is there anything out there that lets me determine an image's
width, height and filesize?

TIA,
Dave





~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267337
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Image size

2007-01-23 Thread Dave Francis
Could someone pls clear this up for me. I thought that CFX_'s require 
CF6
or greater?

-Original Message-
From: Dave Phillips [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 11:18 AM
To: CF-Talk
Subject: Re: Image size


Dave,

I seem to remember there being a CFX_Image or CFX_ImageInfo.  Google that.

Dave

I am on CF5.0. Is there anything out there that lets me determine an
image's
width, height and filesize?

   TIA,
   Dave



~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267340
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Image size

2007-01-23 Thread Bruce Sorge
I believe that CF 5 and up supports CFX tags.

-- 
Bruce Sorge

I'm a mawg: half man, half dog. I'm my own best friend!

On 1/23/07, Dave Francis [EMAIL PROTECTED] wrote:

 Could someone pls clear this up for me. I thought that CFX_'s
 require CF6
 or greater?




~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267342
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Image size

2007-01-23 Thread Dave Phillips
Dave,

If you have access to your CF Administrator you should be able to add CFX's in 
CF 5.  I remember doing that years ago.  Check out your administrator pages.  
There should be a place where you can specify your CFX tags.

Dave

Could someone pls clear this up for me. I thought that CFX_'s require CF6
or greater?

-Original Message-
From: Dave Phillips [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 11:18 AM
To: CF-Talk
Subject: Re: Image size


Dave,

I seem to remember there being a CFX_Image or CFX_ImageInfo.  Google that.

Dave

I am on CF5.0. Is there anything out there that lets me determine an
image's
width, height and filesize?

  TIA,
  Dave

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267343
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Image size

2007-01-23 Thread Chad Gray
It depends on the CFX.  You can load CFXs in 4.5 but it does not mean that all 
CFXs will run on 4.5.



-Original Message-
From: Dave Francis [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 23, 2007 1:14 PM
To: CF-Talk
Subject: RE: Image size

Could someone pls clear this up for me. I thought that CFX_'s require 
CF6
or greater?

-Original Message-
From: Dave Phillips [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 11:18 AM
To: CF-Talk
Subject: Re: Image size


Dave,

I seem to remember there being a CFX_Image or CFX_ImageInfo.  Google that.

Dave

I am on CF5.0. Is there anything out there that lets me determine an
image's
width, height and filesize?

   TIA,
   Dave





~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267344
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Image size

2007-01-23 Thread Charlie Griefer
CFX tags go back quite a ways.  In the pre-MX days (when CF was
written on C++), they were generally compiled C++ code.

On 1/23/07, Chad Gray [EMAIL PROTECTED] wrote:
 It depends on the CFX.  You can load CFXs in 4.5 but it does not mean that 
 all CFXs will run on 4.5.



 -Original Message-
 From: Dave Francis [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 23, 2007 1:14 PM
 To: CF-Talk
 Subject: RE: Image size

 Could someone pls clear this up for me. I thought that CFX_'s require 
 CF6
 or greater?

 -Original Message-
 From: Dave Phillips [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 23, 2007 11:18 AM
 To: CF-Talk
 Subject: Re: Image size


 Dave,

 I seem to remember there being a CFX_Image or CFX_ImageInfo.  Google that.

 Dave

 I am on CF5.0. Is there anything out there that lets me determine an
 image's
 width, height and filesize?
 
TIA,
Dave





 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267345
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Image size

2007-01-23 Thread Adrian Lynch
Has anyone else read this and suddenly felt very old?! I started on 4 and
you're all talking like it was 6 odd years ago...

 oh, it was! :Oo

Ade

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: 23 January 2007 18:28
To: CF-Talk
Subject: Re: Image size


CFX tags go back quite a ways.  In the pre-MX days (when CF was
written on C++), they were generally compiled C++ code.

On 1/23/07, Chad Gray [EMAIL PROTECTED] wrote:
 It depends on the CFX.  You can load CFXs in 4.5 but it does not mean that
all CFXs will run on 4.5.



 -Original Message-
 From: Dave Francis [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 23, 2007 1:14 PM
 To: CF-Talk
 Subject: RE: Image size

 Could someone pls clear this up for me. I thought that CFX_'s
require CF6
 or greater?

 -Original Message-
 From: Dave Phillips [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 23, 2007 11:18 AM
 To: CF-Talk
 Subject: Re: Image size


 Dave,

 I seem to remember there being a CFX_Image or CFX_ImageInfo.  Google that.

 Dave

 I am on CF5.0. Is there anything out there that lets me determine an
 image's
 width, height and filesize?
 
TIA,
Dave


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267346
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Image size

2007-01-23 Thread Dave Watts
   Could someone pls clear this up for me. I thought that 
 CFX_'s require CF6 or greater?

No, they were introduced in CF 1.5, if I recall correctly. They had to be
written in C++ until either 4 or 5, I think. CFML custom tags were
introduced in CF 3.

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!


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267347
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Image size

2007-01-23 Thread Claude Schneegans
 I started on 4 and you're all talking like it was 6 odd years ago...

Young man, I started with version 1.2, about 12 years ago...
I remember, the docs was just an MSWord document by that time. ;-)

And can you believe this: queries name could only be used once in a 
template.
If you had a query in a loop (was there loops? with CFOUTPUT only) you had
to have an algorithm to assign a new query name for each iteration in 
the loop.
And of course, better not have a too large loop ;-)

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267348
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Image size

2007-01-23 Thread Rick Root
On 1/23/07, Adrian Lynch [EMAIL PROTECTED] wrote:

 Has anyone else read this and suddenly felt very old?! I started on 4 and
 you're all talking like it was 6 odd years ago...


CF 4?  You young whippersnapper! ;)


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267352
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Image size

2007-01-23 Thread Bobby Hartsfield
I second ImageCR3... and third it and fourth it... and... [trails off]

-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 23, 2007 12:32 PM
To: CF-Talk
Subject: RE: Image size

Efflare.com has ImageCR that can do what you want.  

I use them all the time and they are rock solid applications.
Chad


-Original Message-
From: Dave Francis [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 23, 2007 12:26 PM
To: CF-Talk
Subject: Image size

I am on CF5.0. Is there anything out there that lets me determine an image's
width, height and filesize?

TIA,
Dave







~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267356
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Image size

2007-01-23 Thread Bobby Hartsfield
I don’t remember whether or not this code worked in CF5... I moved on and
never looked back heh

anyway... try it... it returns the width, height and file size (bytes,
kilobytes and megabytes)

cfscript
function bhimginfo(imgfile){
jFileIn = createObject(java,java.io.File).init(imgfile);
ImageInfo = StructNew();
ImageObject =
createObject(java,javax.imageio.ImageIO).read(jFileIn);
imageFile = CreateObject(java, java.io.File); 
imageFile.init(imgfile); 
sizeb = imageFile.length(); 
sizekb = numberformat(sizeb / 1024, 9.99);
sizemb = numberformat(sizekb / 1024, .99);

bhImageInfo = StructNew();
bhImageInfo.ImgWidth = ImageObject.getWidth();
bhImageInfo.ImgHeight = ImageObject.getHeight();
bhImageInfo.SizeB = sizeb;
bhImageInfo.SizeKB = sizekb;
bhImageInfo.SizeMB = sizemb;

return bhImageInfo;
}
/cfscript




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.2/641 - Release Date: 1/20/2007
10:24 AM
 



~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267372
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Image size

2007-01-23 Thread Rick Faircloth
I use CFX_JPG on my CF 4.5 machine all the time...

Rick

-Original Message-
From: Dave Francis [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 23, 2007 1:14 PM
To: CF-Talk
Subject: RE: Image size

Could someone pls clear this up for me. I thought that CFX_'s
require CF6
or greater?




~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267413
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Any way to specify image size in this code?

2007-01-20 Thread Adrian Lynch
Also create a new page and test that the resize code works.

Adrian

-Original Message-
From: Josh Nathanson [mailto:[EMAIL PROTECTED]
Sent: 11 January 2007 22:22
To: CF-Talk
Subject: Re: Any way to specify image size in this code?


Hmmm, it looks like you have some functions in the href onmouseover and
onmouseout (CTh and CTs) that don't exist in your javascript code.

If you are trying to make your script run when the link is rolled over,
you'll need to define within your javascript code the functions that are
called on the mouseover/mouseout events.

This is what's good about Firebug - it would tell you function undefined
or whatever your error is.  In fact I'm suprised IE isn't throwing alerts at
you if you are trying to run this code in IE.




- Original Message -
From: Rick Faircloth [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Thursday, January 11, 2007 1:58 PM
Subject: RE: Any way to specify image size in this code?


 Nay... don't use firebug... or FireFox :o)

 (I do have it on my machine, however...)


 -Original Message-
 From: Charlie Griefer [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 3:54 PM
 To: CF-Talk
 Subject: Re: Any way to specify image size in this code?

 also...you're using firebug in mozilla for debugging this, right?
 RIGHT???
 :)




~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267053
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Any way to specify image size in this code?

2007-01-20 Thread Rick Faircloth
Good idea...

-Original Message-
From: Adrian Lynch [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 20, 2007 10:59 AM
To: CF-Talk
Subject: RE: Any way to specify image size in this code?

Also create a new page and test that the resize code works.

Adrian

-Original Message-
From: Josh Nathanson [mailto:[EMAIL PROTECTED]
Sent: 11 January 2007 22:22
To: CF-Talk
Subject: Re: Any way to specify image size in this code?


Hmmm, it looks like you have some functions in the href onmouseover and
onmouseout (CTh and CTs) that don't exist in your javascript code.

If you are trying to make your script run when the link is rolled over,
you'll need to define within your javascript code the functions that are
called on the mouseover/mouseout events.

This is what's good about Firebug - it would tell you function undefined
or whatever your error is.  In fact I'm suprised IE isn't throwing alerts at
you if you are trying to run this code in IE.








~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267055
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Any way to specify image size in this code?

2007-01-11 Thread Rick Faircloth
Hi, all.

I was wondering if there is any way to specify the image size in this code:

SCRIPT LANGUAGE=JavaScript!--
var img33641915#Get_New_Community.CurrentRow#=new Image();
img33641915#Get_New_Community.CurrentRow#.src=#Website#/created_assets/phot
os/new_communities/#Get_New_Community.Community_Photo_1#;
//--/SCRIPT

Thanks,

Rick



~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266301
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Any way to specify image size in this code?

2007-01-11 Thread Adrian Lynch
Try:

img33641915#Get_New_Community.CurrentRow#.width = 100;
img33641915#Get_New_Community.CurrentRow#.height = 100;

Ade

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED]
Sent: 11 January 2007 20:01
To: CF-Talk
Subject: Any way to specify image size in this code?


Hi, all.

I was wondering if there is any way to specify the image size in this code:

SCRIPT LANGUAGE=JavaScript!--
var img33641915#Get_New_Community.CurrentRow#=new Image();
img33641915#Get_New_Community.CurrentRow#.src=#Website#/created_assets/phot
os/new_communities/#Get_New_Community.Community_Photo_1#;
//--/SCRIPT

Thanks,

Rick




~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266303
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Any way to specify image size in this code?

2007-01-11 Thread Rick Faircloth
Thanks for the reply, Adrian...

I tried it like this...

SCRIPT LANGUAGE=JavaScript!--
var img33641915#Get_New_Community.CurrentRow#=new Image();
img33641915#Get_New_Community.CurrentRow#.width=200;
img33641915#Get_New_Community.CurrentRow#.src=#Website#/created_assets/phot
os/new_communities/#Get_New_Community.Community_Photo_1#;
//--/SCRIPT

with your code stuck on the end of the second line,
but nothing's changing with the image size.

Do I need to put it in another spot?

Rick



-Original Message-
From: Adrian Lynch [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 3:06 PM
To: CF-Talk
Subject: RE: Any way to specify image size in this code?

Try:

img33641915#Get_New_Community.CurrentRow#.width = 100;
img33641915#Get_New_Community.CurrentRow#.height = 100;

Ade

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED]
Sent: 11 January 2007 20:01
To: CF-Talk
Subject: Any way to specify image size in this code?


Hi, all.

I was wondering if there is any way to specify the image size in this code:

SCRIPT LANGUAGE=JavaScript!--
var img33641915#Get_New_Community.CurrentRow#=new Image();
img33641915#Get_New_Community.CurrentRow#.src=#Website#/created_assets/phot
os/new_communities/#Get_New_Community.Community_Photo_1#;
//--/SCRIPT

Thanks,

Rick






~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266305
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Any way to specify image size in this code?

2007-01-11 Thread Josh Nathanson
Could be that you need to switch the order of the second and third lines, so 
you are assigning the width AFTER you set the src attribute.

-- Josh


- Original Message - 
From: Rick Faircloth [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Thursday, January 11, 2007 12:17 PM
Subject: RE: Any way to specify image size in this code?


 Thanks for the reply, Adrian...

 I tried it like this...

 SCRIPT LANGUAGE=JavaScript!--
 var img33641915#Get_New_Community.CurrentRow#=new Image();
 img33641915#Get_New_Community.CurrentRow#.width=200;
 img33641915#Get_New_Community.CurrentRow#.src=#Website#/created_assets/phot
 os/new_communities/#Get_New_Community.Community_Photo_1#;
 //--/SCRIPT

 with your code stuck on the end of the second line,
 but nothing's changing with the image size.

 Do I need to put it in another spot?

 Rick



 -Original Message-
 From: Adrian Lynch [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 3:06 PM
 To: CF-Talk
 Subject: RE: Any way to specify image size in this code?

 Try:

 img33641915#Get_New_Community.CurrentRow#.width = 100;
 img33641915#Get_New_Community.CurrentRow#.height = 100;

 Ade

 -Original Message-
 From: Rick Faircloth [mailto:[EMAIL PROTECTED]
 Sent: 11 January 2007 20:01
 To: CF-Talk
 Subject: Any way to specify image size in this code?


 Hi, all.

 I was wondering if there is any way to specify the image size in this 
 code:

 SCRIPT LANGUAGE=JavaScript!--
 var img33641915#Get_New_Community.CurrentRow#=new Image();
 img33641915#Get_New_Community.CurrentRow#.src=#Website#/created_assets/phot
 os/new_communities/#Get_New_Community.Community_Photo_1#;
 //--/SCRIPT

 Thanks,

 Rick






 

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266306
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Any way to specify image size in this code?

2007-01-11 Thread Charlie Griefer
also, try img.width = 200px;

not sure...just grasping at straws...but i'm fairly certin that Adrian
was right in suggesting the .width and .height properties.   now it's
just a matter of finding the proper syntax for the values :)

On 1/11/07, Josh Nathanson [EMAIL PROTECTED] wrote:
 Could be that you need to switch the order of the second and third lines, so
 you are assigning the width AFTER you set the src attribute.

 -- Josh


 - Original Message -
 From: Rick Faircloth [EMAIL PROTECTED]
 To: CF-Talk cf-talk@houseoffusion.com
 Sent: Thursday, January 11, 2007 12:17 PM
 Subject: RE: Any way to specify image size in this code?


  Thanks for the reply, Adrian...
 
  I tried it like this...
 
  SCRIPT LANGUAGE=JavaScript!--
  var img33641915#Get_New_Community.CurrentRow#=new Image();
  img33641915#Get_New_Community.CurrentRow#.width=200;
  img33641915#Get_New_Community.CurrentRow#.src=#Website#/created_assets/phot
  os/new_communities/#Get_New_Community.Community_Photo_1#;
  //--/SCRIPT
 
  with your code stuck on the end of the second line,
  but nothing's changing with the image size.
 
  Do I need to put it in another spot?
 
  Rick
 
 
 
  -Original Message-
  From: Adrian Lynch [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 11, 2007 3:06 PM
  To: CF-Talk
  Subject: RE: Any way to specify image size in this code?
 
  Try:
 
  img33641915#Get_New_Community.CurrentRow#.width = 100;
  img33641915#Get_New_Community.CurrentRow#.height = 100;
 
  Ade
 
  -Original Message-
  From: Rick Faircloth [mailto:[EMAIL PROTECTED]
  Sent: 11 January 2007 20:01
  To: CF-Talk
  Subject: Any way to specify image size in this code?
 
 
  Hi, all.
 
  I was wondering if there is any way to specify the image size in this
  code:
 
  SCRIPT LANGUAGE=JavaScript!--
  var img33641915#Get_New_Community.CurrentRow#=new Image();
  img33641915#Get_New_Community.CurrentRow#.src=#Website#/created_assets/phot
  os/new_communities/#Get_New_Community.Community_Photo_1#;
  //--/SCRIPT
 
  Thanks,
 
  Rick
 
 
 
 
 
 
 

 

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266307
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Any way to specify image size in this code?

2007-01-11 Thread Rick Faircloth
Good try, but so far... no go...

Here's what I have now:

SCRIPT LANGUAGE=JavaScript!--

var img33641915#Get_New_Community.CurrentRow#=new Image();
img33641915#Get_New_Community.CurrentRow#.src=
#Website#/created_assets/photos/new_communities/#Get_New_Community.Communit
y_Photo_1#;
img33641915#Get_New_Community.CurrentRow#.width=200;

//--/SCRIPT

-Original Message-
From: Josh Nathanson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 3:21 PM
To: CF-Talk
Subject: Re: Any way to specify image size in this code?

Could be that you need to switch the order of the second and third lines, so

you are assigning the width AFTER you set the src attribute.

-- Josh





~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266308
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Any way to specify image size in this code?

2007-01-11 Thread Charlie Griefer
googling also suggests that you can specify the height and width as
arguments in the new Image() call itself.

myFoo = newImage(100,200);

http://docs.sun.com/source/816-6408-10/image.htm

On 1/11/07, Charlie Griefer [EMAIL PROTECTED] wrote:
 also, try img.width = 200px;

 not sure...just grasping at straws...but i'm fairly certin that Adrian
 was right in suggesting the .width and .height properties.   now it's
 just a matter of finding the proper syntax for the values :)

 On 1/11/07, Josh Nathanson [EMAIL PROTECTED] wrote:
  Could be that you need to switch the order of the second and third lines, so
  you are assigning the width AFTER you set the src attribute.
 
  -- Josh
 
 
  - Original Message -
  From: Rick Faircloth [EMAIL PROTECTED]
  To: CF-Talk cf-talk@houseoffusion.com
  Sent: Thursday, January 11, 2007 12:17 PM
  Subject: RE: Any way to specify image size in this code?
 
 
   Thanks for the reply, Adrian...
  
   I tried it like this...
  
   SCRIPT LANGUAGE=JavaScript!--
   var img33641915#Get_New_Community.CurrentRow#=new Image();
   img33641915#Get_New_Community.CurrentRow#.width=200;
   img33641915#Get_New_Community.CurrentRow#.src=#Website#/created_assets/phot
   os/new_communities/#Get_New_Community.Community_Photo_1#;
   //--/SCRIPT
  
   with your code stuck on the end of the second line,
   but nothing's changing with the image size.
  
   Do I need to put it in another spot?
  
   Rick
  
  
  
   -Original Message-
   From: Adrian Lynch [mailto:[EMAIL PROTECTED]
   Sent: Thursday, January 11, 2007 3:06 PM
   To: CF-Talk
   Subject: RE: Any way to specify image size in this code?
  
   Try:
  
   img33641915#Get_New_Community.CurrentRow#.width = 100;
   img33641915#Get_New_Community.CurrentRow#.height = 100;
  
   Ade
  
   -Original Message-
   From: Rick Faircloth [mailto:[EMAIL PROTECTED]
   Sent: 11 January 2007 20:01
   To: CF-Talk
   Subject: Any way to specify image size in this code?
  
  
   Hi, all.
  
   I was wondering if there is any way to specify the image size in this
   code:
  
   SCRIPT LANGUAGE=JavaScript!--
   var img33641915#Get_New_Community.CurrentRow#=new Image();
   img33641915#Get_New_Community.CurrentRow#.src=#Website#/created_assets/phot
   os/new_communities/#Get_New_Community.Community_Photo_1#;
   //--/SCRIPT
  
   Thanks,
  
   Rick
  
  
  
  
  
  
  
 
  

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266309
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Any way to specify image size in this code?

2007-01-11 Thread Rick Faircloth
Still no change... :o/

Current code:

SCRIPT LANGUAGE=JavaScript!--

var img33641915#Get_New_Community.CurrentRow#=new Image();
img33641915#Get_New_Community.CurrentRow#.src=#Website#/created_assets/phot
os/new_communities/#Get_New_Community.Community_Photo_1#;
img33641915#Get_New_Community.CurrentRow#.width=200px;

//--/SCRIPT


-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 3:28 PM
To: CF-Talk
Subject: Re: Any way to specify image size in this code?

also, try img.width = 200px;

not sure...just grasping at straws...but i'm fairly certin that Adrian
was right in suggesting the .width and .height properties.   now it's
just a matter of finding the proper syntax for the values :)





~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266312
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Any way to specify image size in this code?

2007-01-11 Thread Rick Faircloth
Nope... that didn't work, either...


-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 3:30 PM
To: CF-Talk
Subject: Re: Any way to specify image size in this code?

googling also suggests that you can specify the height and width as
arguments in the new Image() call itself.

myFoo = newImage(100,200);

http://docs.sun.com/source/816-6408-10/image.htm




~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266317
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Any way to specify image size in this code?

2007-01-11 Thread Charlie Griefer
that should have worked from everything i've been reading.

can you copy/paste the resulting JS code from a view source in the browser?

On 1/11/07, Rick Faircloth [EMAIL PROTECTED] wrote:
 Nope... that didn't work, either...


 -Original Message-
 From: Charlie Griefer [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 3:30 PM
 To: CF-Talk
 Subject: Re: Any way to specify image size in this code?

 googling also suggests that you can specify the height and width as
 arguments in the new Image() call itself.

 myFoo = newImage(100,200);

 http://docs.sun.com/source/816-6408-10/image.htm




 

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266319
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Any way to specify image size in this code?

2007-01-11 Thread Charlie Griefer
also...you're using firebug in mozilla for debugging this, right?   RIGHT??? :)

On 1/11/07, Charlie Griefer [EMAIL PROTECTED] wrote:
 that should have worked from everything i've been reading.

 can you copy/paste the resulting JS code from a view source in the browser?

 On 1/11/07, Rick Faircloth [EMAIL PROTECTED] wrote:
  Nope... that didn't work, either...
 
 
  -Original Message-
  From: Charlie Griefer [mailto:[EMAIL PROTECTED]
  Sent: Thursday, January 11, 2007 3:30 PM
  To: CF-Talk
  Subject: Re: Any way to specify image size in this code?
 
  googling also suggests that you can specify the height and width as
  arguments in the new Image() call itself.
 
  myFoo = newImage(100,200);
 
  http://docs.sun.com/source/816-6408-10/image.htm
 
 
 
 
  

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266320
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Any way to specify image size in this code?

2007-01-11 Thread Rick Faircloth
Here you go... I added a second piece of code that
has the mouseover trigger for the image to display... don't
know if that should be modified somehow, too.

(website) has been inserted in the code to protect the app...

What about some of the attributes in the ONMOUSEOVER part
in the second section of code?  (img336419151,1,0,0) ... could
some of that be for width?

Rick

SCRIPT LANGUAGE=JavaScript!--
var img336419151=new Image(100,200);
img336419151.src=http://(website)/created_assets/photos/new_communities/HI3
7892.jpg;  
//--/SCRIPT

a href= ONMOUSEOVER=CTs(img336419151,1,0,0); ONMOUSEOUT=CTh()
img src=/_cache/59c7fd5a4e9ac1d5cb08c01ab3fe37c4.jpg border=1/a



-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 3:54 PM
To: CF-Talk
Subject: Re: Any way to specify image size in this code?

that should have worked from everything i've been reading.

can you copy/paste the resulting JS code from a view source in the browser?

On 1/11/07, Rick Faircloth [EMAIL PROTECTED] wrote:
 Nope... that didn't work, either...


 -Original Message-
 From: Charlie Griefer [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 3:30 PM
 To: CF-Talk
 Subject: Re: Any way to specify image size in this code?

 googling also suggests that you can specify the height and width as
 arguments in the new Image() call itself.

 myFoo = newImage(100,200);

 http://docs.sun.com/source/816-6408-10/image.htm




 



~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266323
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Any way to specify image size in this code?

2007-01-11 Thread Rick Faircloth
Nay... don't use firebug... or FireFox :o)

(I do have it on my machine, however...)


-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 11, 2007 3:54 PM
To: CF-Talk
Subject: Re: Any way to specify image size in this code?

also...you're using firebug in mozilla for debugging this, right?   RIGHT???
:)





~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266331
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Any way to specify image size in this code?

2007-01-11 Thread Josh Nathanson
Hmmm, it looks like you have some functions in the href onmouseover and 
onmouseout (CTh and CTs) that don't exist in your javascript code.

If you are trying to make your script run when the link is rolled over, 
you'll need to define within your javascript code the functions that are 
called on the mouseover/mouseout events.

This is what's good about Firebug - it would tell you function undefined 
or whatever your error is.  In fact I'm suprised IE isn't throwing alerts at 
you if you are trying to run this code in IE.




- Original Message - 
From: Rick Faircloth [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Thursday, January 11, 2007 1:58 PM
Subject: RE: Any way to specify image size in this code?


 Nay... don't use firebug... or FireFox :o)

 (I do have it on my machine, however...)


 -Original Message-
 From: Charlie Griefer [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 11, 2007 3:54 PM
 To: CF-Talk
 Subject: Re: Any way to specify image size in this code?

 also...you're using firebug in mozilla for debugging this, right? 
 RIGHT???
 :)





 

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266336
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Custom Tag for Image Size of Progressive Jpg Files?

2005-04-13 Thread Peter Lakanen
Does anyone know of a free or cheap ($20 or less) custom tag that will 
give me the pixel dimensions of a progressive jpg file?

All of my current image size custom tags cough up a spleen when I try to 
get the height and width from a progressive jpg as opposed to a regular 
jpg file.

FYI, I get the list in digest form, so if you can copy me directly on 
your response, I will greatly appreciate it.

Thanks!

-peter

-- 
   Peter Lakanen   [EMAIL PROTECTED]
   Platinum Web Development  http://www.platinumweb.com
   1320 Terrace Street  Tallahassee, FL 32303
   850.508.4518   FAX: 850.681.1930

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202551
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Image size

2004-09-01 Thread Chad McCue
Does anyone know a way to get the width and height of an image when it is upload.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Image size

2004-09-01 Thread Bryan Stevenson
Yepif you use CFCs and CF MX I can send ya a function that uses Java to find the file dimensions and file size

Let me know

Cheers

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

- Original Message - 
From: Chad McCue 
To: CF-Talk 
Sent: Wednesday, September 01, 2004 9:47 AM
Subject: Image size

Does anyone know a way to get the width and height of an image when it is upload.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Image size

2004-09-01 Thread Asim Manzur
Is it a CFX tag?
will you please post the name, I also need that.

thanks
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Image size

2004-09-01 Thread Chad McCue
Yes to both of those, would love to see that function.
- Original Message - 
From: Bryan Stevenson 
To: CF-Talk 
Sent: Wednesday, September 01, 2004 12:49 PM
Subject: Re: Image size

Yepif you use CFCs and CF MX I can send ya a function that uses Java to find the file dimensions and file size

Let me know

Cheers

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

 - Original Message - 
 From: Chad McCue 
 To: CF-Talk 
 Sent: Wednesday, September 01, 2004 9:47 AM
 Subject: Image size

 Does anyone know a way to get the width and height of an image when it is upload.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Image size

2004-09-01 Thread Bryan Stevenson
No it's a set of 2 functions written to be part of CFCsif that works for you I can send you the code

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

- Original Message - 
From: Asim Manzur 
To: CF-Talk 
Sent: Wednesday, September 01, 2004 9:55 AM
Subject: Re: Image size

Is it a CFX tag?
will you please post the name, I also need that.

thanks
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Image size

2004-09-01 Thread Bryan Stevenson
OK Chad...you asked for it ;-)

!---(Function: FileSize)--
Date Created:March 12, 2004
Author:Phil
Arguments:FileLoc - full path of file (string) required
Purpose:Gets the size of a file in bytes
Returns:File Size in bytes (numeric)
---
cffunction name=FileSize returnType=numeric access=public
 
 cfargument name=FileLoc type=string required=Yes

 cfset jFileIn = CreateObject(java,java.io.File).init(ARGUMENTS.FileLoc)
 cfreturn jFileIn.Length()
 
/cffunction


!---(Function: ImageSize)--
Date Created:November 28, 2003
Author:Bryan
Arguments:FileLoc - full path of image to get details for (string) required
Purpose:returns file width/height
Returns:ImageInfo structure with ImgWidth/ImgHeight keys
---
cffunction name=ImageSize returnType=struct access=public
 
 cfargument name=FileLoc type=string required=Yes

 cfset jFileIn = createObject(java,java.io.File).init(ARGUMENTS.FileLoc)

 cfset ImageInfo = StructNew()
 cfset ImageObject = createObject(java,javax.imageio.ImageIO).read(jFileIn)
 
 cfset ImageInfo.ImgWidth = ImageObject.getWidth()
 cfset ImageInfo.ImgHeight = ImageObject.getHeight()
 
 cfreturn ImageInfo

/cffunction

Hope those do the trick for ya ;-)

Cheers

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

- Original Message - 
From: Chad McCue 
To: CF-Talk 
Sent: Wednesday, September 01, 2004 9:54 AM
Subject: Re: Image size

Yes to both of those, would love to see that function.
 - Original Message - 
 From: Bryan Stevenson 
 To: CF-Talk 
 Sent: Wednesday, September 01, 2004 12:49 PM
 Subject: Re: Image size

 Yepif you use CFCs and CF MX I can send ya a function that uses Java to find the file dimensions and file size

 Let me know

 Cheers

 Bryan Stevenson B.Comm.
 VP  Director of E-Commerce Development
 Electric Edge Systems Group Inc.
 phone: 250.480.0642
 fax: 250.480.1264
 cell: 250.920.8830
 e-mail: [EMAIL PROTECTED]
 web: www.electricedgesystems.com

- Original Message - 
From: Chad McCue 
To: CF-Talk 
Sent: Wednesday, September 01, 2004 9:47 AM
Subject: Image size

Does anyone know a way to get the width and height of an image when it is upload.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Image size

2004-09-01 Thread Chad McCue
yes please send it to me

[EMAIL PROTECTED]
- Original Message - 
From: Bryan Stevenson 
To: CF-Talk 
Sent: Wednesday, September 01, 2004 1:02 PM
Subject: Re: Image size

No it's a set of 2 functions written to be part of CFCsif that works for you I can send you the code

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

 - Original Message - 
 From: Asim Manzur 
 To: CF-Talk 
 Sent: Wednesday, September 01, 2004 9:55 AM
 Subject: Re: Image size

 Is it a CFX tag?
 will you please post the name, I also need that.

 thanks
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Image size

2004-09-01 Thread Asim Manzur
thanks
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Image size

2004-09-01 Thread Massimo, Tiziana e Federica
 Does anyone know a way to get the width and height of an image when it is
upload.

http://www.cfmentor.com/code/index.cfm?action="">


Massimo Foti
Certified Dreamweaver MX Developer
Certified Advanced ColdFusion MX Developer
http://www.massimocorner.com/

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Problem Determining Image Size

2002-11-20 Thread Lewis Sellers
On Tue, 19 Nov 2002 16:30:07 -0800, in cf-talk you wrote:

I'm using the custom tag imagesize to get the width/height of uploaded
images. I'm finding a problem sometimes with very simple jpeg uploads.
Say the image is 200 x 200. I can upload it to the server and it
remains 200 x 200 (I've checked), but the imagesize tag tells me the
image is 112 x 112.

If I take the same image into Fireworks and re-export, again as a jpeg
with same 200 x 200 dimensions, this time the imagesize tag reports
the correct dimensions.

Is there a known issue with either CF and/or something to do with
exporting jpegs -- eg, corrupt image info in the binary jpeg file?


I've written jpeg encoders/decoders from scratch in c++ before, so I
can tell you different graphics applications will save jpeg's in many
different, but still perfectly legal ways.

I don't think I'm familiar with the imagesize tag you're talking
about, but it feels like it's simply trying to assuming that the width
+ height values are always in the same fixed place in every jpeg file.
They are in the same place in quite a few simply because of the quirk
that a lot of apps are based on the same original open-source IJG JPEG
code.

But many also aren't. The 112 values most likely have nothing to do
with the size ... it's just what the tag sees when it looks where it
blindly thinks the data should be.

--min

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



Problem Determining Image Size

2002-11-19 Thread Bob Haroche
I'm using the custom tag imagesize to get the width/height of uploaded
images. I'm finding a problem sometimes with very simple jpeg uploads.
Say the image is 200 x 200. I can upload it to the server and it
remains 200 x 200 (I've checked), but the imagesize tag tells me the
image is 112 x 112.

If I take the same image into Fireworks and re-export, again as a jpeg
with same 200 x 200 dimensions, this time the imagesize tag reports
the correct dimensions.

Is there a known issue with either CF and/or something to do with
exporting jpegs -- eg, corrupt image info in the binary jpeg file?

-
Regards,
Bob Haroche
O n P o i n t  S o l u t i o n s
www.OnPointSolutions.com

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



Dynamically adjust window based on image size?

2002-11-13 Thread Bob Haroche
I'm working on a feature where a visitor can click on a link for more
photos. That triggers a pop up window which displays the first of X
images in a slideshow. The list of images is created from a db query.

The images will be uploaded by the client and may not be all the same
dimensions. I'd like to have the slideshow window dynamically adjust
to expand or contract around each image currently being displayed.

I know this had to be done at some time so I'm looking for a good
custom tag or script to start with.

Two questions:

1. Any recommendations for such a script?

2. Using CF5 how would one grab an image's width and height?

Thanks.

-
Regards,
Bob Haroche
O n P o i n t  S o l u t i o n s
www.OnPointSolutions.com

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Re: Dynamically adjust window based on image size?

2002-11-13 Thread Dick Applebaum
Suggestion:

Do the query and get the max image w  h (should be stored in the db)

pass the results back to the main window where a JavaScript onLoad  
function creates a single popup that can handle the largest dimensions,  
plus buttons for the slide show.

An optional way is show thumbnails  allow click to display enlarged  
image.

There was a tag on the exchange to get image size -- CF_ImageSize, i  
think!

Dick

On Wednesday, November 13, 2002, at 12:31 PM, Bob Haroche wrote:

 I'm working on a feature where a visitor can click on a link for more
 photos. That triggers a pop up window which displays the first of X
 images in a slideshow. The list of images is created from a db query.

 The images will be uploaded by the client and may not be all the same
 dimensions. I'd like to have the slideshow window dynamically adjust
 to expand or contract around each image currently being displayed.

 I know this had to be done at some time so I'm looking for a good
 custom tag or script to start with.

 Two questions:

 1. Any recommendations for such a script?

 2. Using CF5 how would one grab an image's width and height?

 Thanks.

 -
 Regards,
 Bob Haroche
 O n P o i n t  S o l u t i o n s
 www.OnPointSolutions.com

 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Dynamically adjust window based on image size?

2002-11-13 Thread Matthew Walker
How about this:

body
onload=window.resizeTo(document.getElementById('myImg').width),document
getElementById('myImg').height));

No cf at all!

Matthew Walker
http://www.matthewwalker.net.nz/



 -Original Message-
 From: Bob Haroche [mailto:spambait;onpointsolutions.com]
 Sent: Thursday, 14 November 2002 9:31 a.m.
 To: CF-Talk
 Subject: Dynamically adjust window based on image size?
 
 
 I'm working on a feature where a visitor can click on a link for more
 photos. That triggers a pop up window which displays the first of X
 images in a slideshow. The list of images is created from a db query.
 
 The images will be uploaded by the client and may not be all the same
 dimensions. I'd like to have the slideshow window dynamically adjust
 to expand or contract around each image currently being displayed.
 
 I know this had to be done at some time so I'm looking for a good
 custom tag or script to start with.
 
 Two questions:
 
 1. Any recommendations for such a script?
 
 2. Using CF5 how would one grab an image's width and height?
 
 Thanks.
 
 -
 Regards,
 Bob Haroche
 O n P o i n t  S o l u t i o n s
 www.OnPointSolutions.com
 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: Dynamically adjust window based on image size?

2002-11-13 Thread Adrocknaphobia Jones
You know, from a usability perspective, re-sizing the browser window
with every click is really not a good idea. Personally, I would be
pretty annoyed if my browser window kept resizing. I think you should
just open it to the maximum w/h and leave it at that.

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-Original Message-
From: Matthew Walker [mailto:Matthew;cabbagetree.co.nz] 
Sent: Wednesday, November 13, 2002 3:54 PM
To: CF-Talk
Subject: RE: Dynamically adjust window based on image size?

How about this:

body
onload=window.resizeTo(document.getElementById('myImg').width),document
getElementById('myImg').height));

No cf at all!

Matthew Walker
http://www.matthewwalker.net.nz/



 -Original Message-
 From: Bob Haroche [mailto:spambait;onpointsolutions.com]
 Sent: Thursday, 14 November 2002 9:31 a.m.
 To: CF-Talk
 Subject: Dynamically adjust window based on image size?
 
 
 I'm working on a feature where a visitor can click on a link for more
 photos. That triggers a pop up window which displays the first of X
 images in a slideshow. The list of images is created from a db query.
 
 The images will be uploaded by the client and may not be all the same
 dimensions. I'd like to have the slideshow window dynamically adjust
 to expand or contract around each image currently being displayed.
 
 I know this had to be done at some time so I'm looking for a good
 custom tag or script to start with.
 
 Two questions:
 
 1. Any recommendations for such a script?
 
 2. Using CF5 how would one grab an image's width and height?
 
 Thanks.
 
 -
 Regards,
 Bob Haroche
 O n P o i n t  S o l u t i o n s
 www.OnPointSolutions.com
 
 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: Dynamically adjust window based on image size?

2002-11-13 Thread Bob Haroche
 You know, from a usability perspective, re-sizing the browser window
 with every click is really not a good idea. Personally, I would be
 pretty annoyed if my browser window kept resizing. I think you
should
 just open it to the maximum w/h and leave it at that.

I agree. I'm encouraging the client to upload same size images for
this and other aesthetic reasons, but I want to give them the choice
of not doing so.

-
Regards,
Bob Haroche
O n P o i n t  S o l u t i o n s
www.OnPointSolutions.com

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: Dynamically adjust window based on image size?

2002-11-13 Thread Matthew Walker
Yeah I agree. Having your close and next ophoto buttons move with each
click is totally annoying. Aside from usability though, there's
aesthetics. IMO a site looks much slicker if all the images are a
uniform size, even if it's not so ideal for the photos. 

 -Original Message-
 From: Adrocknaphobia Jones [mailto:adrocknatalk;hotmail.com]
 Sent: Thursday, 14 November 2002 9:59 a.m.
 To: CF-Talk
 Subject: RE: Dynamically adjust window based on image size?
 
 
 You know, from a usability perspective, re-sizing the browser window
 with every click is really not a good idea. Personally, I would be
 pretty annoyed if my browser window kept resizing. I think you should
 just open it to the maximum w/h and leave it at that.
 
 Adam Wayne Lehman
 Web Systems Developer
 Johns Hopkins Bloomberg School of Public Health
 Distance Education Division
 
 
 -Original Message-
 From: Matthew Walker [mailto:Matthew;cabbagetree.co.nz] 
 Sent: Wednesday, November 13, 2002 3:54 PM
 To: CF-Talk
 Subject: RE: Dynamically adjust window based on image size?
 
 How about this:
 
 body
 onload=window.resizeTo(document.getElementById('myImg').width
 ),document
 getElementById('myImg').height));
 
 No cf at all!
 
 Matthew Walker
 http://www.matthewwalker.net.nz/
 
 
 
  -Original Message-
  From: Bob Haroche [mailto:spambait;onpointsolutions.com]
  Sent: Thursday, 14 November 2002 9:31 a.m.
  To: CF-Talk
  Subject: Dynamically adjust window based on image size?
  
  
  I'm working on a feature where a visitor can click on a 
 link for more
  photos. That triggers a pop up window which displays the first of X
  images in a slideshow. The list of images is created from a 
 db query.
  
  The images will be uploaded by the client and may not be 
 all the same
  dimensions. I'd like to have the slideshow window dynamically adjust
  to expand or contract around each image currently being displayed.
  
  I know this had to be done at some time so I'm looking for a good
  custom tag or script to start with.
  
  Two questions:
  
  1. Any recommendations for such a script?
  
  2. Using CF5 how would one grab an image's width and height?
  
  Thanks.
  
  -
  Regards,
  Bob Haroche
  O n P o i n t  S o l u t i o n s
  www.OnPointSolutions.com
  
  
 
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: Dynamically adjust window based on image size?

2002-11-13 Thread Ben Doom
On a few sites we do, we use MM's old Generator 2 to create a resized copy
of an image and a thumbnail whenever the client uploads a file.

The thumbnail goes on lists of things, the resized (about 320x240) goes on
the main info page, and if you click on it (or the link immediately below
it) a large flyout window opens with the original (unsized) photo.



  --Ben Doom
Programmer  General Lackey
Moonbow Software

: -Original Message-
: From: Matthew Walker [mailto:Matthew;cabbagetree.co.nz]
: Sent: Wednesday, November 13, 2002 4:09 PM
: To: CF-Talk
: Subject: RE: Dynamically adjust window based on image size?
:
:
: Yeah I agree. Having your close and next ophoto buttons move with each
: click is totally annoying. Aside from usability though, there's
: aesthetics. IMO a site looks much slicker if all the images are a
: uniform size, even if it's not so ideal for the photos.
:
:  -Original Message-
:  From: Adrocknaphobia Jones [mailto:adrocknatalk;hotmail.com]
:  Sent: Thursday, 14 November 2002 9:59 a.m.
:  To: CF-Talk
:  Subject: RE: Dynamically adjust window based on image size?
: 
: 
:  You know, from a usability perspective, re-sizing the browser window
:  with every click is really not a good idea. Personally, I would be
:  pretty annoyed if my browser window kept resizing. I think you should
:  just open it to the maximum w/h and leave it at that.
: 
:  Adam Wayne Lehman
:  Web Systems Developer
:  Johns Hopkins Bloomberg School of Public Health
:  Distance Education Division
: 
: 
:  -Original Message-
:  From: Matthew Walker [mailto:Matthew;cabbagetree.co.nz]
:  Sent: Wednesday, November 13, 2002 3:54 PM
:  To: CF-Talk
:  Subject: RE: Dynamically adjust window based on image size?
: 
:  How about this:
: 
:  body
:  onload=window.resizeTo(document.getElementById('myImg').width
:  ),document
:  getElementById('myImg').height));
: 
:  No cf at all!
: 
:  Matthew Walker
:  http://www.matthewwalker.net.nz/
: 
: 
: 
:   -Original Message-
:   From: Bob Haroche [mailto:spambait;onpointsolutions.com]
:   Sent: Thursday, 14 November 2002 9:31 a.m.
:   To: CF-Talk
:   Subject: Dynamically adjust window based on image size?
:  
:  
:   I'm working on a feature where a visitor can click on a
:  link for more
:   photos. That triggers a pop up window which displays the first of X
:   images in a slideshow. The list of images is created from a
:  db query.
:  
:   The images will be uploaded by the client and may not be
:  all the same
:   dimensions. I'd like to have the slideshow window dynamically adjust
:   to expand or contract around each image currently being displayed.
:  
:   I know this had to be done at some time so I'm looking for a good
:   custom tag or script to start with.
:  
:   Two questions:
:  
:   1. Any recommendations for such a script?
:  
:   2. Using CF5 how would one grab an image's width and height?
:  
:   Thanks.
:  
:   -
:   Regards,
:   Bob Haroche
:   O n P o i n t  S o l u t i o n s
:   www.OnPointSolutions.com
:  
:  
: 
: 
: 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: Dynamically adjust window based on image size?

2002-11-13 Thread Lee Fuller
Seems to me this would be quite useful on pop-up display windows tho.

| -Original Message-
| From: Bob Haroche [mailto:spambait;onpointsolutions.com] 
| Sent: Wednesday, November 13, 2002 1:06 PM
| To: CF-Talk
| Subject: Re: Dynamically adjust window based on image size?
| 
| 
|  You know, from a usability perspective, re-sizing the 
| browser window 
|  with every click is really not a good idea. Personally, I would be 
|  pretty annoyed if my browser window kept resizing. I think you
| should
|  just open it to the maximum w/h and leave it at that.
| 
| I agree. I'm encouraging the client to upload same size 
| images for this and other aesthetic reasons, but I want to 
| give them the choice of not doing so.
| 
| -
| Regards,
| Bob Haroche
| O n P o i n t  S o l u t i o n s
| www.OnPointSolutions.com
| 
| 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



Re: Grabbing image size values

2001-07-03 Thread Mark Woods

the CF_ImageSize tag in the tag gallery doesn't work correctly with some 
jpeg images saved in Photoshop 5.5 (possibly other versions too, haven't 
tested them though).



Mark


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Grabbing image size values

2001-07-01 Thread Ben Densmore

can someone tell me if there is a way to grab the height and width of an image that 
someone has uploaded to a server? or am I better off doing it in Javascript?

Thanks,
Ben Densmore


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Grabbing image size values

2001-07-01 Thread Joseph Thompson

There is a nice little CF_ImageSize tag in the gallery.  It just opens the
file and grabs the size from the image header.

- Original Message -
From: Ben Densmore [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, July 01, 2001 2:18 PM
Subject: Grabbing image size values


 can someone tell me if there is a way to grab the height and width of an
image that someone has uploaded to a server? or am I better off doing it in
Javascript?

 Thanks,
 Ben Densmore



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Image size

2001-04-22 Thread Don Vawter

I use cfx_image which automatically creates a thumbnail (or any other size
you want). It uses image.dll. The properties tab say it was made by Cap
Gemini and copyright by Jukka Manner.
It looks to me like CF_GIFGD is the successor to this. It is in the gallery,
by the same author, and does thumbnails and lots of other stuff. I haven't
used it.
http://devex.allaire.com/developer/gallery/info.cfm?ID=CA34726E-2830-11D4-AA
9700508B94F380method=Full

- Original Message -
From: "Skip Ogden" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Friday, April 20, 2001 1:07 PM
Subject: Image size


 The Allaire Developers forum used to have a tag called cfx_imagesize (or
 something close to that). It isn't there any more, or I can't locate it.

 Does anyone know of ANY way to automatically create a thumbnail from an
 image as it is uploaded (with cffile)

 Thanks...



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Image size

2001-04-22 Thread Bill Poff

There are some command line programs available at fcoder.com which will
convert to
GIF, JPG, PNG, etc. You can run them with cfexecute or cf_secExecute.
You can specify
image size, destination name/location, etc.

We've been using them with pretty good results. They don't support AI or EPS
as source
(bummer) but they do support quite a few different source file formats.

It would be a pretty easy job to make CFX tags for these.

--Bill

-Original Message-
From: Don Vawter [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 22, 2001 12:03 PM
To: CF-Talk
Subject: Re: Image size


I use cfx_image which automatically creates a thumbnail (or any other size
you want). It uses image.dll. The properties tab say it was made by Cap
Gemini and copyright by Jukka Manner.
It looks to me like CF_GIFGD is the successor to this. It is in the gallery,
by the same author, and does thumbnails and lots of other stuff. I haven't
used it.
http://devex.allaire.com/developer/gallery/info.cfm?ID=CA34726E-2830-11D4-AA
9700508B94F380method=Full

- Original Message -
From: "Skip Ogden" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Friday, April 20, 2001 1:07 PM
Subject: Image size


 The Allaire Developers forum used to have a tag called cfx_imagesize (or
 something close to that). It isn't there any more, or I can't locate it.

 Does anyone know of ANY way to automatically create a thumbnail from an
 image as it is uploaded (with cffile)

 Thanks...



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Image size

2001-04-22 Thread Kay Smoljak

Hi all,

We tried using cfx_image here, but found there were problems with the
quality of jpegs outputted. Jukka Manner confirmed that this is a problem
because the tag is optimised for gifs. Our client at the time wanted high
quality jpegs as it was an artworks site.

cfplug
So, we created our own image resizing tag, pwimageproc. You can check it out
at http://developer.perthweb.com.au. It also does image info, colour
resampling, text addition, image rotation and watermarking.
/cfplug

Regards,
Kay.
__
Kay Smoljak - HTML/ColdFusion Developer - PerthWeb Pty Ltd
Internet Solutions for your business!

Level 9/105 St George's Tc - Perth - Western Australia
Ph: (08) 9226 1366 Fax: (08) 9226 1375 Mobile : 0419 949 007
Visit Perth online! : www.perthweb.com.au


On Sun, 22 Apr 2001 10:03:26 -0600, "Don Vawter" [EMAIL PROTECTED]
wrote:

I use cfx_image which automatically creates a thumbnail (or any other size
you want). It uses image.dll. The properties tab say it was made by Cap
Gemini and copyright by Jukka Manner.
It looks to me like CF_GIFGD is the successor to this. It is in the
gallery,
by the same author, and does thumbnails and lots of other stuff. I haven't
used it.
http://devex.allaire.com/developer/gallery/info.cfm?ID=CA34726E-2830-11D4-A
A
9700508B94F380method=Full

- Original Message -
From: "Skip Ogden" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Friday, April 20, 2001 1:07 PM
Subject: Image size


 The Allaire Developers forum used to have a tag called cfx_imagesize (or
 something close to that). It isn't there any more, or I can't locate it.

 Does anyone know of ANY way to automatically create a thumbnail from an
 image as it is uploaded (with cffile)

 Thanks...




Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Image size

2001-04-20 Thread Skip Ogden

The Allaire Developers forum used to have a tag called cfx_imagesize (or 
something close to that). It isn't there any more, or I can't locate it.

Does anyone know of ANY way to automatically create a thumbnail from an 
image as it is uploaded (with cffile)

Thanks...


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Image size

2001-04-20 Thread Howie Hamlin

You can get it here:

http://www.intrafoundation.com/cf.html

HTH,

Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc.
www.CoolFusion.com
631-737-4668 x101
inFusion Mail Server (iMS) - the World's most configurable mail server


- Original Message -
From: "Skip Ogden" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Friday, April 20, 2001 3:07 PM
Subject: Image size


 The Allaire Developers forum used to have a tag called cfx_imagesize (or
 something close to that). It isn't there any more, or I can't locate it.

 Does anyone know of ANY way to automatically create a thumbnail from an
 image as it is uploaded (with cffile)

 Thanks...




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Image size

2001-04-20 Thread Todd Ashworth

http://devex.allaire.com/developer/gallery/info.cfm?ID=CA3475C6-2830-11D4-AA
9700508B94F380method=Full

Todd Ashworth --

- Original Message -
From: "Skip Ogden" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Friday, April 20, 2001 3:07 PM
Subject: Image size


| The Allaire Developers forum used to have a tag called cfx_imagesize (or
| something close to that). It isn't there any more, or I can't locate it.
|
| Does anyone know of ANY way to automatically create a thumbnail from an
| image as it is uploaded (with cffile)
|
| Thanks...
|
|
|
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Image size

2001-04-20 Thread Peter Froh

I typically use a percentage multiplier (like 25%) for the width and height
to create a thumbnail.  I realize that it's not the best way, especially
since the images will be as large in file size as their "full size"
counterparts, but it is a simple solution.  I guess it only becomes an issue
when the page either has a lot of thumbnails or the file size is large.

Here is the link to the cfx_imagesize website
(http://www.intrafoundation.com/freeware.html).

Peter



-Original Message-
From: Skip Ogden [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 12:08 PM
To: CF-Talk
Subject: Image size


The Allaire Developers forum used to have a tag called cfx_imagesize (or
something close to that). It isn't there any more, or I can't locate it.

Does anyone know of ANY way to automatically create a thumbnail from an
image as it is uploaded (with cffile)

Thanks...
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Image size

2001-04-20 Thread chris

We use cfx_image here.  Works fine.
You can find it in the allaire dex exchange

Chris Martin

-Original Message-
From: Skip Ogden [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 3:08 PM
To: CF-Talk
Subject: Image size


The Allaire Developers forum used to have a tag called cfx_imagesize (or
something close to that). It isn't there any more, or I can't locate it.

Does anyone know of ANY way to automatically create a thumbnail from an
image as it is uploaded (with cffile)

Thanks...
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Image size

2001-04-20 Thread Steven A. del Sol

You can still get that tag at CFDEV.COM




At 03:07 PM 4/20/2001 -0400, you wrote:
The Allaire Developers forum used to have a tag called cfx_imagesize (or
something close to that). It isn't there any more, or I can't locate it.

Does anyone know of ANY way to automatically create a thumbnail from an
image as it is uploaded (with cffile)

Thanks...




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Grab image size with CFFile object attributes

2000-08-25 Thread Mark Smeets

Question, you can grab a file size in a CFFile tag when you upload a 
file/image but can you also grab the image height and width?

I could guess but I'm not entirely sure. It makes sense to have something 
like this.

Mark Smeets/stranger0/ICQ #1062196

"Mr. West, not every situation requires your patented approach of shoot 
first, shoot later, shoot some more and then when everybody's dead try to 
ask a question or two" - Wild Wild West

Other Press Webslinger *New and Improved*
http://otherpress.douglas.bc.ca/

Official Splitting Adam Homepage
http://www.splittingadam.com/

Over the Wall Productions and Web Designs
http://www.solarcourt.com/

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Grab image size with CFFile object attributes

2000-08-25 Thread Rich Wild

http://devex.allaire.com/developer/gallery/info.cfm?ID=CA34726E-2830-11D4-AA
9700508B94F380method=Full

CFX_GifGD is what you need. Very very cool tag. Does mountains of stuff. A
godsend.

There are others though.

---
Rich Wild
Senior Web Designer

---
e-mango.com ltd  Tel: 01202 587 400
Lansdowne Place  Fax: 01202 587 401
17 Holdenhurst Road
Bournemouth   Mailto:[EMAIL PROTECTED]
BH8 8EW, UK  http://www.e-mango.com
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of e-mango.com ltd,
unless otherwise explicitly and independently indicated
by an authorised representative of e-mango.com ltd.
---




 -Original Message-
 From: Mark Smeets [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 25, 2000 5:45 AM
 To: [EMAIL PROTECTED]
 Subject: Grab image size with CFFile object attributes
 
 
 Question, you can grab a file size in a CFFile tag when you upload a 
 file/image but can you also grab the image height and width?
 
 I could guess but I'm not entirely sure. It makes sense to 
 have something 
 like this.
 
 Mark Smeets/stranger0/ICQ #1062196
 
 "Mr. West, not every situation requires your patented 
 approach of shoot 
 first, shoot later, shoot some more and then when everybody's 
 dead try to 
 ask a question or two" - Wild Wild West
 
 Other Press Webslinger *New and Improved*
 http://otherpress.douglas.bc.ca/
 
 Official Splitting Adam Homepage
 http://www.splittingadam.com/
 
 Over the Wall Productions and Web Designs
 http://www.solarcourt.com/
 
 __
 ___
 Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Grab image size with CFFile object attributes

2000-08-25 Thread lsellers


 Question, you can grab a file size in a CFFile tag when you upload a
 file/image but can you also grab the image height and width?

 I could guess but I'm not entirely sure. It makes sense to have something
 like this.

Personally I use CFX_ImageInfo,
http://www.intrafoundation.com/freeware.html. But then I wrote it, so you'd
expect that, eh? :)

--min

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Image Size

2000-04-06 Thread Vinicius Caldeira Carvalho

I guess I've already seen this question but...
Is the a CF/CFX tag that tells me the size of an image sent by the user?
This value must be returned to me in a way that I could check if the
Width/height does not override my maximum setting.
Thanks
vinicius


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Image Size

2000-04-06 Thread Seth Petry-Johnson

I guess I've already seen this question but...
Is the a CF/CFX tag that tells me the size of an image sent by the user?
This value must be returned to me in a way that I could check if the
Width/height does not override my maximum setting.


The CFX_GIFGD tag can read an image and will return a slew of information
about it, including the width and height.  It can even resize the image for
you if you find that the one the user sent is too big.

It should be available on the Allaire developer exchange.

Regards,
Seth Petry-Johnson
Argo Enterprise and Associates



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.