{% if embed %}{% extends "base_blank_js.html" %}{% else %}{% extends "base.html" %}{% endif %} {# Outputs the HTML form element for an image parameter, where 'key' is an ImageAttrs field name. #} {% macro input(key, default="", placeholder="") %} {% set validator = fields[key][0] %} {% set web_name = fields[key][1] %} {% set typename = validator.__class__.__name__ %} {% include ["publish/input_%s.html" % key, "publish/input_%s.html" % typename, "publish/input_default.html"] %} {% endmacro %} {# Outputs the HTML for a help icon. #} {% macro help(anchor, classes="") %} {% endmacro %} {% block copyright %} {% endblock %} {% block title %}Publish {{ src }}{% endblock %} {% block extra_head %} {% if settings.DEBUG %} {% else %} {% endif%} {% endblock %} {% block body %} {% if embed %}
Close
{% endif %}

Publish image {% if not embed %}(back to image details){% endif %}

Template

{{ input('template') }} {{ help('option_tmp') }}

Page

{{ input('page', '1') }} {{ help('option_page') }}

Size

{{ input('width') }} {{ help('option_width') }} {% if image_info.width %}Original: {{ image_info.width }} pixels{% endif %}
{{ input('height') }} {{ help('option_height', 'hidden') }} {% if image_info.height %}Original: {{ image_info.height }} pixels{% endif %}
{{ input('dpi_x') }} {{ help('option_dpi') }} Server default: {{ settings.IMAGE_DPI_DEFAULT|default('keep original', True) }}

Padding

{{ input('size_fit') }} {{ help('option_autosizefit') }}
{{ input('fill', '#ffffff') }} {{ help('option_fill') }}

{{ input("align_h") }} {{ help('option_halign') }}
{{ input("align_v") }}

Image processing

{{ input('flip') }} {{ help('option_flip') }}
{{ input("rotation") }} {{ help('option_angle') }}
{{ input("sharpen") }} {{ help('option_sharpen') }}

Cropping

{{ input('left') }} {{ help('option_top') }}
{{ input('top') }}
{{ input('right') }}
{{ input('bottom') }}
{{ input('crop_fit') }} {{ help('option_autocropfit') }}

Overlay / Watermark

{{ help('option_overlay') }}
{{ input('overlay_src', '', '/path/to/your-image.jpg') }}
{{ input("overlay_size") }} {{ help('option_ovsize') }}
{{ input("overlay_pos") }} {{ help('option_ovpos') }}
{{ input("overlay_opacity") }} {{ help('option_ovopacity') }}

Colour processing

{{ input("icc_profile") }} {{ help('option_icc') }}
{{ input("icc_intent") }} {{ help('option_intent') }}
{{ input("icc_bpc") }} {{ help('option_bpc') }}

File options

{{ input("strip", settings.IMAGE_STRIP_DEFAULT) }} {{ help('option_strip') }} Server default: {{ settings.IMAGE_STRIP_DEFAULT|lower }}
{{ input("format") }} {{ help('option_format') }} Server default: {{ settings.IMAGE_FORMAT_DEFAULT|default('keep original', True) }}
{{ input("quality") }} {{ help('option_quality') }} Server default: {{ settings.IMAGE_QUALITY_DEFAULT }}
{{ input("colorspace") }} {{ help('option_colorspace') }} Server default: {{ settings.IMAGE_COLORSPACE_DEFAULT|default('keep original', True) }}

Browser handling options

{{ help('option_attach') }}
{{ help('option_stats') }}

Final image preview

Cannot show image preview

Publish

{% include "inc_preview_popup.html" %} {# These are hidden until required by publish.js #}
{% include "publish/output_plain.html" %}
{% include "publish/output_img_tag.html" %}
{% include "publish/output_img_srcset_tag.html" %}
{% include "publish/output_picture_tag.html" %}
{% include "publish/output_img_tag_zoom.html" %}
{% include "publish/output_canvas_zoom.html" %}
{% endblock %}