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.

PHP Forum


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



Freelance Jobs

Reply
Displaying image file and pixel size.
Old 10-30-2005, 03:13 AM Displaying image file and pixel size.
Junior Talker

Posts: 2
Trades: 0
I have hunted all over for something like this.. but have not been able to locate it anywhere.. and I have failed horribly at trying to do it myself..


I'm looking for a simple script.. that via a form feald, allow someone to paste in a URL to an image (or two).. and on submit, it'll display the image(s) total(if more then one) file size, and pixel size, and say rather or not it's to big in either, or just right..

This is needed for my sites forum.. I'm allowing people to have a signature but it has to fall under a sellect file size, and over all width and height (had way to many issues with people posting HUGE images in their sigs.. or images with outrageous file sizes).. after asking a few members.. they agreed that a script that can tell them if the images they wish to use is to big or not.. it could help save people from having it disabled.. and for people who don't know how to tell the size of an image..

Roughly to give a better explanation..

Someone puts in addy http://something/file.gif (or jpg, or png)
site would return file size XXXkb, 000x000 pixels

Limit is such size, what you have is fine
or
what you have is over the allowed limit of such size.

more then one file display the same, only total file size of all the images.. and if possible add together the total height of each and display what it is..
width wouldn't matter.. but maybe something that warned one image is over the limit or something?

Please? This would help a lot of my users..
Kirie is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-30-2005, 07:32 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Not with PHP the file would have to be on the server first.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-30-2005, 07:50 PM
Junior Talker

Posts: 2
Trades: 0
Well.. could there be away to upload it temporarily to the site then delete it when the user is done? Just long enough for them to get the information of the file size and sich then delete it?
Kirie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Displaying image file and pixel size.
 

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.20914 seconds with 12 queries