【问题标题】:How to save image after edit in php如何在php中编辑后保存图像
【发布时间】:2023-03-30 03:40:01
【问题描述】:

我创建了一个简单的图像编辑器,具有亮度、对比度和去饱和度等效果。我已经使用了来自 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>

【问题讨论】:

    标签: php javascript pixastic


    【解决方案1】:

    也许你需要改变这个:

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

    用这个:

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

    【讨论】:

    • 谢谢。但这不起作用。我想保存效果后的图像。
    • 我没有正确理解这个问题。包中没有任何预定义的功能可以为您完成这项工作吗?
    猜你喜欢
    • 2013-02-28
    • 2011-11-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-02
    • 1970-01-01
    • 1970-01-01
    • 2013-01-08
    相关资源
    最近更新 更多