Error sending PNG to API

I am sending images using the API directly rather the using Pixlet. I am using an unanimated PNG. This is the body of the of post I’m sending. I encode the PNG in base64 as suggested by the API documentation and confirmed it decodes into a proper PNG.

{"image": "iVBORw0KGgoAAAANSUhEUgAAAEAAAAAgEAIAAAB9bzWQAAADG0lEQVR4nO2Xa0hTYRjH530n0k0dXjCmzul0x9TS7KJpEEqmmBSKeSvo4gfNFLt8ylb5QUFKySQKcpamRpiioJTRRvNG5ow0ojRGH+qLmZm4UOfJ532FpNOOg7bEeH8/eBnbODz8/7zvOYfHIxAIBAKBsJYwvD5esAVXwiqQAtYYdmSL1r276JHOhGuUtzLklbScL4p4ERRObdI7q7TyOj2lGpAr0xvjQgVJocP+Kfw9108Vb/Qs5C7g9CI4fRKcvQN+iARt5kCO4ZYsQaqQK3+MZUANcgh5F2mFtGRmZoUd2bRT96cgjeytt4e97rNnx2GZDldisOs5SzddLjkx6lZ6UXFM4bZcFV65CwiMA11vgVYGcGoeTM0Gjc1WxIDNSHYBIgakkLgqNTIEadHQzAk7spaDZRvEooKqtARX0cqIcQFh2gB3fv6EqCs6sNv0AnDoWMljEO8D6Q3Q2GxiBvRBsgvgMb90RuJ94IK0ZGZmhR1Z+fm8ePeuo7WJucKHkQNyNXXmiHK/UqhYcNC00Be8dR46O0Ve9aEZl8qtL2UNfM3z3TezfVtNKWBIDDJRYMMzEH/PMdyS3AVcRX5D5iKXS1kvsCPDx0tGQ/xTQb3BpqeYbsq6ty9RsNBRUzHpHWRtsE7llb6RN0qkM+8CHsT412/vp8sopek7wGccnGXAlAKQY7hVC8AKkVokjbRgZOaFHVllYWGnxwRe8fGCP1eNFb32pCXjXtvsbVcePn5jXgv2YaYXgB1+AtZ8BTmGM7EAbBUyE2nByMwLO7LBiNosv+iURzF6x+UCjt9OvuKchXdAUnvUe8do7Za6Nj/VR3HrOZntjr7gA9QgdwH0FxBH7zAJfk8Gc4RgNQOik+kPERsrwI0B8X9skL3IcOS/yu+vMfYYWlyREew6FT4YmM+fSmveW+c0g+8Bo/T9TGn/zt7NbtQPekQS4VCpjq3R+qZzF9AWBepzQHz4qOdB6zkQHx0C5G/DcRSAn5GGkfgKl5Dr/h7wL1/EHBiwHbnOgjMX5E2YQCAQCAQCgUAgEAgEAoFAIBAIhP+Yn+8NRzsYA6sFAAAAAElFTkSuQmCC","installationID": "TransSee"}

I am getting this error message I receive

{"code":2,"message":"encoding image for device: Error assembling animation","details":[]}

It looks like the service doesn’t like 16-bpp PNGs. If I convert that to an 8-bpp PNG, the API accepts it.

1 Like