Image settings

How to change the retrieved picture

If you want to change the default image settings you have to add them between /r/ and /u/ as shown here:

https://www.flowkit.app/s/<API_KEY>/r/<IMAGE_SETTINGS>/u/<URL_TO_YOUR_FILE>

For example:

https://www.flowkit.app/s/demo/r/rv:15,rh:-45/u/https:/raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/MaterialsVariantsShoe/glTF/MaterialsVariantsShoe.gltf

All image settings can be set as a comma (,) separated key-value list in the following format:

<KEY>:<VALUE>

You can find a list of all possible image settings below

Image Params

rv - rotation vertical - default: 0

Controls how far the camera is rotated up or down.

Examples:

  • rv:45 means the camera is rotated 45 degrees up

  • rv:-70 means the camera is rotated -70 degrees down, showing the object from below

rh - rotation horizontal - default: 0

Controls how far the camera is rotated to the left or right.

Examples:

  • rh:45 means the camera is rotated 45 degrees to the right

  • rv:-70 means the camera is rotated -70 degrees to the left

s - size- default: 1024

Set the resolution of the returned image. Images are always square.

Examples:

  • s:256 means the returned image has a resolution of 256x256 pixels

Good to know

The returned image has by default the type png.

Last updated