A Pixlr fornece uma API para permitir que desenvolvedores de terceiros integrem os robustos recursos de edição da Pixlr em seus próprios aplicativos, promovendo um ecossistema dinâmico de ferramentas e soluções criativas.
Embedding Pixlr Applications into your own applications allows you to seamlessly integrate powerful image editing features into your products. This is done by opening the Pixlr Application in an iframe and using postMessage to communicate between the page and the iframe.
While it is possible to directly communicate with the Pixlr Application through internal protocols, we highly recommend using the official Pixlr npm package for a more stable integration experience.
Make sure you have an API key and secret.
An API key and secret can be created under the Developer tab in My Account.
Validate that you can generate a JWT token.
Use your API key in the sub field and sign the token using API secret.
JWT tokens should only be generated on the server-side to avoid leaking credentials!
Add the official Pixlr npm package to your package.json