<?xml version="1.0" ?>
<form>
    <fields name="config">
        <fields name="editor">
            <fieldset name="editor.filesystem">
                <field name="mode" type="list" default="radio" label="WF_MANAGER_MODE" description="WF_MANAGER_MODE_DESC">
                    <option value="list">WF_OPTION_LIST</option>
                    <option value="images">WF_OPTION_IMAGES</option>
                </field>
                <field name="cache_enable" type="radio" default="0" label="WF_MANAGER_CACHE_ENABLE" description="WF_MANAGER_CACHE_ENABLE_DESC" class="btn-group btn-group-yesno">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>
                <field name="cache" type="text" size="30" default="" label="WF_MANAGER_CACHE_FOLDER" description="WF_MANAGER_CACHE_FOLDER_DESC"/>
                <field name="cache_size" type="number" min="1" default="10" class="input-small" label="WF_MANAGER_CACHE_SIZE" description="WF_MANAGER_CACHE_SIZE_DESC"/>
                <field name="cache_age" type="number" min="1" default="30" class="input-small" label="WF_MANAGER_CACHE_AGE" description="WF_MANAGER_CACHE_AGE_DESC"/>
                <field name="cache_files" type="number" min="0" default="0" class="input-small" label="WF_MANAGER_CACHE_LIMIT" description="WF_MANAGER_CACHE_LIMIT_DESC"/>

                <field type="heading" label="WF_MANAGER_IMAGE_EDITING" />

                <field name="upload_remove_exif" type="radio" default="0" label="WF_PARAM_UPLOAD_REMOVE_EXIF" description="WF_PARAM_UPLOAD_REMOVE_EXIF_DESC" class="btn-group btn-group-yesno">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>

                <field name="upload_quality" type="list" default="100" label="WF_PARAM_UPLOAD_QUALITY" description="WF_PARAM_UPLOAD_QUALITY_DESC">
                    <option value="100">100</option>
                    <option value="90">90</option>
                    <option value="80">80</option>
                    <option value="70">70</option>
                    <option value="60">60</option>
                    <option value="50">50</option>
                    <option value="40">40</option>
                    <option value="30">30</option>
                    <option value="20">20</option>
                    <option value="10">10</option>
                </field>

                <field name="prefer_imagick" type="radio" default="1" label="WF_MANAGER_IMAGE_IMAGICK" description="WF_MANAGER_IMAGE_IMAGICK_DESC" class="btn-group btn-group-yesno">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>

                <field name="resample_image" type="radio" default="0" label="WF_MANAGER_IMAGE_RESAMPLE" description="WF_MANAGER_IMAGE_RESAMPLE_DESC" showon="prefer_imagick:1" class="btn-group btn-group-yesno">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>

                <field name="upload_resize" type="radio" default="1" label="WF_MANAGER_RESIZE_UPLOAD" description="WF_MANAGER_RESIZE_UPLOAD_DESC" class="btn-group btn-group-yesno">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>

                <field name="upload_resize_state" type="radio" default="0" label="WF_MANAGER_RESIZE_UPLOAD_STATE" description="WF_MANAGER_RESIZE_UPLOAD_STATE_DESC" class="btn-group btn-group-yesno">
                    <option value="1">WF_OPTION_ON</option>
                    <option value="0">WF_OPTION_OFF</option>
                </field>
                <field type="repeatable" name="resize_width" label="WF_MANAGER_RESIZE_WIDTH" description="WF_MANAGER_RESIZE_WIDTH_DESC">
                    <field type="number" default="640" class="input-small" step="1" />
                </field>
                <field type="repeatable" name="resize_height" label="WF_MANAGER_RESIZE_HEIGHT" description="WF_MANAGER_RESIZE_HEIGHT_DESC">
                    <field type="number" default="480" class="input-small" step="1" />
                </field>
                <field name="resize_quality" type="list" default="100" label="WF_MANAGER_RESIZE_QUALITY" description="WF_MANAGER_RESIZE_QUALITY_DESC">
                    <option value="100">100</option>
                    <option value="90">90</option>
                    <option value="80">80</option>
                    <option value="70">70</option>
                    <option value="60">60</option>
                    <option value="50">50</option>
                    <option value="40">40</option>
                    <option value="30">30</option>
                    <option value="20">20</option>
                    <option value="10">10</option>
                </field>

                <field name="resize_presets" type="customlist" default="320x240,640x480,800x600,1024x768" multiple="true" class="editable" label="WF_MANAGER_RESIZE_PRESETS" description="WF_MANAGER_RESIZE_PRESETS_DESC">
                    <option value="320x240">320x240</option>
                    <option value="640x480">640x480</option>
                    <option value="800x600">800x600</option>
                    <option value="1024x768">1024x768</option>
                </field>
                <field name="crop_presets" type="customlist" default="4:3,16:9,20:30,320x240,240x320,640x480,480x640,800x600,1024x768" multiple="true" class="editable" label="WF_MANAGER_CROP_PRESETS" description="WF_MANAGER_CROP_PRESETS_DESC">
                    <option value="4:3">4:3</option>
                    <option value="16:9">16:9</option>
                    <option value="20:30">20:30</option>
                    <option value="320x240">320x240</option>
                    <option value="240x320">240x320</option>
                    <option value="640x480">640x480</option>
                    <option value="480x640">480x640</option>
                    <option value="800x600">800x600</option>
                    <option value="1024x768">1024x768</option>
                </field>

                <!--field name="upload_resample" type="list" default="0" class="editable" label="WF_PARAM_UPLOAD_RESAMPLE" description="WF_PARAM_UPLOAD_RESAMPLE_DESC">
            <option value="">WF_OPTION_AUTO</option>
            <option value="72">72</option>
            <option value="100">100</option>
            <option value="150">150</option>
            <option value="300">300</option>
        </field-->

                <field type="heading" label="WF_MANAGER_THUMBNAIL" />

                <field name="upload_thumbnail" type="radio" default="1" label="WF_IMGMANAGER_EXT_THUMBNAIL_UPLOAD" description="WF_IMGMANAGER_EXT_THUMBNAIL_UPLOAD_DESC" class="btn-group btn-group-yesno">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>

                <field name="upload_thumbnail_state" type="radio" default="0" label="WF_IMGMANAGER_EXT_THUMBNAIL_UPLOAD_STATE" description="WF_IMGMANAGER_EXT_THUMBNAIL_UPLOAD_STATE_DESC" class="btn-group btn-group-yesno">
                    <option value="1">WF_OPTION_ON</option>
                    <option value="0">WF_OPTION_OFF</option>
                </field>

                <field name="upload_thumbnail_crop" type="radio" default="0" label="WF_IMGMANAGER_EXT_UPLOAD_THUMBNAIL_CROP" description="WF_IMGMANAGER_EXT_UPLOAD_THUMBNAIL_CROP_DESC" class="btn-group btn-group-yesno">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>

                <field name="upload_thumbnail_width" type="number" default="120" class="input-small" step="1" label="WF_IMGMANAGER_EXT_THUMBNAIL_WIDTH" description="WF_IMGMANAGER_EXT_THUMBNAIL_WIDTH_DESC"/>
                <field name="upload_thumbnail_height" type="number" default="90" class="input-small" step="1" label="WF_IMGMANAGER_EXT_THUMBNAIL_HEIGHT" description="WF_IMGMANAGER_EXT_THUMBNAIL_HEIGHT_DESC"/>
                <field name="upload_thumbnail_quality" type="list" default="80" label="WF_IMGMANAGER_EXT_THUMBNAIL_QUALITY" description="WF_IMGMANAGER_EXT_THUMBNAIL_QUALITY_DESC">
                    <option value="100">100</option>
                    <option value="90">90</option>
                    <option value="80">80</option>
                    <option value="70">70</option>
                    <option value="60">60</option>
                    <option value="50">50</option>
                    <option value="40">40</option>
                    <option value="30">30</option>
                    <option value="20">20</option>
                    <option value="10">10</option>
                </field>
                <field name="thumbnail_folder" type="text" default="thumbnails" label="WF_IMGMANAGER_EXT_THUMBNAIL_FOLDER" description="WF_IMGMANAGER_EXT_THUMBNAIL_FOLDER_DESC"/>
                <field name="thumbnail_prefix" type="text" default="thumb_" label="WF_IMGMANAGER_EXT_THUMBNAIL_PREFIX" description="WF_IMGMANAGER_EXT_THUMBNAIL_PREFIX_DESC"/>

                <field type="heading" label="WF_MANAGER_WATERMARK" />

                <field name="upload_watermark_state" type="radio" default="0" label="WF_MANAGER_WATERMARK_UPLOAD_STATE" description="WF_MANAGER_WATERMARK_UPLOAD_STATE_DESC" class="btn-group btn-group-yesno">
                    <option value="1">WF_OPTION_ON</option>
                    <option value="0">WF_OPTION_OFF</option>
                </field>

                <field name="upload_watermark" type="radio" default="0" label="WF_MANAGER_WATERMARK_UPLOAD" description="WF_MANAGER_WATERMARK_UPLOAD_DESC" class="btn-group btn-group-yesno">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>

                <field name="watermark_type" type="list" default="0" label="WF_MANAGER_WATERMARK_TYPE" description="WF_MANAGER_WATERMARK_TYPE_DESC">
                    <option value="text">WF_OPTION_TEXT</option>
                    <option value="image">WF_OPTION_IMAGE</option>
                </field>
                <!-- Text -->
                <field name="watermark_text" type="text" size="50" default="" placeholder="eg: (c) Copyright 2016 Joe Public" label="WF_MANAGER_WATERMARK_TEXT" description="WF_MANAGER_WATERMARK_TEXT_DESC" showon="watermark_type:text" />
                <!--field name="watermark_font_style" type="text" default="Arial, Helvetica, sans-serif" size="50" label="WF_MANAGER_WATERMARK_FONTSTYLE" description="WF_MANAGER_WATERMARK_FONTSTYLE_DESC" parent="image_engine[canvas];watermark[1];watermark_type[text]" /-->
                <field name="watermark_font_style" type="fontlist" directory="components/com_jce/editor/libraries/pro/fonts" filter="\.ttf$" default="LiberationSans-Regular.ttf" class="editable" label="WF_MANAGER_WATERMARK_FONTSTYLE" description="WF_MANAGER_WATERMARK_FONTSTYLE_DESC" showon="watermark_type:text" />

                <field name="watermark_font_size" type="text" size="5" default="36" label="WF_MANAGER_WATERMARK_FONTSIZE" description="WF_MANAGER_WATERMARK_FONTSIZE_DESC" showon="watermark_type:text" />
                <field name="watermark_font_color" type="color" size="10" default="#FFFFFF" label="WF_MANAGER_WATERMARK_FONTCOLOR" description="WF_MANAGER_WATERMARK_FONTCOLOR_DESC" showon="watermark_type:text" />

                <!-- Image -->
                <field name="watermark_image" type="media" size="50" data-filter="jpeg,jpg,png,gif" default="" placeholder="eg: images/logo.png" label="WF_MANAGER_WATERMARK_IMAGE" description="WF_MANAGER_WATERMARK_IMAGE_DESC" showon="watermark_type:image" />

                <field name="watermark_position" type="list" default="center" label="WF_MANAGER_WATERMARK_POSITION" description="WF_MANAGER_WATERMARK_POSITION_DESC">
                    <option value="top-left">WF_OPTION_TOP_LEFT</option>
                    <option value="top-center">WF_OPTION_TOP_CENTER</option>
                    <option value="top-right">WF_OPTION_TOP_RIGHT</option>
                    <option value="center-left">WF_OPTION_CENTER_LEFT</option>
                    <option value="center">WF_OPTION_CENTER</option>
                    <option value="center-right">WF_OPTION_CENTER_RIGHT</option>
                    <option value="bottom-left">WF_OPTION_BOTTOM_LEFT</option>
                    <option value="bottom-center">WF_OPTION_BOTTOM_CENTER</option>
                    <option value="bottom-right">WF_OPTION_BOTTOM_RIGHT</option>
                </field>

                <field name="watermark_opacity" type="list" default="50" label="WF_MANAGER_WATERMARK_OPACITY" description="WF_MANAGER_WATERMARK_OPACITY_DESC">
                    <option value="100">100</option>
                    <option value="90">90</option>
                    <option value="80">80</option>
                    <option value="70">70</option>
                    <option value="60">60</option>
                    <option value="50">50</option>
                    <option value="40">40</option>
                    <option value="30">30</option>
                    <option value="20">20</option>
                    <option value="10">10</option>
                </field>

                <field name="watermark_margin" type="number" class="input-small" step="1" size="5" default="10" label="WF_MANAGER_WATERMARK_MARGIN" description="WF_MANAGER_WATERMARK_MARGIN_DESC" />

            </fieldset>
        </fields>
    </fields>
</form>
