GuideReference
TrainingSupportCommunity
Reference

im_​override

  • Property Manager name: Image and Video Manager: Set Parameter
  • Behavior version: The v2023-01-05 rule format supports the im_​override behavior v1.0.
  • Rule format status: GA, stable
  • Access: Read/Write
  • Allowed in includes: Yes

This specifies common query parameters that affect how image​_manager transforms images, potentially overriding policy, width, format, or density request parameters. This also allows you to assign the value of one of the property's rule tree variables to one of Image and Video Manager's own policy variables.

OptionTypeDescriptionRequires
overrideenum

Selects the type of query parameter you want to set.

{"displayType":"enum","options":["POLICY","POLICY_VARIABLE","WIDTH","FORMAT","DPR"],"tag":"select"}
POLICY

For the name of the Image and Video Manager policy you want to apply.

POLICY_​VARIABLE

Specify that you want to set an Image and Video Manager policy variable from a rule tree variable defined in the property.

WIDTH

A predefined width to constrain the image to.

FORMAT

For browser types.

DPR

For pixel density.

typeselenum

Specifies how to set a query parameter.

override is not POLICY_​VARIABLE
{"displayType":"enum","options":["VALUE","VARIABLE"],"tag":"select"}
{"if":{"attribute":"override","op":"neq","value":"POLICY_VARIABLE"}}
VALUE

Assign a specific value.

VARIABLE

Assign a Property Manager rule tree VARIABLE.

formatvarstring (variable name)

This selects the variable with the name of the browser you want to optimize images for. The variable specifies the same type of data as the format option below.

override is FORMAT
AND typesel is VARIABLE
{"displayType":"string","tag":"input","type":"text"}
{"if":{"op":"and","params":[{"attribute":"override","op":"eq","value":"FORMAT"},{"attribute":"typesel","op":"eq","value":"VARIABLE"}]}}
formatenum

Specifies the type of the browser you want to optimize images for.

override is FORMAT
AND typesel is VALUE
{"displayType":"enum","options":["CHROME","IE","SAFARI","GENERIC"],"tag":"select"}
{"if":{"op":"and","params":[{"attribute":"override","op":"eq","value":"FORMAT"},{"attribute":"typesel","op":"eq","value":"VALUE"}]}}
CHROME

Google Chrome.

IE

Internet Explorer.

SAFARI

Apple Safari.

GENERIC

Generic.

dprvarstring (variable name)

This selects the variable with the desired pixel density. The variable specifies the same type of data as the dpr option below.

override is DPR
AND typesel is VARIABLE
{"displayType":"string","tag":"input","type":"text"}
{"if":{"op":"and","params":[{"attribute":"override","op":"eq","value":"DPR"},{"attribute":"typesel","op":"eq","value":"VARIABLE"}]}}
dprnumber

Directly specifies the pixel density. The numeric value is a scaling factor of 1, representing normal density.

override is DPR
AND typesel is VALUE
{"displayType":"number","tag":"input","type":"number"}
{"if":{"op":"and","params":[{"attribute":"override","op":"eq","value":"DPR"},{"attribute":"typesel","op":"eq","value":"VALUE"}]}}
widthvarstring (variable name)

Selects the variable with the desired width. If the Image and Video Manager policy doesn't define that width, it serves the next largest width.

override is WIDTH
AND typesel is VARIABLE
{"displayType":"string","tag":"input","type":"text"}
{"if":{"op":"and","params":[{"attribute":"override","op":"eq","value":"WIDTH"},{"attribute":"typesel","op":"eq","value":"VARIABLE"}]}}
widthnumber

Sets the image's desired pixel width directly. If the Image Manager policy doesn't define that width, it serves the next largest width.

override is WIDTH
AND typesel is VALUE
{"displayType":"number","tag":"input","type":"number"}
{"if":{"op":"and","params":[{"attribute":"override","op":"eq","value":"WIDTH"},{"attribute":"typesel","op":"eq","value":"VALUE"}]}}
policyvarstring (variable name)

This selects the variable with the desired Image and Video Manager policy name to apply to image requests. If there is no policy by that name, Image and Video Manager serves the image unmodified.

override is POLICY
AND typesel is VARIABLE
{"displayType":"string","tag":"input","type":"text"}
{"if":{"op":"and","params":[{"attribute":"override","op":"eq","value":"POLICY"},{"attribute":"typesel","op":"eq","value":"VARIABLE"}]}}
policystring

This selects the desired Image and Video Manager policy name directly. If there is no policy by that name, Image and Video Manager serves the image unmodified.

override is POLICY
AND typesel is VALUE
{"displayType":"string","tag":"input","type":"text"}
{"if":{"op":"and","params":[{"attribute":"override","op":"eq","value":"POLICY"},{"attribute":"typesel","op":"eq","value":"VALUE"}]}}
policyvar_​namestring

This selects the name of one of the variables defined in an Image and Video Manager policy that you want to replace with the property's rule tree variable.

override is POLICY_​VARIABLE
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"override","op":"eq","value":"POLICY_VARIABLE"}}
policyvar_​i_​mvarstring (variable name)

This selects one of the property's rule tree variables to assign to the policyvar_​name variable within Image and Video Manager.

override is POLICY_​VARIABLE
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"override","op":"eq","value":"POLICY_VARIABLE"}}