got rid of '''
This commit is contained in:
parent
d0208cf5f9
commit
1679f9f62d
@ -673,9 +673,8 @@ class StockTicker():
|
||||
i+=1
|
||||
|
||||
def textImage(self, text, font, r = 255, g = 255, b = 255, matrix_height = False, w_buff = 3, h_buff = 3, background = False, location = False):
|
||||
'''
|
||||
creates and returns a ppm image containing the text in the supplied font and colour
|
||||
'''
|
||||
#creates and returns a ppm image containing the text in the supplied font and colour
|
||||
|
||||
|
||||
width, height = self.get_text_dimensions(text, font)
|
||||
|
||||
@ -698,9 +697,9 @@ class StockTicker():
|
||||
|
||||
|
||||
def getUserMessages(self):
|
||||
'''
|
||||
displays the text entered in the webpage by the user.
|
||||
'''
|
||||
|
||||
#displays the text entered in the webpage by the user.
|
||||
|
||||
|
||||
|
||||
|
||||
@ -2847,20 +2846,20 @@ class StockTicker():
|
||||
|
||||
|
||||
#below code stitches title and GIF together
|
||||
'''
|
||||
frames = []
|
||||
|
||||
# frames = []
|
||||
|
||||
for i, frame in enumerate(ImageSequence.Iterator(gif)):
|
||||
# for i, frame in enumerate(ImageSequence.Iterator(gif)):
|
||||
|
||||
if all_settings['title']:
|
||||
f = self.stitchImage([title_img, frame])
|
||||
else:
|
||||
f = self.stitchImage([frame])
|
||||
frames.append(f)
|
||||
# if all_settings['title']:
|
||||
# f = self.stitchImage([title_img, frame])
|
||||
# else:
|
||||
# f = self.stitchImage([frame])
|
||||
# frames.append(f)
|
||||
|
||||
|
||||
frames[0].save('./display_images/Custom GIFs.gif', save_all=True, append_images=frames[1:], loop=0, optimize = False)
|
||||
'''
|
||||
# frames[0].save('./display_images/Custom GIFs.gif', save_all=True, append_images=frames[1:], loop=0, optimize = False)
|
||||
|
||||
|
||||
return GIFs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user