How customize detail view

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member

How customize detail view

Jump to solution

Newbie question:

I would like to change default image viewer to image viewer with zoom.

Can anyone point me in the right direction or give me advice on how I would achieve this or if it is possible.

thanks.

1 Solution

Accepted Solutions
Highlighted
Senior Member

Re: How customize detail view

Jump to solution

The default image previewer embedded by alfresco does not provide image zoom functionality. In order to get this functionality you can use other previewer which is also provided by alfresco called "WebPreviewer". To use "WebPreviewer" for previewing image files override "web-preview.get.config.xml" file of "Web Preview" webscript and change the plugin value from "Image" to "WebPreviewer" of all  <condition> tags containing mime type of image.

<condition mimeType="image/jpeg">
     <plugin srcMaxSize="2000000">WebPreviewer</plugin>
</condition>

<condition mimeType="image/png">
    <plugin srcMaxSize="2000000">WebPreviewer</plugin>
</condition>

<condition mimeType="image/gif">
    <plugin srcMaxSize="2000000">WebPreviewer</plugin>
</condition>‍‍‍‍‍‍‍‍‍‍‍

 The WebPreviewer requires Flash plugin installed in a browser.

Thanks,

Kalpesh

www.contcentric.com

View solution in original post

3 Replies
Highlighted
Senior Member

Re: How customize detail view

Jump to solution

The default image previewer embedded by alfresco does not provide image zoom functionality. In order to get this functionality you can use other previewer which is also provided by alfresco called "WebPreviewer". To use "WebPreviewer" for previewing image files override "web-preview.get.config.xml" file of "Web Preview" webscript and change the plugin value from "Image" to "WebPreviewer" of all  <condition> tags containing mime type of image.

<condition mimeType="image/jpeg">
     <plugin srcMaxSize="2000000">WebPreviewer</plugin>
</condition>

<condition mimeType="image/png">
    <plugin srcMaxSize="2000000">WebPreviewer</plugin>
</condition>

<condition mimeType="image/gif">
    <plugin srcMaxSize="2000000">WebPreviewer</plugin>
</condition>‍‍‍‍‍‍‍‍‍‍‍

 The WebPreviewer requires Flash plugin installed in a browser.

Thanks,

Kalpesh

www.contcentric.com

View solution in original post

Highlighted
Master

Re: How customize detail view

Jump to solution

Be aware though that the WebPreviewer is Flash based which you might not want to use. You could also hook in any custom previewer component that you or someone in the community has developed via the web-preview.get.config.xml, e.g. Loftux has developed "Zoomable", an addon providing an image viewer for potentially very high resolution images.

Highlighted
Active Member

Re: How customize detail view

Jump to solution

thanks.

How I would like to hook change other custom previewer ?

Is it the same way?