Image manipulation

Images uploaded to Lucent are compressed and optimized to minimize the overhead. You can use our powerful on-demand manipulation service directly from the URL.

URL Structure

[lucent_server][channel_id][image-filename]?o=[operation]&d=[dimensions]&c=[config]

Request the original image

https://img.lucentcms.com/a97cbb64-98ee-4390-9fcf-81b341756601/demo-dog-6245bd6701f62.jpg

Available Operations

Cover

By default the cover operation is using the smart cropping algorithm to identify the main subject of the image.

?o=cover&d=300x300

demo dog

You can use any of the following modes:

  • center
  • attention
  • entropy
  • face
  • contain
  • inside

Example:

?o=cover:attention&d=300x300

demo dog

Width

Resize your image based on width

Options:

  • withoutEnlargement (false by default)
  • ignoreAspectRatio (false by default)

?o=width&d=400&c=withoutEnlargement:true

demo dog

Height

Height works exactly like width