Skip to content

Commit 824a2cc

Browse files
committed
remove PIL
1 parent a4f802e commit 824a2cc

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ python = "^3.8"
99
numpy = "^1.21"
1010
pyside6 = "^6.2"
1111
PyOpenGL = "^3.1"
12-
pillow = "^8.3"
1312
meshio = "^4.4"
1413
pypcd4 = "^0.1"
1514
pye57 = "^0.1"

q3dviewer/custom_items/image_item.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from OpenGL.GL import *
88
import numpy as np
99
from OpenGL.GL import shaders
10-
from PIL import Image as PIL_Image
1110
from PySide6.QtWidgets import QLabel, QSpinBox, QCheckBox
1211

1312

@@ -108,12 +107,8 @@ def initialize_gl(self):
108107
glBindVertexArray(0)
109108

110109
def set_data(self, data):
111-
if isinstance(data, np.ndarray):
112-
pass
113-
elif isinstance(data, PIL_Image.Image):
114-
data = np.array(data)
115-
else:
116-
print("not support image type")
110+
if not isinstance(data, np.ndarray):
111+
print("The image type is not supported.")
117112
raise NotImplementedError
118113

119114
if data.ndim == 2: # Grayscale image

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='q3dviewer',
5-
version='1.1.2',
5+
version='1.1.3',
66
author="Liu Yang",
77
description="A library designed for quickly deploying a 3D viewer.",
88
long_description=open("README.md").read(),
@@ -22,7 +22,6 @@
2222
'numpy',
2323
'pyside6',
2424
'PyOpenGL',
25-
'pillow',
2625
'meshio',
2726
'pypcd4',
2827
'pye57',

0 commit comments

Comments
 (0)