Image Factory

This service offers images for other websites, identified by either the canto_id or asset_id.
Whenever possible, use the canto_id, as the asset_id will be automatically converted to it.

The maximum size of the image is 500x500 pixels for the box and size parameter.

Usage

BaseUrl: /imf/{CANTO_OR_ASSET_ID}/ or /im/imf/{CANTO_OR_ASSET_ID}/

Parameters

Name Description Parameter Default Always Active
size Set Image size to 123x456 pixel, will not change the ratio
  • x → width
  • y → height
/s,x,123,y,456/ 500x500 Yes
box Set the Image to a box of 123x456 pixel, do not stecht the image
  • w → width
  • h → height
/bo,w,123,h,456/ 500x500 Yes
channel Create a grayscale using an channel /cs,c,{r,b,g,c}/ c No
brightnes Set the brightness of the image /b,a,123/ 0 No
gamma Set the gamma of the image /g,a,1/ 0 No
mirror Mirror the image horizontal or vertical /m,d,{h,v}/ No
rotate Rotate the image:
  • a → Angel
  • b → background (optional)
/r,a,90,b,{RRGGBB}/ 0 No
format Set the output format (jpg,png,gif,webp) /f,{j,p,g,w}/ webp Yes
text Add text to an image:
  • c  {RRGGBB} → Color
  • fs {px} → Font-size
  • fy {p,b (bold),italic} → Font-style
  • p  {t,c,b / r,c,l} → Position
  • ox {px} → Offset-x
  • oy {px} → Offset-y
  • r {angle} → Rotate
  • s {RRGGBB} → Stroke
  • sw {1-10} → Stroke-width
  • a {t,f} → Antialias
/t,{t,c,fs,fy,p,ox,oy,r,s,sw,a}/ c  = 00998a
fs = 16
fy = p
p  = br
No

If you want to use multiple parameters, you have to use the / as separator.

Example: /imf/12345/s,123,y,456/bo,w,123,h,456/
Example: /imf/400_8499/s,x,400,y,400/f,p/bo,w,400,h,400,p,cc/t,t,Praxis%20Partner,s,0045a5,fs,32,sw,2,p,tc,c,ffffff