Skip to content

Commit

Permalink
updated readme, included samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Doof committed Apr 8, 2019
1 parent 4262928 commit 1871a6a
Show file tree
Hide file tree
Showing 13 changed files with 2,053 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,11 @@ The image in this post shows the improvement in the png (left) over the native p
- DotNetZip.1.13.3
- Flux.Jpeg.Core.0.8.0
- iTextSharp.5.5.13


## Examples
There are a few sample .xml files from my own comics in the examples folder. You can use these for testing. The .png files are also included for reference.


### Interesting
- When you rotate an imported image or drawing on ragemaker.net, it will be saved with the rotation value in the .xml, but it will also be baked into the embedded base64 png. When you load such an .xml file back into ragemaker.net, the rotation will be wrong. This is a bug. For this reason I simply ignore rotation for such elements, thus they appear the correct way (since they have that information already baked in).
Binary file added examples/A Kafkaesque Campfire/rage13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
930 changes: 930 additions & 0 deletions examples/A Kafkaesque Campfire/rage13.xml

Large diffs are not rendered by default.

Binary file added examples/complex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 112 additions & 0 deletions examples/complex.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<ragemaker>
<panels>4</panels>
<gridLinesArray>11100</gridLinesArray>
<gridAboveAll>true</gridAboveAll>
<showGrid>true</showGrid>
<redditWatermark>false</redditWatermark>
<Face>
<itemx>110</itemx>
<itemy>34</itemy>
<facename>Neutral/01.png</facename>
<scalex>1</scalex>
<scaley>1</scaley>
<mirrored>false</mirrored>
<rotation>82</rotation>
<opacity>0.52</opacity>
</Face>
<Face>
<itemx>277</itemx>
<itemy>-16</itemy>
<facename>Neutral/01.png</facename>
<scalex>1</scalex>
<scaley>1</scaley>
<mirrored>false</mirrored>
<rotation>-46</rotation>
<opacity>1</opacity>
</Face>
<Face>
<itemx>139</itemx>
<itemy>236</itemy>
<facename>Neutral/01.png</facename>
<scalex>1</scalex>
<scaley>1</scaley>
<mirrored>false</mirrored>
<rotation>178</rotation>
<opacity>0.2</opacity>
</Face>
<Face>
<itemx>303</itemx>
<itemy>201.5</itemy>
<facename>Neutral/03.png</facename>
<scalex>1</scalex>
<scaley>1</scaley>
<mirrored>false</mirrored>
<rotation>33</rotation>
<opacity>1</opacity>
</Face>
<Face>
<itemx>4</itemx>
<itemy>243</itemy>
<facename>Neutral/BadPokerFace.png</facename>
<scalex>1</scalex>
<scaley>1</scaley>
<mirrored>false</mirrored>
<rotation>0</rotation>
<opacity>1</opacity>
</Face>
<Text>
<itemx>101</itemx>
<itemy>92</itemy>
<width>250</width>
<height>50</height>
<color>0</color>
<style>0</style>
<size>16</size>
<rotation>32</rotation>
<text>HAHAHA</text>
<align>left</align>
<bgOn>false</bgOn>
<bgColor>16777215</bgColor>
<opacity>1</opacity>
</Text>
<Text>
<itemx>337</itemx>
<itemy>148</itemy>
<width>250</width>
<height>50</height>
<color>0</color>
<style>1</style>
<size>29</size>
<rotation>-84</rotation>
<text>HOHOHO</text>
<align>left</align>
<bgOn>false</bgOn>
<bgColor>16777215</bgColor>
<opacity>0.3</opacity>
</Text>
<Text>
<itemx>49</itemx>
<itemy>244</itemy>
<width>221</width>
<height>78</height>
<color>16777215</color>
<style>0</style>
<size>16</size>
<rotation>75</rotation>
<text>text</text>
<align>left</align>
<bgOn>true</bgOn>
<bgColor>13158</bgColor>
<opacity>0.74</opacity>
</Text>
<Face>
<itemx>489</itemx>
<itemy>209</itemy>
<facename>Neutral/03.png</facename>
<scalex>1</scalex>
<scaley>1</scaley>
<mirrored>true</mirrored>
<rotation>33</rotation>
<opacity>1</opacity>
</Face>
</ragemaker>
Binary file added examples/complex2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions examples/complex2.xml

Large diffs are not rendered by default.

Binary file added examples/school/ragecomic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
511 changes: 511 additions & 0 deletions examples/school/xml.xml

Large diffs are not rendered by default.

368 changes: 368 additions & 0 deletions examples/supermarket/rage.xml

Large diffs are not rendered by default.

Binary file added examples/supermarket/ragecomic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/trailer reaction/ragecomic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions examples/trailer reaction/ragecomic.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<ragemaker>
<panels>2</panels>
<gridLinesArray/>
<gridAboveAll>true</gridAboveAll>
<showGrid>true</showGrid>
<redditWatermark>false</redditWatermark>
<Face>
<itemx>0</itemx>
<itemy>1.5</itemy>
<facename>Determined - Focused/fumanchu.jpg</facename>
<scalex>1</scalex>
<scaley>1</scaley>
<mirrored>false</mirrored>
<rotation>0</rotation>
<opacity>1</opacity>
</Face>
<Face>
<itemx>327</itemx>
<itemy>1.5</itemy>
<facename>Determined - Focused/fumanchu.jpg</facename>
<scalex>1</scalex>
<scaley>1</scaley>
<mirrored>false</mirrored>
<rotation>0</rotation>
<opacity>1</opacity>
</Face>
<Text>
<itemx>12</itemx>
<itemy>14</itemy>
<width>299</width>
<height>79</height>
<color>0</color>
<style>0</style>
<size>16</size>
<rotation>0</rotation>
<text>Me reacting to a trailer I really hate</text>
<align>left</align>
<bgOn>false</bgOn>
<bgColor>16777215</bgColor>
<opacity>1</opacity>
</Text>
<Text>
<itemx>346</itemx>
<itemy>13</itemy>
<width>250</width>
<height>50</height>
<color>0</color>
<style>0</style>
<size>16</size>
<rotation>0</rotation>
<text>Me reacting to a trailer I really like</text>
<align>left</align>
<bgOn>false</bgOn>
<bgColor>16777215</bgColor>
<opacity>1</opacity>
</Text>
</ragemaker>

0 comments on commit 1871a6a

Please sign in to comment.