Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image preprocessor

Status
Not open for further replies.

elquixiote

Technical User
Nov 30, 2002
99
MX
Hi fellowes! Happy new year.

I'm developing a website and I want to upload images. My problem is about image sizes. I don't want the user has to know about sizes, so I have to upload images in standar sizes. I think I could achieve this preprocessing images before uploading. Any hint about how this can be accomplished? or some freeware image processors?

el Quijote ...

 
Photoshop. Though not really sure that you mean about not wanting the user to know about sizes and using standard sizes. Standard sizes for what? Print? Photo? Is that what you mean?

Wow JT that almost looked like you knew what you were doing!
 
Happy new year el Quijote,

You can actually do it server side if you like. If your host supports PHP and has the GD library...

Have a peek in the PHP forum if you like: forum434

Or have a look at this (didn't try it myself):

Regards


Jakob
 
You can't "preprocess" files on a user's PC from a web page. How would you like it if you visitied my site and I started editing your files? Not even IE has security holes that big.

You have very little control over what users upload to you - you just have to deal with whatever they send you. So when the file's been uploaded, you'll need to chack that it's a valid image format, that it's not too big/too small, and do whatever resizing or other processing you require. That's going to mean some kind of server-side processing. You might want to look into the ImageMagick library if it's available in whatever language you're going to be using.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Just put a note on your site about it taking a while to upload large images. Then give links to tutorials on how to use common software packages to reduce the image size. Even provide links to some free, easy to use software that can do the resizing (like the one in XP Power Toys). Make it as easy as possible for the user to learn to do it themselves and most of them will learn rather than wait for their files to upload.

 
Thanks fellows for your promtly responses.

I think I didn't expose my problem properly. When I'm taking about pre-processing I'm refering to do some about image sizes on the client-side out of web environment, and about standar sizes I'm refering to one to three set of images dimensions arbitrarily defined with my user.

I'll do the links you are suggesting me.

Thanks again...

El Quijote ..

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top