Assets from Digizuite can be rendered like any other assets in Episerver - Optimizely either in Content Areas (using the included default controllers) or in XHTML properties or properties are either of the type ContentReference or Url.
...
If you decide to use the Image editor descriptor, you'll be browsing the media library using the dialog seen here. Even though you in this case access the entire media structure - including Episervers Optimizely's 'own' media, the Digizuite folders will be available below the Digizuite folder (a name that can be customized in configuration.
...
A common task is to ensure that the proper media format for any given media asset is delivered. The media format can either be directly controlled in code, as we will see further down, it can be managed by editors in the XHTML fields, but you can also set up rules as a developer to connect it with Episervers Rendering Optimizely's rendering tags - just like the default controllers above takes into consideration. Read more about the rendering tags here: DFE 3.0.0 - 7 Dealing with Media Formats and Rendering Tags
...
To fetch the right media formats we have created some extension methods that come in handy.
- formatid: 50034 | 50035 | 50036 | 50037
- formatname: Big | Medium | Small | Transparent
- tagging: span12 | span8 | span6 | span4
- Default media format: image = 50034, video = 50040
- Through the MediaFormat pass as parameter to extension
- Through the MediaFormat attribute on the content model
- Through tagmapping pass as parameter to extension (in our example case, there is a rule set up in initialization that if the rendering tag is "span4" then it should use mediaformat small for images)
- If nothing is defined we fall back to the default mediaformat (which should be configurable - and can vary based on file type)
...
Likewise, you might need to find a specific cropped version on an asset in code, and using this code you can do just that: