@RestController public class ThumbnailController extends Object
| Constructor and Description |
|---|
ThumbnailController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<byte[]> |
thumbnailByUrl(String url,
String size,
String type,
org.springframework.web.context.request.WebRequest webRequest,
javax.servlet.http.HttpServletResponse response)
Retrieves image thumbnails.
|
@RequestMapping(value="/v2/thumbnail-by-url.json",
method={GET,POST})
public org.springframework.http.ResponseEntity<byte[]> thumbnailByUrl(@RequestParam(value="uri")
String url,
@RequestParam(value="size",required=false,defaultValue="w400")
String size,
@RequestParam(value="type",required=false,defaultValue="IMAGE")
String type,
org.springframework.web.context.request.WebRequest webRequest,
javax.servlet.http.HttpServletResponse response)
url - optional, the URL of the media resource of which a thumbnail should be returned. Note that the URL should be encoded.
When no url is provided a default thumbnail will be returnedsize - optional, the size of the thumbnail, can either be w200 (width 200) or w400 (width 400).type - optional, type of the default thumbnail (media image) in case the thumbnail does not exists or no url is provided,
can be: IMAGE, SOUND, VIDEO, TEXT or 3D.Copyright © 2019 Europeana Foundation. All rights reserved.