如何在php中编辑后保存图像

时间:2013-04-06 07:38:55

标签: php javascript pixastic

我创建了一个简单的图像编辑器,具有亮度,对比度和去饱和度等效果。我已经在www.pixastic.com上使用了这个pixastic功能。该功能正在成功运行,但我不知道如何用调整后的图像替换原始图像和效果。这是我用过的代码

<script>
var pixastic_parseonload = true;
</script>
<script src="pixastic.core.js" type="text/javascript"></script>
<script src="actions/desaturate.js" type="text/javascript"></script>
<body>
<form name="form1" action="index.php" enctype="multipart/form-data" method="post">
<p>Image to use:</p>
<img id="scream" class="pixastic <?php echo @$_POST["butn1"];?>" src="Desert.jpg" alt="The Scream" width="220" height="277" name="image1">
<button value="pixastic-desaturate()" name="butn1" >Desaturate</button>
</form>
</bode>

1 个答案:

答案 0 :(得分:0)

也许你需要改变这个:

<button value="pixastic-desaturate()" name="butn1" >Desaturate</button>

用这个:

<input type="button" name="pixastic-desaturate" VALUE="Click to process the image" onClick="pixastic-desaturate();">
相关问题