Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Get Image Width, How to
Old 05-19-2005, 09:38 PM Get Image Width, How to
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
I want to be able to get the dimension's from images that are stored in a MYSQL Database, however the images are remote images, not on my server..The table in my db is called 'products', and the field is called 'image_url'. All I want to be able to do, is search for images that are no bigger than 'width' (width would be a number like 100px) as an example.

All I want to be able to do, is display these, so I know the url is, not like I want to display the results in the browser, just display it in the database.

Does anyone know the best way to accomplish this?

-Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is online now
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-20-2005, 04:45 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Can you run scripts on the image server?

other than that you would have to open each image in a browser and use javascript to get the size.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-20-2005, 09:43 AM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
PHP has a built in function:
$size = getimagesize("http://www.example.com/gifs/logo.gif");

$size will be an array, to get width use this:
echo $size["width"];
Anacrusis is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Get Image Width, How to
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29498 seconds with 12 queries