New url format
The old url format is limited: a new one should be created
Extended:
https://host/opname,opkey:value,opkey:value/opname,opkey:value,opkey:value?image=URL
Short, in case one operation take just one parameter:
https://host/opname:value?image=URL
Any option paramter is expressed as key:value and the value can be omitted if it's true
Examples
Output*
https://host/o:jpeg?image=URL
https://host/o:png?image=URL
Progressive
https://host/progressive?image=URL
https://host/progressive:true?image=URL (as before but explicit)
https://host/progressive:false?image=URL
Resize
https://host/rs,s:200x300?image=URL
https://host/rs,s:200x300,m:scale?image=URL
https://host/rs,s:200x300,m:scale,iar?image=URL
https://host/rs,s:200x300,m:scale,iar:true?image=URL (as before but explicit)
https://host/rs,s:200x300,m:fit?image=URL
https://host/rs,s:200x300,m:downfit?image=URL
https://host/rs,s:200x300,m:upfit?image=URL
https://host/rs,s:200x300,m:fill?image=URL
https://host/rs,s:200x300,m:fill,g:ne?image=URL
https://host/rs,s:200x300,m:fill,g:auto?image=URL
https://host/rs,s:200x300,m:downfill?image=URL
https://host/rs,s:200x300,m:downfill,g:ne?image=URL
https://host/rs,s:200x300,m:downfill,g:auto?image=URL
https://host/rs,s:200x300,m:embed?image=URL
https://host/rs,s:200x300,m:embed,b:RRGGBB?image=URL
https://host/rs,s:200x300,m:embed,b:RRGGBB,g:southeast?image=URL
Extract
https://host/ex,x:10,y:30,s:12x90?image=URL
Overlay**
https://host/overlay,url:OVERLAY_URL_ENCODED?image=URL
https://host/overlay,url:OVERLAY_URL_ENCODED,g:nw?image=URL
https://host/overlay,url:OVERLAY_URL_ENCODED,x:100,y:200?image=URL
https://host/overlay,url:OVERLAY_URL_ENCODED,g:nw,watermark?image=URL
https://host/overlay,url:OVERLAY_URL_ENCODED,g:nw,watermark:true?image=URL (same as before but explicit)
Quality
Rotate
https://host/rotate,v:180,b:f1f1f1?image=URL
Flip
https://host/flip:x?image=URL
https://host/flip:y?image=URL
Blur
https://host/blur:50?image=URL
Multiple operations
https://host/blur:50/flip:x/q:10/rs,s:200x300,m:downfill,g:ne/.../...?image=URL
* URL is the encoded url of the target image
** OVERLAY_URL_ENCODED is the encoded url of the overlay image