English 中文(简体)
图五 PHP
原标题:Image Manipulation PHP

I am creating facebook app in which I have user image as background image and have a default cap image which user can move around. After user has placed the overlayed image(a hat) over the right place he clicks save This is where I am struck and like to know how can I save the background + where user placed hat as single image, if this makes sense. I donot know how to approach this whether these image can be saved as one or do i get positions where the other image was placed If someone can suggest

问题回答

如果你使用jquery,检查职位。 这将获得与父母(应当为后遗体形象)有关的帽子(顶、左面值)。

关于拖拉帽子,用阵地的价值观更新了一些隐藏的投入。 现在,当你提交表格时,你可以担任电离层层层层层层层层层层X/Y级职位,或将图像储存在数据库中,这样你就可以在紧接电线时把帽子放在正确的位置上。

你们需要利用javascript提取安置坐标,然后将这些坐标转至PHP。 由于我对你的法典没有任何具体内容,只能给你:

(1) 找到帽子图像位置坐标

(2) 对应帽子与头部的外围工程

3) 将与你可能需要处理的请求的所有信息相提并论

4) 利用GD把帽子对头部形象进行图象,并节省照片

5) 显示或输出与图像的联系......

这是否有助于?

Check out ImageMagick
For reference Check how Imagemagick Overlay of image onto another image is done





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签