Skip to content

Commit

Permalink
Update rthk.py
Browse files Browse the repository at this point in the history
  • Loading branch information
raileo98 authored Oct 22, 2024
1 parent 88d383e commit 8a21f27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/rthk.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ async def cache_image(imageUrl):

async def optimize_image_quality(imgUrl):
q = 99
latest_imgUrl = imgUrl # 預設為原始圖片 URL
# latest_imgUrl = imgUrl # 預設為原始圖片 URL
latest_imgUrl = imgUrl.replace('n=-1', f'n=-1&q=1')
latestAvailableQ = None

while True:
Expand Down

0 comments on commit 8a21f27

Please sign in to comment.