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 30, 2024
1 parent a1f207e commit b222f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/rthk.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ async def optimize_image_quality(imgUrl):
if q == 99:
q = 90

if q <= 95:
elif q <= 95:
q = max(1, q - 10) # 確保 q 不會低於 1

# 更新 latest_imgUrl 以反映最終的 q 值
Expand Down

0 comments on commit b222f72

Please sign in to comment.