How can I store an image in the database with Transients API?
imagecreatefrom* functions return an image resource identifier, which when cast to a string (saving an option) will result in an empty string(0) “” container. Raw images created by these functions do not have any specific data structure that can be serialized out of the box. Two solutions I can think of: image files Use imagepng, … Read more