summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_api/controllers/controller.py')
-rw-r--r--indoteknik_api/controllers/controller.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/indoteknik_api/controllers/controller.py b/indoteknik_api/controllers/controller.py
index 0f20d319..26f0e3e4 100644
--- a/indoteknik_api/controllers/controller.py
+++ b/indoteknik_api/controllers/controller.py
@@ -228,9 +228,6 @@ class Controller(http.Controller):
image_data = base64.b64decode(image_base64)
image = Image.open(BytesIO(image_data))
- if image.mode in ("RGBA", "P"): # Cek alpha channel atau palet
- image = image.convert("RGB") # Konversi ke RGB
-
# Convert to WebP
with BytesIO() as output:
image.save(output, format="WEBP", quality=85)