# observe\_media\_preview\_options/3

Source: https://zotonic.com/docs/2282/observe_media_preview_options-3

URI: https://zotonic.com/id/2282

Language: en



Modify the options for an image preview url or tag. This is called for every image url generation, except if the ‘original’ image option is passed. The mediaclass in the options is not yet expanded.

Type:

[foldl](/id/doc_developerguide_notifications#notification-foldl)

Return:

modified property list of image options

`#media_preview_options{}` properties:

- id: `m_rsc:resource_id()|undefined`
- width: `non_neg_integer`
- height: `non_neg_integer`
- options: `proplists:proplist()`

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2282?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2282?language=en>)
