The Dynamic Image Application
- Overview of the Dynamic Image API
- Quick start
- Application Settings
- Creating mockups
- Imposition Tutorial
API Overview
API Reference
Image Library Manipulations
When passing images to the Dynamic Image API, you can either provide a URL to download an image or specify a path relative to a root image folder inside DI. We saw this in the previous example when we referred to the rose.jpg
image placed in the long
subfolder.
It is convenient to use when you have a limited set of predefined images (e.g. standard backgrounds, etc.) - instead of having to download files from remote storage, you can just use the local copies.
By default, the root folder is located in the App_Data/assets/images
folder, but you may overrride it in AppSettings.config
file (the ImagePath
param).
DI exposes a Web API to manage these images:
GET api/resources/images
returns a JSON object describing available images.POST api/resources/images/{destination}
uploads images to your server.GET api/resources/images/preview
displays a preview of the specified image.