cancel
Showing results for 
Search instead for 
Did you mean: 

How to change size of imgpreview

bdaniel
Champ in-the-making
Champ in-the-making
Hi there, How can I change the size of the preview image generated by Share (imgpreview)?
Much appreciated.
2 REPLIES 2

malliswar
Champ in-the-making
Champ in-the-making
you can change the size of image-preview in alfresco-5.0.a/tomcat/webapps/share/components/dashlets/imagesummary.css file

in the file you can modify the width and height properties to change the size

.images .thumbnail
{
   width: 100px;
   height: 100px;
   border: 1px solid #888;
   overflow: hidden;
   position: relative;
   box-shadow: 3px 3px 3px #aaa;
}


but the problem here is alfresco converts images into thumnails before rendering them in dashlet so

if you increase the size of thumbnail the image will become blur because of less pixles

bdaniel
Champ in-the-making
Champ in-the-making
I am using the API to retrieve the thumbnail / image preview e.g. myalfresco/api/node/workspace/SpacesStore/[objectid]/content/thumbnails/imgpreview?c=force for use in my application.  Styling the Share images via CSS is not going to help my application.

My understanding is that through the use of renditions / custom renditions I should be able to define a different size for images which I could then retrieve via the same API.  Failing that I supposed that perhaps I could just edit the size of the built in thumbnails / image previews as I don't really mind what size they are in the Share interface.

Andy help would be much appreciated.