published: ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 photo.jpg run: ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 photo.jpg 4032,3024 exit=0 published: ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 photo.jpg run: ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 small-3x4.jpg edge: smaller 600x800 portrait input 600,800 exit=0 published: ffmpeg -i photo.jpg -vf "scale=1080:1350:force_original_aspect_ratio=increase,crop=1080:1350" -q:v 2 post-4x5.jpg run: ffmpeg -y -v error -i photo.jpg -vf "scale=1080:1350:force_original_aspect_ratio=increase,crop=1080:1350" -q:v 2 /tmp/ig-cmd/post-4x5.jpg && ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 /tmp/ig-cmd/post-4x5.jpg 1080,1350 exit=0 published: ffmpeg -i photo.jpg -vf "scale=1080:1350:force_original_aspect_ratio=increase,crop=1080:1350" -q:v 2 post-4x5.jpg run: ffmpeg -y -v error -i small-3x4.jpg -vf "scale=1080:1350:force_original_aspect_ratio=increase,crop=1080:1350" -q:v 2 /tmp/ig-cmd/post-4x5-small.jpg && ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 /tmp/ig-cmd/post-4x5-small.jpg edge: 600x800 input is smaller than the target: scaled UP to 1080 wide, so no detail is added 1080,1350 exit=0 published: ffmpeg -i photo.jpg -vf "scale=1080:1350:force_original_aspect_ratio=increase,crop=1080:1350" -q:v 2 post-4x5.jpg run: ffmpeg -y -v error -i wright-mountain-cc0.jpg -vf "scale=1080:1350:force_original_aspect_ratio=increase,crop=1080:1350" -q:v 2 /tmp/ig-cmd/post-4x5-exif.jpg && ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 /tmp/ig-cmd/post-4x5-exif.jpg edge: original file with EXIF orientation 3: ffmpeg applies the rotation, output still 1080x1350 1080,1350 exit=0 published: ffmpeg -i post-4x5.jpg -vf "crop=ih*3/4:ih" grid-preview.jpg run: ffmpeg -y -v error -i /tmp/ig-cmd/post-4x5.jpg -vf "crop=ih*3/4:ih" /tmp/ig-cmd/grid-preview.jpg && ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 /tmp/ig-cmd/grid-preview.jpg 1012,1350 exit=0 published: ffmpeg -i post-4x5.jpg -vf "crop=ih*3/4:ih" grid-preview.jpg run: ffmpeg -y -v error -i /tmp/ig-cmd/post-4x5-small.jpg -vf "crop=ih*3/4:ih" /tmp/ig-cmd/grid-preview-small.jpg && ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 /tmp/ig-cmd/grid-preview-small.jpg edge: input made from the 600x800 file 1012,1350 exit=0