cancel
Showing results for 
Search instead for 
Did you mean: 

Preview functions about JPG/GIF/PNG

kerby
Champ in-the-making
Champ in-the-making
JPG/GIF/PNG files can be previewed in share website,but can't be previewed with REST API: /alfresco/service/api/node/workspace/SpacesStore/<doc id>/content/thumbnails/webpreview. Other files like pdf/doc/ppt/txt work fine both in share and REST API.
Does anyone know what the problem is?
3 REPLIES 3

mikeh
Star Contributor
Star Contributor
Because Flex/Flash can display images natively, these are passed directly to the web previewer swf, rather than transforming to .swf first.

Thanks,
Mike

kerby
Champ in-the-making
Champ in-the-making
Because Flex/Flash can display images natively, these are passed directly to the web previewer swf, rather than transforming to .swf first.

Thanks,
Mike
Why images can not be previewed by REST API?

mikeh
Star Contributor
Star Contributor
Because the webpreview content is in .swf format and images are not transformed to swf.

You could wire up a transformer to do it – I guess you'd install png2swf (also from the swftools family) then transform all images to .png then to .swf in a multi-step transformer.

Thanks,
Mike