The other problem with this is that you need to know the original 
dimensions
of the image programatically to determine your aspect ratio.  To do 
this
manually for one or two images is fine, but when you have a folder with
thousands of images that are displayed dynamically, then this becomes
extremely time consuming and inefficient.

Is there some way to determine the original dimensions programatically?
I've yet to come across anything that is useful to me - CFX_Image is 
not an
option because I do not control the server in question and cannot 
install
DLLs.  Perhaps there's something simpler I've missed?

Shawn Grover

-----Original Message-----
From: Garza, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 4:04 PM
To: CF-Talk
Subject: RE: Custom Tag to resize JPG on the fly...


The only problem with this is you are still downloading the entire 
image
rather than the smaller thumbnail or whatever.  I think the purpose is 
to
reduce the physical size/resolution for a smaller download.

I've been fiddling with the Perl Image Magick modules for this.  
Running the
commands from cfexecute.  It's slow since I don't know Perl all that
well....

Jeff Garza
Lead Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200
[EMAIL PROTECTED]
http://www.spectrumastro.com



-----Original Message-----
From: Mookie Bear [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 07, 2001 4:00 PM
To: CF-Talk
Subject: RE: Custom Tag to resize JPG on the fly...


or, you can use proportions to resize the pic :)

for example, i have a pic that is 237 in width and 500 height.

lets say i want to shrink it down to a width of 150.  to get the 
proportionate height (i knew this would come in handy one day since 4th 


grade!) just solve this equation  (237/500) = (150/x)

blah, u should remember this stuff, right? :)







>From: "Joseph DeVore" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: RE: Custom Tag to resize JPG on the fly...
>Date: Fri, 7 Dec 2001 14:26:23 -0800
>
>CFX_IMAGE by Jukka Manner can do this for you.
>
>You can download it from Lewis Sellers website at
>http://intrafoundation.com/3rdparty/CFX_Image.zip
>
>
>Joseph DeVore
>VeloxWeb Technologies
>
>
>
>-----Original Message-----
>From: Jared Stark [mailto:[EMAIL PROTECTED]]
>Sent: Friday, December 07, 2001 2:10 PM
>To: CF-Talk
>Subject: Custom Tag to resize JPG on the fly...
>
>
>I have been looking on the Allaire website for a tag to thumbnail JPG
>images on the fly.  I've found one that does GIF, but I need JPG.
>Anyone know of a good one that they can recommend?  I must admit that
>I'm tacaņo(AKA cheap), and I'm looking for a free one.
>
>Thanks,
>Jared
>
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to