AVIFDEC(1)
π AVIFDEC β the decompress girlie β¨
okay so bestie, welcome to avifdec, part of the General Commands Manual lineup π this is the libavif tool that takes your AVIF files and turns them back into actual images. she's giving reverse-makeover energy and honestly? iconic.
π NAME π
avifdec β decompress an AVIF file to an image file π
πΈ SYNOPSIS πΈ
avifdec [options] input.avif output.[jpg|jpeg|png|y4m]
avifdec --info input.avif
like. give her an input, give her an output, optionally whisper some options at her. that's the whole relationship fr fr π«Ά
π¦ DESCRIPTION π¦
avifdec decompresses an AVIF file to an image file. no cap, that's the job. the output format can be JPEG, PNG or YUV4MPEG2 (Y4M) β she reads the vibe of your output filename and just... knows β¨
π OPTIONS π
so many little knobs and honestly each one ate:
-h,--helpβ show syntax help. your girl explains herself.-V,--versionβ show the version number. for the nosy besties.-j,--jobs Jβ number of jobs (worker threads), orallto potentially use as many cores as possible. (Default:all). she will absolutely use your whole CPU and she's not sorry π₯-c,--codec Cβ codec to use. possible values depend on the codecs enabled at build time (peep--helpor--versionfor the available codecs). default is auto-selected from the available codecs. the possible values are:aomdav1dlibgav1
-d,--depth Dβ output depth, either8or16. (PNG only; for y4m, depth is retained, and JPEG is always 8bpc). soz jpeg girlies, 8 is all you get.-q,--quality Qβ output quality in0..100. (JPEG only, default:90).--png-compress Lβ PNG compression level in0..9(PNG only;0=none,9=max). defaults to libpng's builtin default.-u,--upsampling Uβ chroma upsampling (for 420/422). one ofautomatic(default),fastest,best,nearest, orbilinear.-r,--raw-colorβ output raw RGB values instead of multiplying by alpha when saving to opaque formats (JPEG only; not applicable to y4m).--index Iβ when decoding an image sequence or progressive image, specify which frame index to decode, where the first frame has index0, orallto decode all frames. (Default:0).--progressiveβ enable progressive AVIF processing. if a progressive image is encountered and--progressiveis passed,avifdecwill use--indexto choose which layer to decode (in progressive order).--no-strictβ disable strict decoding, which disables strict validation checks and errors. living dangerously, love that for you π-i,--infoβ decode all frames and display all image information instead of saving to disk. the ~look but don't touch~ option.--icc FILENAMEβ provide an ICC profile payload (implies--ignore-icc).--ignore-iccβ if the input file contains an embedded ICC profile, ignore it (no-op if absent).--size-limit Cβ maximum image size (in total pixels) that should be tolerated. (Default:268435456).--dimension-limit Cβ maximum image dimension (width or height) that should be tolerated. set to0to ignore. (Default:32768).--β signal the end of options. everything after this is interpreted as file names. the classic "okay we're done with flags now" divider β
tiny note bestie: if anything in here is about strict validation or limits, take it seriously β those exist to stop cursed files from ruining your day π
π EXAMPLES π
decompress an AVIF file to a PNG file:
$ avifdec input.avif output.png
one line. one slay. go off π
π REPORTING BUGS π
bugs can be reported on GitHub at:
https://github.com/AOMediaCodec/libavif/issues
if she did something weird, tell the devs, not me π they're very nice.
β SEE ALSO β
avifenc(1) β the other half of the duo, the one who puts AVIFs together. sibling energy fr.
mwah π this page is from libavif 1.4.2, dated 2022-04-30 β so if you're reading this in the future, hi, you're a time traveler, and this manual was still serving. πβ¨
π¦ where this page comes from
- ubuntu stonking: libavif-bin 1.4.2-1ubuntu1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms