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.
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.