prepare mystery man image mm.png
authorChristian Weiske <cweiske@cweiske.de>
Fri, 17 Aug 2012 15:05:00 +0000 (17:05 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 17 Aug 2012 15:05:00 +0000 (17:05 +0200)
res/mm.png [new file with mode: 0644]
res/mm.svg [new file with mode: 0644]
surrogator.php

diff --git a/res/mm.png b/res/mm.png
new file mode 100644 (file)
index 0000000..57f896d
Binary files /dev/null and b/res/mm.png differ
diff --git a/res/mm.svg b/res/mm.svg
new file mode 100644 (file)
index 0000000..006a1f6
--- /dev/null
@@ -0,0 +1,94 @@
+<?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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="585"
+   height="585"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.48.1 r9760"
+   sodipodi:docname="mm.svg">
+  <defs
+     id="defs4" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="0.7"
+     inkscape:cx="363.16555"
+     inkscape:cy="281.80281"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     fit-margin-top="0"
+     fit-margin-left="0"
+     fit-margin-right="0"
+     fit-margin-bottom="0"
+     inkscape:window-width="1172"
+     inkscape:window-height="777"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="0" />
+  <metadata
+     id="metadata7">
+    <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></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Calque 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-128.57143,-128.79074)">
+    <rect
+       style="fill:#808080;fill-opacity:1;stroke:none"
+       id="rect3755"
+       width="585"
+       height="585"
+       x="128.57143"
+       y="128.79074" />
+    <path
+       sodipodi:type="arc"
+       style="fill:#ffffff;fill-opacity:1;stroke:none"
+       id="path2985"
+       sodipodi:cx="451.42856"
+       sodipodi:cy="329.50504"
+       sodipodi:rx="165.71428"
+       sodipodi:ry="165.71428"
+       d="m 617.14284,329.50504 c 0,91.52146 -74.19281,165.71427 -165.71428,165.71427 -91.52147,0 -165.71428,-74.19281 -165.71428,-165.71427 0,-91.52147 74.19281,-165.71428 165.71428,-165.71428 91.52147,0 165.71428,74.19281 165.71428,165.71428 z"
+       transform="translate(-30.357132,0)" />
+    <path
+       sodipodi:type="star"
+       style="fill:#ffffff;fill-opacity:1;stroke:none"
+       id="path3759"
+       sodipodi:sides="3"
+       sodipodi:cx="417.14285"
+       sodipodi:cy="343.79074"
+       sodipodi:r1="330.14529"
+       sodipodi:r2="165.07265"
+       sodipodi:arg1="2.6179939"
+       sodipodi:arg2="3.6651914"
+       inkscape:flatsided="true"
+       inkscape:rounded="0"
+       inkscape:randomized="0"
+       d="M 131.22864,508.86338 417.14286,13.645447 703.05706,508.86339 z"
+       inkscape:transform-center-y="-66.822037"
+       transform="matrix(0.80383817,0,0,0.80960764,85.756082,301.79749)" />
+  </g>
+</svg>
index 393b0a2..dd907e0 100755 (executable)
@@ -115,6 +115,10 @@ foreach ($sizes as $size) {
         mkdir($varDir . '/' . $size, 0755);
     }
 }
+if (!file_exists($rawDir . '/mm.png')) {
+    log('mm.png missing, copying it from res/', 2);
+    copy(__DIR__ . '/res/mm.png', $rawDir . '/mm.png');
+}
 
 if (count($files)) {
     $fileInfos = array();
@@ -146,6 +150,8 @@ foreach ($fileInfos as $fileInfo) {
 
     if ($fileName == 'default.png') {
         $md5 = $sha256 = 'default';
+    } else if ($fileName == 'mm.png') {
+        $md5 = $sha256 = 'mm';
     } else {
         list($md5, $sha256) = getHashes($fileName);
     }