Create documentation graphic paper_parameter.svg (and related files).
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Thu, 27 Jun 2019 22:13:19 +0000 (00:13 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Fri, 28 Jun 2019 15:06:12 +0000 (17:06 +0200)
doc/paper_parameter.svg [new file with mode: 0644]
doc/paper_parameter/paper.jpg [new file with mode: 0644]
doc/paper_parameter/paper.py [new file with mode: 0644]

diff --git a/doc/paper_parameter.svg b/doc/paper_parameter.svg
new file mode 100644 (file)
index 0000000..b1a935f
--- /dev/null
@@ -0,0 +1,382 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="297mm"
+   height="210mm"
+   viewBox="0 0 297 210"
+   version="1.1"
+   id="svg8"
+   inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
+   sodipodi:docname="parameter.svg">
+  <defs
+     id="defs2">
+    <pattern
+       patternUnits="userSpaceOnUse"
+       width="567.03998"
+       height="472.32001"
+       patternTransform="matrix(0.26458333,0,0,0.26458333,67.104378,120.36719)"
+       id="pattern4615">
+      <image
+         sodipodi:absref="/home/philipp/projekte/toastfreeware/gimp_passport/doc/paper_parameter/paper.jpg"
+         xlink:href="paper_parameter/paper.jpg"
+         y="-2.8754776e-14"
+         x="-1.373901e-14"
+         id="image4613"
+         style="fill:none;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;image-rendering:optimizeSpeed"
+         preserveAspectRatio="none"
+         height="472.32001"
+         width="567.03998" />
+    </pattern>
+    <marker
+       id="Arrow2Sstart"
+       inkscape:isstock="true"
+       inkscape:stockid="Arrow2Sstart"
+       orient="auto"
+       refX="0"
+       refY="0"
+       style="overflow:visible">
+      <path
+         d="M 8.72,4.03 -2.21,0.02 8.72,-4 c -1.75,2.37 -1.74,5.62 0,8.03 z"
+         id="Arrow2SstartPath"
+         style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1"
+         transform="matrix(0.3,0,0,0.3,-0.69,0)"
+         inkscape:connector-curvature="0" />
+    </marker>
+    <marker
+       id="Arrow2Send"
+       inkscape:isstock="true"
+       inkscape:stockid="Arrow2Send"
+       orient="auto"
+       refX="0"
+       refY="0"
+       style="overflow:visible">
+      <path
+         d="M 8.72,4.03 -2.21,0.02 8.72,-4 c -1.75,2.37 -1.74,5.62 0,8.03 z"
+         id="Arrow2SendPath"
+         style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1"
+         transform="matrix(-0.3,0,0,-0.3,0.69,0)"
+         inkscape:connector-curvature="0" />
+    </marker>
+    <filter
+       inkscape:collect="always"
+       style="color-interpolation-filters:sRGB"
+       id="filter5634"
+       x="-0.054988715"
+       width="1.1099774"
+       y="-0.066016258"
+       height="1.1320325">
+      <feGaussianBlur
+         inkscape:collect="always"
+         stdDeviation="3.4374666"
+         id="feGaussianBlur5636" />
+    </filter>
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="0.49497475"
+     inkscape:cx="356.94077"
+     inkscape:cy="320.89157"
+     inkscape:document-units="mm"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:snap-page="true"
+     inkscape:window-width="1024"
+     inkscape:window-height="768"
+     inkscape:window-x="0"
+     inkscape:window-y="-20"
+     inkscape:window-maximized="1"
+     showguides="true"
+     inkscape:guide-bbox="true">
+    <sodipodi:guide
+       position="78.146578,139.6622"
+       orientation="1,0"
+       id="guide5676"
+       inkscape:locked="false" />
+    <sodipodi:guide
+       position="82.020836,152.89137"
+       orientation="0,1"
+       id="guide5678"
+       inkscape:locked="false" />
+    <sodipodi:guide
+       position="113.18865,98.288369"
+       orientation="1,0"
+       id="guide5680"
+       inkscape:locked="false"
+       inkscape:label=""
+       inkscape:color="rgb(0,0,255)" />
+    <sodipodi:guide
+       position="156.10417,143.44196"
+       orientation="1,0"
+       id="guide5682"
+       inkscape:locked="false" />
+    <sodipodi:guide
+       position="164.08892,143.15848"
+       orientation="1,0"
+       id="guide5684"
+       inkscape:locked="false" />
+    <sodipodi:guide
+       position="91.406181,107.91007"
+       orientation="0,1"
+       id="guide5686"
+       inkscape:locked="false" />
+    <sodipodi:guide
+       position="87.664405,99.891986"
+       orientation="0,1"
+       id="guide50"
+       inkscape:locked="false" />
+    <sodipodi:guide
+       position="199.06417,174.51619"
+       orientation="1,0"
+       id="guide52"
+       inkscape:locked="false" />
+    <sodipodi:guide
+       position="117.64509,55.184524"
+       orientation="0,1"
+       id="guide56"
+       inkscape:locked="false" />
+    <sodipodi:guide
+       position="121.0731,97.620195"
+       orientation="1,0"
+       id="guide58"
+       inkscape:locked="false"
+       inkscape:label=""
+       inkscape:color="rgb(0,0,255)" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata5">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-87)">
+    <rect
+       style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#fbdfdb;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;enable-background:accumulate"
+       id="rect899"
+       width="10.583382"
+       height="11.041569"
+       x="56.520996"
+       y="133.06717" />
+    <rect
+       id="rect5488"
+       y="136.24214"
+       x="70.279381"
+       height="124.968"
+       width="150.02933"
+       style="opacity:1;fill:#a7769e;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter5634)" />
+    <image
+       sodipodi:absref="/home/philipp/projekte/toastfreeware/gimp_passport/doc/paper_parameter/paper.jpg"
+       xlink:href="paper_parameter/paper.jpg"
+       y="133.06717"
+       x="67.104378"
+       id="image3805"
+       style="fill:none;stroke:#8787de;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;image-rendering:optimizeSpeed"
+       preserveAspectRatio="none"
+       height="124.968"
+       width="150.02933" />
+    <rect
+       style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#dbfbe0;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;enable-background:accumulate"
+       id="rect46"
+       width="34.97525"
+       height="21.62483"
+       x="164.08891"
+       y="122.4838" />
+    <rect
+       y="197.10802"
+       x="56.520996"
+       height="44.981304"
+       width="21.625582"
+       id="rect48"
+       style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#dbfbe0;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;enable-background:accumulate" />
+    <rect
+       y="122.4838"
+       x="67.104378"
+       height="21.624935"
+       width="11.042301"
+       id="rect877"
+       style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#fbdfdb;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;enable-background:accumulate" />
+    <rect
+       style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;vector-effect:none;fill:#fbdfdb;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;enable-background:accumulate"
+       id="rect887"
+       width="7.884429"
+       height="21.625002"
+       x="113.18865"
+       y="122.4838" />
+    <rect
+       style="fill:none;stroke:#3737c8;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       width="150.02933"
+       height="124.968"
+       x="67.104378"
+       y="133.06717"
+       id="rect4618" />
+    <path
+       inkscape:connector-curvature="0"
+       id="path5424"
+       d="M 67.104378,268.61855 H 217.13371"
+       style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#3737c8;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       sodipodi:nodetypes="cc" />
+    <path
+       inkscape:connector-curvature="0"
+       id="path5430"
+       d="m 217.13371,268.61855 v 0"
+       style="fill:none;stroke:#ff0000;stroke-width:0.755952;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.5"
+       sodipodi:nodetypes="cc" />
+    <text
+       xml:space="preserve"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:30.23809433px;line-height:125%;font-family:FreeSans;-inkscape-font-specification:FreeSans;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#3737c8;fill-opacity:1;stroke:none;stroke-width:0.75595236px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       x="142.11554"
+       y="277.2865"
+       id="text5396"><tspan
+         sodipodi:role="line"
+         style="font-style:normal;font-weight:normal;font-size:8.31547642px;line-height:125%;text-align:center;letter-spacing:0;word-spacing:0;text-anchor:middle;fill:#3737c8;fill-opacity:1;stroke:none;stroke-width:0.75595236px"
+         id="tspan5394"
+         x="142.11554"
+         y="277.2865">paper width</tspan></text>
+    <path
+       sodipodi:nodetypes="cc"
+       style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#37c86f;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       d="m 164.08892,122.4838 h 34.97525"
+       id="path5640"
+       inkscape:connector-curvature="0" />
+    <path
+       sodipodi:nodetypes="cc"
+       style="fill:none;stroke:#ff0000;stroke-width:0.755952;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.5"
+       d="m 217.13371,122.48379 v 0"
+       id="path5642"
+       inkscape:connector-curvature="0" />
+    <text
+       id="text5646"
+       y="118.06505"
+       x="181.57304"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:30.23809433px;line-height:125%;font-family:FreeSans;-inkscape-font-specification:FreeSans;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#37c86f;fill-opacity:1;stroke:none;stroke-width:0.75595236px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;"
+       xml:space="preserve"><tspan
+         y="118.06505"
+         x="181.57304"
+         id="tspan5644"
+         style="font-style:normal;font-weight:normal;font-size:8.31547642px;line-height:125%;text-align:center;letter-spacing:0;word-spacing:0;text-anchor:middle;fill:#37c86f;fill-opacity:1;stroke:none;stroke-width:0.75595236px;"
+         sodipodi:role="line">photo width</tspan></text>
+    <path
+       sodipodi:nodetypes="cc"
+       style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#3737c8;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       d="m 227.71709,258.03517 v -124.968"
+       id="path5650"
+       inkscape:connector-curvature="0" />
+    <path
+       sodipodi:nodetypes="cc"
+       style="fill:none;stroke:#ff0000;stroke-width:0.755952;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.5"
+       d="m 227.71709,108.00584 v 0"
+       id="path5652"
+       inkscape:connector-curvature="0" />
+    <text
+       id="text5656"
+       y="236.38504"
+       x="-195.7204"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:30.23809433px;line-height:125%;font-family:FreeSans;-inkscape-font-specification:FreeSans;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#3737c8;fill-opacity:1;stroke:none;stroke-width:0.75595236px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       xml:space="preserve"
+       transform="rotate(-90)"><tspan
+         y="236.38504"
+         x="-195.7204"
+         id="tspan5654"
+         style="font-style:normal;font-weight:normal;font-size:8.31547642px;line-height:125%;text-align:center;letter-spacing:0;word-spacing:0;text-anchor:middle;fill:#3737c8;fill-opacity:1;stroke:none;stroke-width:0.75595236px"
+         sodipodi:role="line">paper height</tspan></text>
+    <path
+       sodipodi:nodetypes="cc"
+       style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#37c86f;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       d="m 56.520997,197.10802 v 44.9813"
+       id="path5660"
+       inkscape:connector-curvature="0" />
+    <path
+       sodipodi:nodetypes="cc"
+       style="fill:none;stroke:#ff0000;stroke-width:0.755952;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.5"
+       d="m 56.520997,283.09651 v 0"
+       id="path5662"
+       inkscape:connector-curvature="0" />
+    <text
+       id="text5666"
+       y="52.102249"
+       x="-219.76791"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:30.23809433px;line-height:125%;font-family:FreeSans;-inkscape-font-specification:FreeSans;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#37c86f;fill-opacity:1;stroke:none;stroke-width:0.75595236px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       xml:space="preserve"
+       transform="rotate(-90)"><tspan
+         y="52.102249"
+         x="-219.76791"
+         id="tspan5664"
+         style="font-style:normal;font-weight:normal;font-size:8.31547642px;line-height:125%;text-align:center;letter-spacing:0;word-spacing:0;text-anchor:middle;fill:#37c86f;fill-opacity:1;stroke:none;stroke-width:0.75595236px"
+         sodipodi:role="line">photo height</tspan></text>
+    <path
+       inkscape:connector-curvature="0"
+       id="path879"
+       d="m 67.104378,122.4838 11.042204,0"
+       style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#c84d37;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       sodipodi:nodetypes="cc" />
+    <text
+       xml:space="preserve"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:30.23809433px;line-height:125%;font-family:FreeSans;-inkscape-font-specification:FreeSans;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#c84d37;fill-opacity:1;stroke:none;stroke-width:0.75595236px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       x="72.625938"
+       y="118.06505"
+       id="text883"><tspan
+         sodipodi:role="line"
+         style="font-style:normal;font-weight:normal;font-size:8.31547642px;line-height:125%;text-align:center;letter-spacing:0;word-spacing:0;text-anchor:middle;fill:#c84d37;fill-opacity:1;stroke:none;stroke-width:0.75595236px"
+         id="tspan881"
+         x="72.625938"
+         y="118.06505">margin</tspan></text>
+    <path
+       sodipodi:nodetypes="cc"
+       style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#c84d37;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       d="m 56.520997,144.10937 v -11.0422"
+       id="path885"
+       inkscape:connector-curvature="0" />
+    <path
+       sodipodi:nodetypes="cc"
+       style="opacity:1;vector-effect:none;fill:none;fill-opacity:1;stroke:#c84d37;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       d="M 113.18865,122.4838 H 121.073"
+       id="path891"
+       inkscape:connector-curvature="0" />
+    <text
+       id="text895"
+       y="118.06505"
+       x="117.24222"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:30.23809433px;line-height:125%;font-family:FreeSans;-inkscape-font-specification:FreeSans;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#c84d37;fill-opacity:1;stroke:none;stroke-width:0.75595236px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       xml:space="preserve"><tspan
+         y="118.06505"
+         x="117.24222"
+         id="tspan893"
+         style="font-style:normal;font-weight:normal;font-size:8.31547642px;line-height:125%;text-align:center;letter-spacing:0;word-spacing:0;text-anchor:middle;fill:#c84d37;fill-opacity:1;stroke:none;stroke-width:0.75595236px"
+         sodipodi:role="line">spacing</tspan></text>
+    <text
+       id="text903"
+       y="52.102249"
+       x="-138.58781"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:30.23809433px;line-height:125%;font-family:FreeSans;-inkscape-font-specification:FreeSans;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#c84d37;fill-opacity:1;stroke:none;stroke-width:0.75595236px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       xml:space="preserve"
+       transform="rotate(-90)"><tspan
+         y="52.102249"
+         x="-138.58781"
+         id="tspan901"
+         style="font-style:normal;font-weight:normal;font-size:8.31547642px;line-height:125%;text-align:center;letter-spacing:0;word-spacing:0;text-anchor:middle;fill:#c84d37;fill-opacity:1;stroke:none;stroke-width:0.75595236px"
+         sodipodi:role="line">margin</tspan></text>
+  </g>
+</svg>
diff --git a/doc/paper_parameter/paper.jpg b/doc/paper_parameter/paper.jpg
new file mode 100644 (file)
index 0000000..e8c1178
Binary files /dev/null and b/doc/paper_parameter/paper.jpg differ
diff --git a/doc/paper_parameter/paper.py b/doc/paper_parameter/paper.py
new file mode 100644 (file)
index 0000000..79a8f39
--- /dev/null
@@ -0,0 +1,14 @@
+import argparse
+from gimp_passport import main
+
+
+if __name__ == '__main__':
+    description = 'Helper script that creates the file paper.jpg. ' \
+    'It should be called from the root file of the project: ' \
+    'python3 doc/paper_parameter/paper.py'
+    parser = argparse.ArgumentParser(description=description)
+    parser.add_argument('--source', default='test_image.jpg', help='source image')
+    parser.add_argument('--dest', default='doc/paper_parameter/paper.jpg', help='destination image')
+    args = parser.parse_args()
+    main(150., 125., 11., 35., 45., 8., 150, (1108, 280, 2180, 1620), args.source, args.dest)
+