Getting a thumbnail
AnsweredI use gem 'boxr', I want to get a thumbnail of the uploaded file, the code is:
image = client.thumbnail( file, min_height: 300, min_width: 300, max_height: nil, max_width: nil )
But instead I get this image
How do I get a thumbnail of a uploaded file, but not this picture with a format image?
-
Unfortunately, the existing thumbnail APIs that is using underneath don't fetch what your are looking for.
The newer APIs will have that https://developer.box.com/v2.0/reference#fetching-a-thumbnail-representation
-
This section (https://developer.box.com/v2.0/reference#fetching-a-thumbnail-representation) is currently unavailable
-
Try this URL
http://developer.box.com/v2.0/reference?showHidden=fed3c#representations
The section is currently hidden, but that link should hopefully show it.
This is our new representation API to fetch the file contents.
-
Working example
Please sign in to leave a comment.
Comments
6 comments