From cd0364f28f6f9ffaf10a42a54338d65c3831d96c Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Fri, 15 Dec 2023 14:24:45 +0100 Subject: [PATCH 1/2] fiascotopnm, pnmtofiasco: add pages --- pages/common/fiascotopnm.md | 24 ++++++++++++++++++++++++ pages/common/pnmtofiasco.md | 20 ++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 pages/common/fiascotopnm.md create mode 100644 pages/common/pnmtofiasco.md diff --git a/pages/common/fiascotopnm.md b/pages/common/fiascotopnm.md new file mode 100644 index 0000000000..a6f309b4b2 --- /dev/null +++ b/pages/common/fiascotopnm.md @@ -0,0 +1,24 @@ +# fiascotopnm + +> Convert a compressed FIASCO file to a PNM image. +> More information: . + +- Convert a compressed FIASCO file to one or (in the case of video streams) multiple PNM files: + +`fiascotopnm {{path/to/file.fiasco}} -o {{output_file_basename}}` + +- Use fast decompression, resulting in a slightly descreased quality of the output file(s): + +`fiascotopnm --fast {{path/to/file.fiasco}} -o {{output_file_basename}}` + +- Load the options to be used from the specified configuration file: + +`fiascotopnm --config {{path/to/fiascorc}} {{path/to/file.fiasco}} -o {{output_file_basename}}` + +- Magnify the decompressed image(s) by a factor of 2^n: + +`fiascotopnm --magnify {{n}} {{path/to/file.fiasco}} -o {{output_file_basename}}` + +- Smooth the decompressed image by the specified amount: + +`fiascotopnm --smooth {{n}} {{path/to/file.fiasco}} -o {{output_file_basename}}` diff --git a/pages/common/pnmtofiasco.md b/pages/common/pnmtofiasco.md new file mode 100644 index 0000000000..0623071c9c --- /dev/null +++ b/pages/common/pnmtofiasco.md @@ -0,0 +1,20 @@ +# pnmtofiasco + +> Convert a PNM image to a compressed FIASCO file. +> More information: . + +- Convert a PNM image to a compressed FIASCO file: + +`pnmtofiasco {{path/to/file.pnm}} > {{path/to/file.fiasco}}` + +- Specify the [i]nput files through a pattern: + +`pnmtofiasco -i {{img[01-09+1].pnm}} > {{path/to/file.fiasco}}` + +- Specify the compression quality: + +`pnmtofiasco --quality {{quality_level}} {{path/to/file.pnm}} > {{path/to/file.fiasco}}` + +- Load the options to be used from the specified configuration file: + +`pnmtofiasco --config {{path/to/fiascorc}} {{path/to/file.pnm}} > {{path/to/file.fiasco}}` From fc9def5bc09b93fa74d7625bb007eb19c864f140 Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Fri, 15 Dec 2023 20:16:22 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: K.B.Dharun Krishna --- pages/common/fiascotopnm.md | 4 ++-- pages/common/pnmtofiasco.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/fiascotopnm.md b/pages/common/fiascotopnm.md index a6f309b4b2..b71dbd516c 100644 --- a/pages/common/fiascotopnm.md +++ b/pages/common/fiascotopnm.md @@ -3,11 +3,11 @@ > Convert a compressed FIASCO file to a PNM image. > More information: . -- Convert a compressed FIASCO file to one or (in the case of video streams) multiple PNM files: +- Convert a compressed FIASCO file to a PNM file or in the case of video streams multiple PNM files: `fiascotopnm {{path/to/file.fiasco}} -o {{output_file_basename}}` -- Use fast decompression, resulting in a slightly descreased quality of the output file(s): +- Use fast decompression, resulting in a slightly decreased quality of the output file(s): `fiascotopnm --fast {{path/to/file.fiasco}} -o {{output_file_basename}}` diff --git a/pages/common/pnmtofiasco.md b/pages/common/pnmtofiasco.md index 0623071c9c..270d5cdb57 100644 --- a/pages/common/pnmtofiasco.md +++ b/pages/common/pnmtofiasco.md @@ -9,7 +9,7 @@ - Specify the [i]nput files through a pattern: -`pnmtofiasco -i {{img[01-09+1].pnm}} > {{path/to/file.fiasco}}` +`pnmtofiasco --image-name {{img[01-09+1].pnm}} > {{path/to/file.fiasco}}` - Specify the compression quality: