diff --git a/.gitignore b/.gitignore index b49ecff5..e4312376 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,7 @@ Icon* env # Temporary deploy files -temp.png +temp.* # Generated documentation docs/gen diff --git a/memegen/domain/image.py b/memegen/domain/image.py index 0987b48b..778e36cc 100644 --- a/memegen/domain/image.py +++ b/memegen/domain/image.py @@ -12,7 +12,7 @@ class Image: @classmethod def from_template(cls, template, text, kind): make_meme(text.top, text.bottom, template.path) - return "../temp.png" + return "../temp.jpg" # based on: https://github.com/danieldiekmeier/memegenerator @@ -56,4 +56,4 @@ def make_meme(topString, bottomString, filename): draw.text(topTextPosition, topString, (255, 255, 255), font=font) draw.text(bottomTextPosition, bottomString, (255, 255, 255), font=font) - return img.save("temp.png") + return img.save("temp.jpg")