Skip to content

Commit

Permalink
Update StlToImg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bumbeng authored Nov 22, 2023
1 parent fdd375e commit f605caa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions StlToImg.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import argparse
from PIL import Image
from PyQt5.QtGui import QImage
from PyQt5.QtCore import QBuffer
from PyQt5.QtCore import QBuffer
from rembg import remove
import base64

Expand Down Expand Up @@ -62,7 +62,7 @@

def convertImage(image):
img = Image.open(output_path)
img = img.resize((width // antialias_factor, height // antialias_factor), resample=Image.ANTIALIAS)
img = img.resize((width // antialias_factor, height // antialias_factor), Image.Resampling.LANCZOS)
img.save(image)
return QImage(image)

Expand Down

0 comments on commit f605caa

Please sign in to comment.