summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/controller.py
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2024-03-28 15:44:50 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2024-03-28 15:44:50 +0700
commitaad5e88a2cf02443377fb15eab509e3532509b32 (patch)
tree23c9577c5086949f6ce96bc413653ba1e258ffc1 /indoteknik_api/controllers/controller.py
parent3397a2eca0f0480e9dd77e26c75a4f9cff57091b (diff)
Update watermark image
Diffstat (limited to 'indoteknik_api/controllers/controller.py')
-rw-r--r--indoteknik_api/controllers/controller.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/indoteknik_api/controllers/controller.py b/indoteknik_api/controllers/controller.py
index 32f591a1..c6458628 100644
--- a/indoteknik_api/controllers/controller.py
+++ b/indoteknik_api/controllers/controller.py
@@ -214,8 +214,8 @@ class Controller(http.Controller):
if not image: return ''
LOGO_FILENAME = {
- '1': 'logo-indoteknik-link.png',
- '2': 'logo-indoteknik.png'
+ '1': 'logo-indoteknik-gray.png',
+ '2': 'logo-indoteknik-link.png'
}
logo_path = get_module_resource('indoteknik_api', 'static', 'src', 'images', LOGO_FILENAME.get(version))
@@ -242,12 +242,6 @@ class Controller(http.Controller):
new_img.paste(img, (paste_x, paste_y), img)
if version == '2':
- logo__footer_path = get_module_resource('indoteknik_api', 'static', 'src', 'images', 'logo-indoteknik-footer.png')
- logo_footer_img = Image.open(logo__footer_path).convert('RGBA')
- logo_footer_img.thumbnail((img_width, img_height // 1))
- logo_footer_w, logo_footer_h = logo_footer_img.size
- new_img.paste(logo_footer_img, (0, img_height - logo_footer_h), logo_footer_img)
-
logo_img_w = img_width // 1.8
logo_img_h = img_height // 1.8