duanbei1903 2014-05-31 01:08
浏览 9
已采纳

调整红色照片图像? [关闭]

I have a php utility that allows me to "fix" images uploaded to my web site (rotate, lighten/darken). A lot of photos come in way to reddish, and I was wondering if anyone has found a way to affect color balance. I don't see any obvious way to use the GD filtering functions to do it. Don't be concerned about controlling it, I choose from a presentation of several versions of the changed images, so any color adjusting solution would just apply the changes in degrees and a human would make the final choice.

  • 写回答

1条回答 默认 最新

  • dsj1961061 2014-05-31 01:19
    关注

    Image filter is your choice to present such image to the user and let him select the appropriate looking one. below is a sample from http://www.phpied.com/image-fun-with-php-part-2/

    $image = imagecreatefrompng('nathalie.png');
    imagefilter($image, IMG_FILTER_COLORIZE, 0, 100, 0);
    imagepng($image, 'img_filter_colorize_0_100_0.png');
    imagedestroy($image);
    

    So you can present few images with added green, added blue, added red etc and let user to choose the correct image.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?