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
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
;
}
..:.:.:.:.:.:.:.:.:.:.:.:.
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
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
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.
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
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.
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
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
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
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
~|
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
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
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?
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
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
-
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
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
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
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
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
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
I dont 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);
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
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
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
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
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
/#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
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
: 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#.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
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
#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
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
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
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
); 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
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
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
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
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]
: [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
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]
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
: 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
: 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
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
thanks
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
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/
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
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.
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
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
, 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
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
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
: 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
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
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
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
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
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
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 (w
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
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 2
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...
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 an
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
o: 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 cffil
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
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
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
.
---
-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
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,
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
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
77 matches
Mail list logo