How do you convert an image to black and white in PHP

后端 未结 7 1565
长情又很酷
长情又很酷 2020-12-01 14:34

How does one go about converting an image to black and white in PHP?

Not just turning it into greyscale but every pixel made black or white?

7条回答
  •  遥遥无期
    2020-12-01 15:21

    You could shell out to imagemagick, assuming your host supports it. What function do you want to use for deciding if a pixel should be black or white?

提交回复
热议问题