Skip to content

Commit

Permalink
🔧 fix: update version and scaling logic in project files
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoskys committed Oct 10, 2024
1 parent a7d7c79 commit 15bb988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "telegram-sticker-utils"
version = "0.2.13"
version = "0.2.14"
description = "easy and fast processing of telegram stickers"
authors = [
{ name = "sudoskys", email = "[email protected]" },
Expand Down
2 changes: 1 addition & 1 deletion src/telegram_sticker_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def process_video(input_path, output_path, scale, input_file_type: str, frame_ra
output_options = [
'-c:v', 'libvpx-vp9', # VP9 codec for WEBM
'-pix_fmt', 'yuva420p', # Pixel format
'-vf', f"scale={scale}:-1", # Scaling
'-vf', f"scale='if(gt(iw,ih),{scale},-1)':'if(gt(iw,ih),-1,{scale})'", # Scaling
'-an', # No audio stream
'-loop', '1', # Loop the video
'-deadline', 'realtime', # Speed/quality tradeoff setting
Expand Down

0 comments on commit 15bb988

Please sign in to comment.