summaryrefslogtreecommitdiffstats
path: root/share/extensions/raster_output_jpg.inx
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
commitcca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch)
tree146f39ded1c938019e1ed42d30923c2ac9e86789 /share/extensions/raster_output_jpg.inx
parentInitial commit. (diff)
downloadinkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.tar.xz
inkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.zip
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/extensions/raster_output_jpg.inx')
-rw-r--r--share/extensions/raster_output_jpg.inx40
1 files changed, 40 insertions, 0 deletions
diff --git a/share/extensions/raster_output_jpg.inx b/share/extensions/raster_output_jpg.inx
new file mode 100644
index 0000000..c237e98
--- /dev/null
+++ b/share/extensions/raster_output_jpg.inx
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>Export to JPEG</name>
+ <id>org.inkscape.raster.jpg_output</id>
+
+ <param name="tab" type="notebook">
+ <page name="about" gui-text="Low Quality Warning">
+ <label>The JPEG file format is good for photos, but it creates artifacts and distortions in logos and other flat vector images. Your artwork will lose visual quality and any transparency.</label>
+ <image>raster_output_jpg.svg</image>
+ <label>This is a high compression example for demonstration.</label>
+ <spacer/>
+ <label appearance="header">You put a lot of talent, time and energy into your work.</label>
+ <label>Your work deserves better, so you should consider exporting to PNG or WebP file formats with lossless compression instead.</label>
+ <spacer/>
+ <label>Learn more details about JPEG:</label>
+ <label appearance="url" indent="1">https://inkscape.org/learn/jpg/</label>
+ </page>
+ <page name="options" gui-text="Options">
+ <param name="quality" type="int" min="0" max="100"
+ gui-text="Quality:"
+ gui-description="Quality between 0 and 100"
+ >90</param>
+ <param name="progressive" type="bool"
+ gui-text="Progressive"
+ gui-description="Store image as a progressive JPEG file."
+ >true</param>
+ </page>
+ </param>
+
+ <output raster="true">
+ <extension>.jpg</extension>
+ <mimetype>image/jpeg</mimetype>
+ <filetypename>JPEG (*.jpg)</filetypename>
+ <filetypetooltip>Render to JPEG file format</filetypetooltip>
+ </output>
+
+ <script>
+ <command location="inx" interpreter="python">raster_output_jpg.py</command>
+ </script>
+</inkscape-extension>