Skip to main content
Question

Getting a thumbnail

  • May 22, 2025
  • 6 replies
  • 15 views

Forum|alt.badge.img

I 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

 

BOX_trgvfyx3rmzwoko1u7sfcoi9s1t4meb5.png

How do I get a thumbnail of a uploaded file, but not this picture with a format image?

6 replies

Forum|alt.badge.img

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


Forum|alt.badge.img

Forum|alt.badge.img

Yes,, is there any chance we can do it, it concerns my company as well. We are force to move from Crocodoc/BoxView and thumbnail generating was one of the major features we used before.


Forum|alt.badge.img

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.


Forum|alt.badge.img

Forum|alt.badge.img

Thanks a lot, exactly what I needed.