cancel
Showing results for 
Search instead for 
Did you mean: 

Finding thumbnails for items using CMIS queries?

probedb
Champ in-the-making
Champ in-the-making
I'm not quite sure I understand Thumbnails but I had assumed they would be linked in some way to an item.

I'm currently using the Apache Chemistry PHP code and am able to get images and stream the content of those images. However I wanted to be able to fetch a thumbnail associated with the image but I can't see how they link together?

Or am I thinking there is no way to do this just using a query?

Cheers,
Paul.
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
CMIS supports renditions. You can ask an object for its renditions and you'll get those back as a list. A thumbnail is a type of rendition.

I don't use the PHP client day-to-day, but a quick check of the "function coverage" page on the Chemistry web site indicates that get renditions is supported.

So you query for the object you are interested in, then ask that object for its renditions. When you get the list back it should contain both a type (which you can use to find the thumbnail) and an HREF to the actual thumbnail image.

Jeff

probedb
Champ in-the-making
Champ in-the-making
Thanks Jeff I'll give it a go Smiley Happy