summaryrefslogtreecommitdiffstats
path: root/share/extensions/raster_output_jpg.inx
blob: c237e98276c11f814340ecb2555e4f0d426a0679 (plain)
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
<?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>