skills/portrait-resizer/SKILL.md
Convert videos to 9:16 portrait format (1080x1920) for TikTok, YouTube Shorts, Instagram Reels, and Facebook Reels. Supports smart cropping (face-aware), center cropping, and letterboxing. Maintains aspect ratio and quality.
npx skillsauth add akrindev/trimer-clip portrait-resizerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill converts horizontal videos to vertical 9:16 portrait format suitable for short-form content platforms.
scripts/resize_to_portrait.pyConvert video to 9:16 portrait format.
Usage:
python skills/portrait-resizer/scripts/resize_to_portrait.py <video_path> [options]
Options:
--width: Target width (default: 1080)--height: Target height (default: 1920)--mode: Resize mode (smart, center, letterbox) - default: smart--focus-x: Focus point X coordinate (0-1, smart mode)--focus-y: Focus point Y coordinate (0-1, smart mode)--output, -o: Output video path (default: <video_path>_portrait.mp4)--quality: Quality preset (fast, medium, slow) - default: fastExamples:
Basic resize to portrait:
python skills/portrait-resizer/scripts/resize_to_portrait.py video.mp4
Resize with smart cropping:
python skills/portrait-resizer/scripts/resize_to_portrait.py video.mp4 --mode smart
Resize with specific focus point:
python skills/portrait-resizer/scripts/resize_to_portrait.py video.mp4 --mode smart --focus-x 0.7 --focus-y 0.5
Center crop:
python skills/portrait-resizer/scripts/resize_to_portrait.py video.mp4 --mode center
Letterbox (padding on top/bottom):
python skills/portrait-resizer/scripts/resize_to_portrait.py video.mp4 --mode letterbox
scripts/batch_resize.pyResize multiple videos to portrait format.
Usage:
python skills/portrait-resizer/scripts/batch_resize.py --input-dir <dir> [options]
Options:
--input-dir: Directory with videos to resize--output-dir: Output directory (default: ./portrait/)resize_to_portrait.pyExample:
python skills/portrait-resizer/scripts/batch_resize.py --input-dir ./clips/ --output-dir ./portrait_clips/
Intelligently crops to focus on subjects:
Simple center crop:
Pillarbox/black bars:
Default Output:
Platform-Specific Presets:
presets = {
'tiktok': {
'width': 1080,
'height': 1920,
'bitrate': '4000k',
'fps': 30
},
'youtube_shorts': {
'width': 1080,
'height': 1920,
'bitrate': '4000k',
'fps': 30
},
'instagram_reels': {
'width': 1080,
'height': 1920,
'bitrate': '4000k',
'fps': 30
}
}
{
"success": true,
"input_path": "video.mp4",
"output_path": "video_portrait.mp4",
"input_resolution": {
"width": 1920,
"height": 1080
},
"output_resolution": {
"width": 1080,
"height": 1920
},
"mode": "smart",
"focus_point": {
"x": 0.65,
"y": 0.50
},
"quality_settings": {
"preset": "fast",
"crf": 23
}
}
After resizing, you can use these skills:
subtitle-overlay: Add captions to portrait videoautocut-shorts: Full workflow with all stepshighlight-scannervideo-trimmersubtitle-overlaytesting
Download videos from YouTube URLs. Use when user wants to download a YouTube video for processing, editing, or transcription. Supports different quality options, audio-only extraction, and playlist downloads.
tools
Trim and cut videos by timestamp with precision. Supports both stream copy (fast) and re-encoding (quality) modes. Use when you need to extract specific segments from videos, create clips from highlights, or cut unwanted portions.
development
Transcribe audio from videos using Whisper (local), OpenAI Whisper API, Google Speech-to-Text, or Gemini API (gemini-flash-lite-latest). Use when you need to convert video/audio to text for further processing, subtitle generation, or content analysis. Supports multiple languages, speaker diarization, and timestamp-accurate transcription. Gemini provides additional features like emotion detection and viral segment analysis.
tools
Add burned-in subtitles/captions to video clips. Supports SRT/VTT/ASS subtitle files, customizable styling (font, size, color, position), and platform-specific presets for TikTok, YouTube Shorts, and Instagram Reels.