ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 9th, 2003, 04:52 PM
A3M0N_ A3M0N_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Summervile, SC
Posts: 115 A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 3 h 59 m 49 sec
Reputation Power: 7
Send a message via AIM to A3M0N_ Send a message via MSN to A3M0N_ Send a message via Yahoo to A3M0N_
getting image attributes....

is there anyway to grab the HEIGHT and WIDTH attributes of an image? and dump them into a variable?

thanks!

later

Reply With Quote
  #2  
Old December 10th, 2003, 08:10 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,648 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 12 h 8 m 8 sec
Reputation Power: 53
There is no way to do this natively in CF. However, there is the cfx_image tag which I believe does this, and is also free I believe. And if you are using CFMX, you can of course invoke any of the Java API classes for image manipulation.

Reply With Quote
  #3  
Old December 10th, 2003, 09:24 AM
A3M0N_ A3M0N_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Summervile, SC
Posts: 115 A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 3 h 59 m 49 sec
Reputation Power: 7
Send a message via AIM to A3M0N_ Send a message via MSN to A3M0N_ Send a message via Yahoo to A3M0N_
thanks alot, i'll look into the cfx tag.

later

Reply With Quote
  #4  
Old December 12th, 2003, 03:12 PM
A3M0N_ A3M0N_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Summervile, SC
Posts: 115 A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 3 h 59 m 49 sec
Reputation Power: 7
Send a message via AIM to A3M0N_ Send a message via MSN to A3M0N_ Send a message via Yahoo to A3M0N_
hmm, i grabbed the tag, and i thought i installed it correctly, but when i run the page that i'm using the tag on, i get "Unable to load library". i'm running CF MX 6.1, on RedHat Linux 7.2. thanks people!!

later

Reply With Quote
  #5  
Old December 13th, 2003, 12:58 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,648 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 12 h 8 m 8 sec
Reputation Power: 53
Actually cfx_image may not work with CFMX. How about trying this tag, cfx_imageInfo:

http://www.cfmcentral.com/gallery/d...fm?script_ID=52


If you want to try, you can also do this through the Java Imaging API but it would take more work I think:

http://www.macromedia.com/devnet/mx...jai_images.html

Reply With Quote
  #6  
Old December 13th, 2003, 01:35 PM
A3M0N_ A3M0N_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Summervile, SC
Posts: 115 A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 3 h 59 m 49 sec
Reputation Power: 7
Send a message via AIM to A3M0N_ Send a message via MSN to A3M0N_ Send a message via Yahoo to A3M0N_
wow thanks, i'll check it out.

later

Reply With Quote
  #7  
Old December 15th, 2003, 04:36 PM
A3M0N_ A3M0N_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Summervile, SC
Posts: 115 A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 3 h 59 m 49 sec
Reputation Power: 7
Send a message via AIM to A3M0N_ Send a message via MSN to A3M0N_ Send a message via Yahoo to A3M0N_
i still get "Unable to load library" with cfx_ImageInfo. what am i doing wrong here? thanks!

later

Reply With Quote
  #8  
Old December 15th, 2003, 08:55 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,648 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 12 h 8 m 8 sec
Reputation Power: 53
Honestly I'm not sure, I don't often use CFX tags, and have never messed with CFMX under Linux. Anyone else have any ideas?

One other option is that with one of the Macromedia Developer Resource Kits, they have created a CFC wrapper for calls to the Java Imaging API. I think it would cost about $50 or $100 to get it that way, but at least it should be guaranteed to work because it's directly using the Java API.

Reply With Quote
  #9  
Old December 15th, 2003, 09:33 PM
A3M0N_ A3M0N_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Summervile, SC
Posts: 115 A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 3 h 59 m 49 sec
Reputation Power: 7
Send a message via AIM to A3M0N_ Send a message via MSN to A3M0N_ Send a message via Yahoo to A3M0N_
thanks alot for the help. i'll continue to look around for some info on how to install this tag.


later

Reply With Quote
  #10  
Old December 17th, 2003, 10:15 AM
DeepDown DeepDown is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Netherlands
Posts: 99 DeepDown User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 1 m 8 sec
Reputation Power: 6
- Did you register the tag in CF Administrator?
- Is ColdFusion allowed to access the directory where the image-info-library is installed?
__________________
** Don't expect me to code your needs, but if I am able to help, I'm willing. Shout, grab and use the hand!
** Man can no more own the land we walk upon, as they can lay claim on the air that we breath
** DeepDown I'm addicted to structures.... ohw and music
** Almost forgot I had an account here [*o*]

Reply With Quote
  #11  
Old December 17th, 2003, 05:43 PM
A3M0N_ A3M0N_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Summervile, SC
Posts: 115 A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 3 h 59 m 49 sec
Reputation Power: 7
Send a message via AIM to A3M0N_ Send a message via MSN to A3M0N_ Send a message via Yahoo to A3M0N_
Quote:
- Did you register the tag in CF Administrator?

yes, i did that.

Quote:
- Is ColdFusion allowed to access the directory where the image-info-library is installed?

i'm not sure. what/where is the image-info-library? i don't see why it wouldn't be able to access it.

thanks!

later

Reply With Quote
  #12  
Old December 18th, 2003, 02:57 AM
DeepDown DeepDown is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Netherlands
Posts: 99 DeepDown User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 1 m 8 sec
Reputation Power: 6
I don't know how this works on Linux though...
... but in Window it works like this:


First of all:

you should know where the library resides, since you registered the tag in CF-Administrator ...

So you have an ImageInfo.dll (on linux it's probably ImageInfo.so) located somewhere on the server's filesystem, but if ColdFusion is not allowed to access the directory where that DLL (so) is located, the library will fail to load...

I tend to put all the custom tags I use, under the <cf_root>/CustomTags to avoid these problems...

Hope that helps you out!

Reply With Quote
  #13  
Old December 18th, 2003, 08:46 AM
A3M0N_ A3M0N_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Summervile, SC
Posts: 115 A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 3 h 59 m 49 sec
Reputation Power: 7
Send a message via AIM to A3M0N_ Send a message via MSN to A3M0N_ Send a message via Yahoo to A3M0N_
so all you have to do is put your *.dll in a folder, then register it in cf admin? no other files need to be on the server, just the dll?

maybe i'll move the dll and re-regster it.

thanks!

later

Reply With Quote
  #14  
Old December 19th, 2003, 07:49 AM
DeepDown DeepDown is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Netherlands
Posts: 99 DeepDown User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 1 m 8 sec
Reputation Power: 6
Keep in mind that a DLL is a Windows Dynamic Link Library... But normally that's all you need to do...

Reply With Quote
  #15  
Old January 14th, 2004, 10:36 AM
A3M0N_ A3M0N_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Summervile, SC
Posts: 115 A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level)A3M0N_ User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 3 h 59 m 49 sec
Reputation Power: 7
Send a message via AIM to A3M0N_ Send a message via MSN to A3M0N_ Send a message via Yahoo to A3M0N_
yeah, we just migrated to a new WinServer2K3 machine, i'll try this again in a few days probably.... i'll post the outcome.

thanks for all the help people.

later

Reply With Quote
Reply

Viewing: