Reputation: 13
I'm following this example for imagecreatefromstring()
.
It happens when I'm using the image data that I'm working with. However even when I'm using the the base64 string for the image from the manual (linked above), I still get the same issue. imagecreatefromstring isn't returning false either. However, on Safari and Chrome, I just get a broken image. Here's a screenshot of what it looks like on Chrome.
Upvotes: 0
Views: 380
Reputation: 13
The problem was that there was a PHP error that was printed right before the createimagefromstring chunk of code was called, thereby breaking the image. The problem for my code specifically was related ldap_close().
Upvotes: 1