Pixlr API
Introduction
The Pixlr API enables web developers to use Pixlr applications on their own site. Everything that is done on this site can be done on yours. Added advanced image editing capabilities is very easy.
Using the API is completely free, although if you expect to send us a lot of traffic please warn us beforehand.
How it works
The /editor and /express pages takes special parameters either as querystring or form parameters. You dont have to do anything special to get the application to recognize the parameters, we check for them on every request.
Javascript library
You can use the parameters specified below in anyway you want, but if you just want something simple and quick our javascript library is probably the thing to use.
We have a site with examples on how to use the js library: developer.pixlr.com
You can download the library here.
In parameters (what you send to us)
| Name | Description |
| referrer | The name of the referring service for example "Your site name" or "Facebook" |
| exit | The URL to send the visitor if the user click exit/close |
| image | A URL to the image or the post raw data of the image to open |
| title | The title of the opened image |
| method |
The way we send the image information, "GET" or "POST", default is "GET"
If you set this to POST then you have to have a crossdomain.xml in the root of your web application. And you need to add pixlr.com to the list of valid domains (or just copy ours) |
| target | The URL to which we send the image information |
| redirect | If you want a different page to be shown after the save (Not to recommend, use the target page) or "false" if you don't want the user to remain in the application after save. |
| locktarget | Remove the possibility for the user to "save to computer" |
| locktitle | Lock the image title so the user can't change it |
| locktype | Lock the save format, values are jpg, png, bmp, pxd or source |
| lockquality | Lock the jpg quality when the user saves the image, values are 0-100 |
Out parameters (what we send to you)
| Name | Description |
| image |
The content of this parameter depends on the value of the "method" in-parameter. If method was GET the value of image is an url to where we saved the image. If method was POST the value of image is the actual image. |
| title | The title of the image the user typed in when saving. |
| type | The type of image can be: jpg, png, bmp or pxd. |