Skip to main content

Image URLs

Brightspot uses an open-source Apache module Dynamic Image Manipulation Service (DIMS) which incorporates ImageMagick to perform image manipulations. Many of Brightspot’s native themes involve cropping and resizing, all of which go through DIMS.

See also:

Understanding image URLs

You can perform customized image editing through DIMS by constructing a URL that has two components: ImageMagick commands and the URL of the raw image stored in Brightspot.

DIMS URL

The following table describes the components of a DIMS URL.

ComponentDescription
AImage editing service to use.
BID of DIMS configuration to use. For information about configuring DIMS, see Configuring a DIMS image editor.
CSignature generated by Brightspot.
DEpoch time stamp when URL expires.
EEditing options.
FEncoded URL of image stored in Brightspot.

The URL in the illustration "DIMS URL" is equivalent to the following ImageMagick command:

1
convert bowtie.jpg -strip -crop 90x58+156+104 -resize 85x55 bowtie-small.jpg

The following examples show the effect of the URL in illustration "DIMS URL."

Raw image (bowtie.jpg)Edited image (bowtie-small.jpg)

The following table lists the editing options you can submit to DIMS.

OptionImageMagick EquivalentDescriptionValid Values
brightness-brightness-contrastImage appears lighter.[−100,+100]
contrast-brightness-contrastEnhances difference between lighter and darker elements of an image.[−100,+100]
crop-cropEliminates area of an image outside of the crop area. Optional offset is available.Integers. For an explanation of this option’s syntax, see Image Geometry.
filter-filterFilter to use when resizing an image.Grayscale, Invert, Sepia
format-formatGraphic format into which raw image is converted.jpg, png, gif
quality-qualityQuality degradation allowed as result of compressing the image.[1,100]
resize-resizeImage’s final size.Integers. For an explanation of this option’s syntax, see Image Geometry.
rotate-rotateDegrees by which image is rotated.Integer.