jeffsimmo85 Posted December 21, 2010 Share Posted December 21, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/222255-php-image-manipulation/ Share on other sites More sharing options...
requinix Posted December 21, 2010 Share Posted December 21, 2010 Like a Polaroid... how? Quote Link to comment https://forums.phpfreaks.com/topic/222255-php-image-manipulation/#findComment-1149725 Share on other sites More sharing options...
jeffsimmo85 Posted December 21, 2010 Author Share Posted December 21, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/222255-php-image-manipulation/#findComment-1149727 Share on other sites More sharing options...
QuickOldCar Posted December 21, 2010 Share Posted December 21, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/222255-php-image-manipulation/#findComment-1149746 Share on other sites More sharing options...
jeffsimmo85 Posted December 21, 2010 Author Share Posted December 21, 2010 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() ? Quote Link to comment https://forums.phpfreaks.com/topic/222255-php-image-manipulation/#findComment-1149862 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.