cancel
Showing results for 
Search instead for 
Did you mean: 

How customize detail view

ffd4229
Champ on-the-rise
Champ on-the-rise

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 ACCEPTED ANSWER

kalpesh_c2
Star Collaborator
Star Collaborator

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 answer in original post

3 REPLIES 3

kalpesh_c2
Star Collaborator
Star Collaborator

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

afaust
Legendary Innovator
Legendary Innovator

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.

thanks.

How I would like to hook change other custom previewer ?

Is it the same way?