php resize image
- by haohan
I have a class to read and output the image content, if $width is set, it will resize the image, and then output it.
If I call the function like this $image-readImage('123.jpg'); , it can output the image file correctly, but when I call $image-readImage('123.jpg'); , it just display a black image with resized width & height.
And I tried to…