Skip to content

Commit cb04ef4

Browse files
Update b.py
1 parent b54ccfe commit cb04ef4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

b.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ def send_photo(chat_id, photo_file, caption=""):
4040

4141

4242
def process_image(image_bytes):
43-
# باز کردن تصویر از بایت
4443
input_image = Image.open(io.BytesIO(image_bytes))
45-
# تنظیم اندازه عکس برای کاهش مصرف حافظه (مثلاً حداکثر عرض/ارتفاع 800 پیکسل)
46-
# حذف پس‌زمینه با rembg
4744
output_image = remove(input_image)
4845
img_byte_arr = io.BytesIO()
4946
output_image.save(img_byte_arr, format="PNG")

0 commit comments

Comments
 (0)