Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Add color profile option to batch exporter documentation

Kitlith ~~805560a51377
diff --git a/plugins/python/batch_exporter/Manual.html b/plugins/python/batch_exporter/Manual.html
index c3df3ed9fc..e074ee66e9 100644
--- a/plugins/python/batch_exporter/Manual.html
+++ b/plugins/python/batch_exporter/Manual.html
@@ -14,6 +14,7 @@
<li><code>[m=20,30,100]</code> - extra margin in <code>px</code>. The layer is trimmed to the smallest bounding box by default. This option adds extra padding around the layer.</li>
<li><code>[t=false]</code> or <code>[t=no]</code> - disable trimming the exported layer to the bounding box of the content. This option is not inherited from parent layers.</li>
<li><code>[i=false]</code> or <code>[i=no]</code> - disable parent metadata inheritance for a layer. More info <a href="#layer-inheritance">below</a>.</li>
+<li><code>[icc=name_of_color_profile.icc]</code> - selects a specific color profile when exporting, defaulting to <code>sRGB-elle-V2-srgbtrc.icc</code></li>
</ul>
<p>A typical layer name with metadata looks like: <code>CharacterTorso e=png m=30 s=50,100</code>. This exports the layer as two images, with an added padding of 30 pixels on each side: <code>CharacterTorso_s100_m030.png</code>, and <code>CharacterTorso_s050_m030.png</code>, a copy of the layer scaled down to half the original size.</p>
<p>All the metadata tags are optional. Each tag can contain one or multiple options separated by comma <code>,</code>. Write <code>e=jpg</code> to export the layer to <code>jpg</code> only and <code>e=jpg,png</code> to export the layer twice, as a <code>jpg</code> and as a <code>png</code> file. Note that the other tag, <code>p=</code> has been left out. Below we describe how the plugin works.</p>
diff --git a/plugins/python/batch_exporter/Manual.md b/plugins/python/batch_exporter/Manual.md
index 81d3c7fcbb..af7046d985 100644
--- a/plugins/python/batch_exporter/Manual.md
+++ b/plugins/python/batch_exporter/Manual.md
@@ -22,6 +22,7 @@ the layer name. The supported options are:
layer.
- `[t=false]` or `[t=no]` - disable trimming the exported layer to the bounding box of the content. This option is not inherited from parent layers.
- `[i=false]` or `[i=no]` - disable parent metadata inheritance for a layer. More info [below](#layer-inheritance).
+- `[icc=name_of_color_profile.icc]` - selects a specific color profile when exporting, defaulting to `sRGB-elle-V2-srgbtrc.icc`
A typical layer name with metadata looks like: `CharacterTorso e=png m=30 s=50,100`. This exports
the layer as two images, with an added padding of 30 pixels on each side: