Jump to content

upload image and resieze..

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
techker

techker

    Programmer

  • Members
  • PipPipPipPip
  • 136 posts
hey guys i have this script that uploads an image to a directroy and put the path and other info in my mysql db.

now i have 2 parts to the uploader..thumbnailer and the other picture uploader...

i need a script that can do both..lol

any leads on how?

this is my page



John | Please use [code], [php], and [quote] tags where appropriate.

Edited by John, 01 October 2008 - 12:15 PM.


#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
Once you upload the image and move it from its temporary location, simply resize it. It is pretty much straight forward.

#3
techker

techker

    Programmer

  • Members
  • PipPipPipPip
  • 136 posts
that what i was thinking..the only thing is ineed to find something that will reseize it but proportional..

#4
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
To resize it, you will need to use the GD library [http://us.php.net/ma.../ref.image.php] which is built into PHP. Unfortunately, I have never resized an image in PHP, so I can't really help you with that algorithm. However, the method that is normally employed with image upload scripts is a thumbnail generation which I think would be significantly easier than resizing the image, but I don't know if that will work out for you.