diff --git a/Hatenatools/NTFT.py b/Hatenatools/NTFT.py index 6a8a445..6861472 100644 --- a/Hatenatools/NTFT.py +++ b/Hatenatools/NTFT.py @@ -130,7 +130,7 @@ class NTFT: for y in xrange(psize[1]): for x in xrange(psize[0]): #read - c = self.Image[clamp(x, 0, w)][clamp(y, 0, h)] + c = self.Image[clamp(x, 0, w-1)][clamp(y, 0, h-1)] r = c >> 24 g = (c >> 16) & 0xFF b = (c >> 8 ) & 0xFF @@ -223,7 +223,7 @@ def ReadImage(path): if __name__ == "__main__": print " == NTFT.py ==" print " == by pbsds ==" - print " == v0.70 ==" + print " == v0.71 ==" print if len(sys.argv) < 3: diff --git a/Hatenatools/ReadMe.txt b/Hatenatools/ReadMe.txt index 1109d83..5651032 100644 --- a/Hatenatools/ReadMe.txt +++ b/Hatenatools/ReadMe.txt @@ -5,7 +5,7 @@ --VERSIONS-- PPM.py: v1.05 UGO.py: v0.92 -NTFT.py: v0.70 +NTFT.py: v0.71 --DESCRIPTION-- PPM.py can read the metadata, thumbnail, frames and the sound of Flipnote Studio files: .ppm