image ianipulation component?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ralphuk100
Forum Newbie
Posts: 2
Joined: Mon Aug 25, 2003 5:07 am

image ianipulation component?

Post by ralphuk100 »

Hi,

I am looking for a component that does the following in one go....(whether its free or has to be paid for I am happy to do either).

1) It needs to upload 1 image - the path coming from a form field (file field), but be able to add more images if necessary.

2) Once uploaded it needs to resize this image to a pre-designated size, and if the image is smaller than this size it should just add a border not stretch

3) a thumbnail image should be created

4) both of these images should be compressed by a pre-designated ratio

5) the image name and thumbnail name should be written to the correct fields in the mySQL db.

6) NOT ESSENTIAL - should watermark the image on upload

Does anyone know of a component to do this? I am usually an ASP programmer and have bought components for this language which do exactly what I want but I have not had the need to do this for PHP before. Any advice appreciated.
User avatar
Orkan
Forum Commoner
Posts: 32
Joined: Sun Aug 24, 2003 9:07 am
Location: Ukraine
Contact:

Image resize

Post by Orkan »

I don't know the readymade library, but I can help you a little.
The most difficult in it is work with image resize. I have PHP script that does that work... If you're interested - I can send it to you and you can modify it for your need.
ralphuk100
Forum Newbie
Posts: 2
Joined: Mon Aug 25, 2003 5:07 am

Post by ralphuk100 »

That would be great if you could please Orkan. My email address should be on my profile :-)
User avatar
Orkan
Forum Commoner
Posts: 32
Joined: Sun Aug 24, 2003 9:07 am
Location: Ukraine
Contact:

Post by Orkan »

No... there is no e-mail in your profile... I'll send PM.
Post Reply