This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
/
manifest.xml
46 lines (46 loc) · 3.51 KB
/
manifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="UTF-8"?>
<editor id="editor.imagick" enabled="false" openable="true" iconClass="icon-picture" previewProvider="true" formId="diaporama_box" text="328" title="329" icon="frame_image.png" className="IMagickPreviewer" mimes="pdf,svg,tif,tiff,psd,xcf,eps,xls,xlsx,ods,doc,docx,odt,ppt,pptx,odp,rtf,cr2" label="CONF_MESSAGE[Image Magick]" description="CONF_MESSAGE[Image Magick viewer supports PDF and various images formats preview. Requires external library to be installed on the server.]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
<class_definition filename="plugins/editor.imagick/class.IMagickPreviewer.php" classname="IMagickPreviewer"/>
<client_settings>
<resources>
<js file="plugins/editor.imagick/class.IMagickPreviewer.js" className="IMagickPreviewer"/>
<i18n namespace="imagick_editor" path="plugins/editor.imagick/i18n"/>
</resources>
</client_settings>
<server_settings>
<global_param name="IMAGE_MAGICK_CONVERT" type="string" label="CONF_MESSAGE[Convert Path]" description="CONF_MESSAGE[Full path on the server to the 'convert' binary]" default="/usr/bin/convert" mandatory="true"/>
<global_param name="IM_THUMB_QUALITY" type="string" label="CONF_MESSAGE[Thumbs Options]" description="CONF_MESSAGE[Imagick Options used for generating the thumbnails]" default="-quality 65 -density 150 -resize 250 -flatten"/>
<global_param name="IM_VIEWER_QUALITY" type="string" label="CONF_MESSAGE[Images Options]" description="CONF_MESSAGE[Imagick Options used for generation the high scale images]" default="-quality 90 -density 250"/>
<global_param name="IM_CUSTOM_OPTIONS" type="string" label="CONF_MESSAGE[Shared Options]" description="CONF_MESSAGE[You can add any Image Magick options you want here, applied to both thumbs and big images]" default=""/>
<global_param name="ADDITIONAL_ENV_PATH" type="string" label="CONF_MESSAGE[Environment Path]" description="CONF_MESSAGE[Additional path to put in the environment PATH variable before calling the command. Can be necessary for Ghostscript on Mac for example.]" default=""/>
<global_param name="ONTHEFLY_THRESHOLD" type="integer" label="CONF_MESSAGE[Pregeneration Threshold]" description="CONF_MESSAGE[Threshold (in MegaByte) under which the pages are all generated when opening the document, and over which pages are generated on-demand only]" default="5"/>
<global_param name="UNOCONV" type="string" label="CONF_MESSAGE[Unoconv Path]" description="CONF_MESSAGE[Full path on the server to the 'unoconv' binary (see docs)]" default="" mandatory="false"/>
</server_settings>
<registry_contributions>
<hooks>
<serverCallback hookName="node.change" methodName="deleteImagickCache"></serverCallback>
</hooks>
<actions>
<action name="imagick_data_proxy" contentTypedProvider="true">
<processing>
<serverCallback methodName="switchAction"></serverCallback>
</processing>
</action>
<action name="delete_imagick_data">
<processing>
<serverCallback methodName="switchAction"></serverCallback>
</processing>
</action>
<action name="get_extracted_page">
<processing>
<serverCallback methodName="switchAction"></serverCallback>
</processing>
</action>
</actions>
</registry_contributions>
<dependencies>
<pluginResources pluginName="editor.diaporama"/>
<!-- Stream Wrapper must be implemented -->
<activePlugin pluginName="access.AJXP_STREAM_PROVIDER"/>
</dependencies>
</editor>