published: python3 ico-check.py favicon.ico run: python3 ico-check.py fav/logo-flat-badge-crop/favicon.ico exit=0 edge: test file: the flat badge logo, crop output: fav/logo-flat-badge-crop/favicon.ico sizes [(16, 16), (32, 32), (48, 48)] | 16 px: 256 of 256 pixels alpha>=128 (100%), box (0, 0, 16, 16)| published: python3 ico-check.py favicon.ico run: python3 ico-check.py fav/logo-wide-lockup-fit/favicon.ico exit=0 edge: wide lock-up in fit mode: 96 of 256 expected output: fav/logo-wide-lockup-fit/favicon.ico sizes [(16, 16), (32, 32), (48, 48)] | 16 px: 96 of 256 pixels alpha>=128 (38%), box (0, 5, 16, 11)| published: python3 ico-check.py favicon.ico run: python3 ico-check.py ctl/control-quarter.ico exit=0 edge: control file with a known left quarter opaque: 64 of 256 expected output: ctl/control-quarter.ico sizes [(16, 16), (32, 32), (48, 48)] | 16 px: 64 of 256 pixels alpha>=128 (25%), box (0, 0, 4, 16)| published: python3 ico-check.py favicon.ico run: python3 ico-check.py ctl/empty.ico exit=0 edge: edge: empty file, an error message and no crash output: ctl/empty.ico => ERROR: missing or empty file| published: python3 ico-check.py favicon.ico run: python3 ico-check.py ctl/notico.ico exit=0 edge: edge: a text file named .ico output: ctl/notico.ico => ERROR: not an ICO file (UnidentifiedImageError)| published: python3 ico-check.py favicon.ico run: python3 ico-check.py ctl/missing.ico exit=0 edge: edge: file that does not exist output: ctl/missing.ico => ERROR: missing or empty file| published: python3 ico-check.py favicon.ico run: python3 ico-check.py exit=1 edge: edge: no arguments, usage message output: usage: ico-check.py [--montage ] ...| published: ffmpeg -y -i logo.jpg -vf "crop=300:300:250:70" -frames:v 1 icon.png run: ffmpeg -y -i src/logo-flat-badge.jpg -vf "crop=300:300:250:70" -frames:v 1 icon-check.png exit=0 edge: test file: the symbol of the flat badge logo, 300 x 300 px output: [image2 @ 0x586577920200] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.|frame= 1 fps=0.0 q=-0.0 size=N/A time=00:00:00.00 bitrate=N/A speed=N/A [out#0/image2 @ 0x58657791acc0] video:67kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: u|frame= 1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x | published: ffmpeg -y -i logo.jpg -vf "crop=300:300:250:70" -frames:v 1 icon.png run: ffmpeg -y -i src/logo-wide-lockup.jpg -vf "crop=500:500:0:0" -frames:v 1 icon-check2.png exit=234 edge: edge: the box (500 px high) is taller than the 400 px high picture output: [out#0/image2 @ 0x5e04c9357cc0] Nothing was written into output file, because at least one of its streams received no packets.|frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=N/A bitrate=N/A speed=N/A |Conversion failed!| published: ffmpeg -y -i logo.jpg -vf "crop=300:300:250:70" -frames:v 1 icon.png run: ffmpeg -y -i src/missing.jpg -vf "crop=300:300:250:70" -frames:v 1 icon-check3.png exit=254 edge: edge: input file does not exist output: [in#0 @ 0x6271bc6e2d80] Error opening input: No such file or directory|Error opening input file src/missing.jpg.|Error opening input files: No such file or directory| published: python3 ico-check.py favicon.ico run: python3 ico-check.py ctl/keep.ico ctl/control-quarter.ico (two files, no dash: nothing is overwritten) exit=0 edge: edge: two files in one call, input unchanged output: ctl/keep.ico sizes [(16, 16), (32, 32), (48, 48)] | 16 px: 256 of 256 pixels alpha>=128 (100%), box (0, 0, 16, 16)|ctl/control-quarter.ico sizes [(16, 16), (32, 32), (48, 48)] | 16 px: 64 of 256 pixels alpha>=128 (25%), box (0, 0, 4, 16)| md5 of ctl/keep.ico before de5f29c3, after de5f29c3 published: python3 ico-check.py favicon.ico run: python3 ico-check.py ctl/one32.ico exit=0 edge: edge: an ICO with one 32 px frame, no 16 px frame output: ctl/one32.ico sizes [(32, 32)] => no 16 px frame| published: python3 ico-check.py favicon.ico run: python3 ico-check.py ctl/renamed.ico exit=0 edge: edge: a PNG picture renamed .ico output: ctl/renamed.ico => ERROR: not an ICO file (it is a PNG picture with an .ico name)| published: python3 ico-check.py favicon.ico run: python3 ico-check.py --montage ctl/keep.ico ctl/keep.ico exit=1 edge: edge: montage name equal to an input is refused output: refusing to write the montage over an input or to a non-.png name: ctl/keep.ico| published: python3 ico-check.py favicon.ico run: python3 ico-check.py --montage ctl/m.png ctl/keep.ico exit=0 edge: edge: --montage writes a PNG only when asked output: ctl/keep.ico sizes [(16, 16), (32, 32), (48, 48)] | 16 px: 256 of 256 pixels alpha>=128 (100%), box (0, 0, 16, 16)| published: ffmpeg -y -i logo.jpg -vf "crop=300:300:250:70" -frames:v 1 icon.png run: ffmpeg -y -i src/logo-flat-badge.jpg -vf "crop=300:300:700:400" -frames:v 1 icon-check4.png exit=0 edge: edge: the corner (700, 400) leaves the 800 x 600 picture: ffmpeg moves the box and still exits 0 output: [image2 @ 0x5a86e6d00200] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.|[out#0/image2 @ 0x5a86e6cfacc0] video:12kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown|frame= 1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x | size of the written file icon-check4.png: (300, 300)