Skip to content

Instantly share code, notes, and snippets.

@InbarDanieli
InbarDanieli / resize_images.sh
Created November 2, 2025 09:52
FFmpeg to resize image
# Script to resize images size to max 1200px width or height
# while maintaining aspect ratio using ffmpeg
# Set the assets directory path
ASSETS_DIR="[assets-folder-name]"
IMAGE_WIDTH=1200
IMAGE_HEIGHT=1200
# Check if ffmpeg is installed
if ! command -v ffmpeg &> /dev/null; then
flowchart TD;
     intro --> fix-life-support[fix life support];
     intro --> put-out-fire[put out fire];
     
      fix-life-support --> wake-the-crew[wake the crew]
      fix-life-support --> wear-desguise[wear a disguise]
     
     wear-desguise --> send-mark-in
     wear-desguise --> wake-the-crew-mark