Commit a3254b66 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

fix crop color error

parent 48e1cd1a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ def thumb(
        tempfile.gettempdir(), sha256, angle, scale, top, right, bottom, left
    )
    if not os.path.isfile(tmp_pic_path):
        crop_color = [96, 96, 96]
        crop_color = [96]
        img = pyvips.Image.new_from_file(pic_file.local_path())
        if angle:
            img = img.rotate(angle)