Created
May 20, 2016 21:52
-
-
Save JayFoxRox/e290ac532fcb541f94793f679e2b13e0 to your computer and use it in GitHub Desktop.
CrAzY CoOl HtML!!!!111
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
checker="iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAAAAADhZOFXAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfgBRQXEjiElIMiAAAAHklEQVQI12OMZ2BgUGRgYGBigAJMBosiAwPDffxqAEVQAZKEB3yfAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTA1LTIwVDIzOjE4OjU2KzAyOjAw7frcsAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNi0wNS0yMFQyMzoxODo1NiswMjowMJynZAwAAAAASUVORK5CYII=" | |
mkdir /tmp/png-3ds/ | |
mkdir /tmp/png-citra/ | |
mkdir /tmp/png-difference/ | |
for filename in `ls -v rev-c4e474a2f293ec04c3f98033d672c683d1429163/*.tga`; do | |
basename=$(basename "$filename") | |
echo "Result for $filename:" | |
#echo -n " PR: "; diff "$filename" "Citra (PR)/$basename" | wc -l | |
convert -format png "$filename" /tmp/png-3ds/$basename.png | |
convert -format png "/home/fox/.local/share/citra-emu/sdmc/$basename" /tmp/png-citra/$basename.png | |
composite "/tmp/png-3ds/$basename.png" "/tmp/png-citra/$basename.png" -compose difference -colorspace Gray -alpha opaque /tmp/png-difference/$basename.png | |
topr="$topr <img alt=\"3DS: $basename\" width=\"50px\" height=\"31%\" src=\"/tmp/png-3ds/$basename.png\">" | |
botr="$botr <img alt=\"Citra: $basename\" width=\"50px\" height=\"31%\" src=\"/tmp/png-citra/$basename.png\">" | |
difr="$difr <img alt=\"Difference: $basename\" width=\"50px\" height=\"31%\" src=\"/tmp/png-difference/$basename.png\">" | |
done | |
echo "<body background=\"data:image/png;base64,$checker\"><nobr>$topr</nobr><br><nobr>$botr</nobr><br><nobr>$difr</nobr>" > cmp.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment