Marvel comics are famous for their iconic images, and we have provided a number of options for developers in order to optimally present images to your application's users. As always, consult the terms of use and follow the attribution guidelines when displaying images in an application or website.
The Marvel Comics API does not provide full paths to images. Instead, images are represented as a partial path to an image file and the canonical extension of that file. Developers may select from a set of image variants (predefined sizes and ratios) in order to best serve the presentation of their web site or application.
To build a full image path from an image representation
For example, to display the image represented here:
"thumbnail": {
"path": "http://i.annihil.us/u/prod/marvel/i/mg/3/40/4bb4680432f73",
"extension": "jpg"
}
http://i.annihil.us/u/prod/marvel/i/mg/3/40/4bb4680432f73
http://i.annihil.us/u/prod/marvel/i/mg/3/40/4bb4680432f73/portrait_xlarge
http://i.annihil.us/u/prod/marvel/i/mg/3/40/4bb4680432f73/portrait_xlarge.jpg
The following named image sizes and ratios are available for you use products leveraging the Marvel API. We add new image sizes from time to time, so please check this page in the future.