Resizing with GD outputs black images

前端 未结 4 1068
抹茶落季
抹茶落季 2021-01-17 07:35

What can cause php gd to produce a black image after resizing? The following code always outputs a black image for every valid jpeg file.



        
4条回答
  •  耶瑟儿~
    2021-01-17 08:25

    Try this code to see the errors that are happening:

    
    

    So, if PHP is encountering an error, it will show it on the screen. If there is no error, the screen will show blank.

提交回复
热议问题