Image Sizing

Alright, I am making a image uploader.

But instead of displaying just the image, I wanna do a template with whatever I want on the sides.

But, trick is, I have a fixed size template, so I need it so if the uploaded image is bigger than either the width or height, it scales it down while keeping everything to scale the way it was taken… Any ideas on how to do this?

Thanks!

2 ways that i can see, use the gd library in php or hardcode the sizes in the img tag.

How would I use those.?

I am not familiar with gd libraries.

you may find these tutorials useful for working with the GD library.

http://www.theonepointwebdesign.co.uk/web-design-and-development-blog/tutorials/php-tutorials/resize-images-on-upload/

http://www.theonepointwebdesign.co.uk/web-design-and-development-blog/tutorials/php-tutorials/upload-images-through-a-simple-form/

Sponsor our Newsletter | Privacy Policy | Terms of Service