Jump to content

php image manipulation


jeffsimmo85

Recommended Posts

I am currently working on a website where users can go and upload images and select different types of filters for the images and then let the user see the result of the filter. This has all gone fine and the image filters are working, the only problem I am having is trying to add a function that allows the user to convert the image so that it looks like a Polaroid. I have seen sites that do similar things but cant work out how its done, wondering if someone could shed some light on the whole area?

thanks ;)

Link to comment
Share on other sites

sorry i should have specified, i mean adding a border/frame to the normal image to make it look like it is a polaroid. so i need a blank polaroid outline with the space in the middle for the image and then just scale the image to fit the size  of the space, but i dont know how to combine them into a single image for the user to save if they wish.

Link to comment
Share on other sites

Yeah I know what you mean.

Here's with a border and some text.

http://get.blogdns.com/thumb-create.php?size=400&rotate=0&text=Dynaindex.com&textsize=10&textcolor=aqua&crop=1.1&bordermargin=0&borderwidth=14&bordercolor=pink&imgsource=http://glamouredited.com/howtos/sexylegs/how-get-sexy-legs-Paris.jpg

 

But really for a nicer effect I think be better to get an image of a polaroid  outline (with no center area), and resize the image inside the polaroid border, basically merging the 2 images as one, but the polaroid lays on top after.

 

Here is a basic tutorial on how to add borders, it just a matter of using imageline() and colors.

http://www.roseindia.net/tutorial/php/phpgd/About-AddBorder.html

 

Is some useful other tutorials there for GD also.

Link to comment
Share on other sites

Yeah I know what you mean.

Here's with a border and some text.

http://get.blogdns.com/thumb-create.php?size=400&rotate=0&text=Dynaindex.com&textsize=10&textcolor=aqua&crop=1.1&bordermargin=0&borderwidth=14&bordercolor=pink&imgsource=http://glamouredited.com/howtos/sexylegs/how-get-sexy-legs-Paris.jpg

 

But really for a nicer effect I think be better to get an image of a polaroid  outline (with no center area), and resize the image inside the polaroid border, basically merging the 2 images as one, but the polaroid lays on top after.

 

Here is a basic tutorial on how to add borders, it just a matter of using imageline() and colors.

http://www.roseindia.net/tutorial/php/phpgd/About-AddBorder.html

 

Is some useful other tutorials there for GD also.

 

thanks a lot for that reply, I was hoping to use an  image rather than just a coloured border yes. do you know if it would be possible to do it with imagecopymerge() ?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.