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 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');

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

    点赞 评论 复制链接分享