Skip to content

Commit

Permalink
Better performance due to numpy conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
royalmustard committed Nov 30, 2019
1 parent e2dea11 commit fe9a5f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Converter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from PIL import Image
import time
import numpy as np
import numpy.ma as ma


class Converter:

Expand Down
2 changes: 1 addition & 1 deletion UI.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def convert(self):
self.conv.convert_image_to_png()

self.conv_image = self.conv.final
#width, height = self.conv_image.size
# width, height = self.conv_image.size
oi = Image.new("RGB", (300, 300), color=self.color)

conv_im = self.conv_image.resize((300, 300), Image.ANTIALIAS)
Expand Down

0 comments on commit fe9a5f0

Please sign in to comment.