LOGIN
Layers
Layers are exteremly powerful and unique feature of our API. Layers enables creating advanced and amazing manipulations in realtime.
Creating layers
layer=url
Start a new layer with a new image from url. For example: layer=https://thumbapis.s3.amazonaws.com/logo/thumb.white.transparent.png&size=100,100&opacity=0.8&merge=r,b
layer=clone
Start a new layer by cloning the current one. For example: layer=clone&crop=m,0,r,b&saturation=1.5&blur=10&merge=r,0
layer=empty
Start a new layer by creating an empty layer. For example: layer=empty&align=center,bottom&font=HelveticaNeue-CondensedBold,85&color=000000&text=WELCOME&merge=0,0,overlay
layer=map:{options}
Start a new layer with google map image. For example: layer=map:{width:140,height:100,latitude:37.7597357,longitude:-122.4419187,zoom:8}&merge=r-10,b-10
layer=saved:id
Start a new layer with a previously saved layer on the commands stack. For example: saveas=original&grayscale=1&layer=saved:original&crop=40,40,r-40,b-40&merge=c,m
Saving and merging layers
saveas=id
Saves the current layer as id and stayes on the current layer stack. For example: saveas=o&grayscale=1&saveas=g&sepia=0.8&layer=saved:o&crop=0,0,0.33em,b&merge=0,0&layer=saved:g&crop=0.33em,0,0.33em,b&merge=0.33em,0
save=id
Saves the current layer as id and goes back to the previous layer on the stack.
merge=x,y,blending
Merges the current layer to the previous one on the stack. The postion is set by the x,y which can be relative like c,m will center and r-10,b-10 will postion the layer 10px from the bottom and 10px from the right. The default blending is normal.