CRUNCHJPGS(1p)
π CRUNCHJPGS π
okay bestie so like. crunchjpgs β she compresses ALL the JPG images in a PDF. every single one. no cap. π
β¨ SYNOPSIS β¨
crunchjpgs [options] infile.pdf [outfile.pdf]
Options:
-j --justjpgs make script skip non-JPGs
-q --quality select JPG output quality (default 50)
-s --scale=num select a rescaling factor for the JPGs (default 100%)
-m --scalemin=size don't scale JPGs smaller than this pixel size (width or height)
-O --only=imnum only change the specified images (can be used multiple times)
-S --skip=imnum don't change the specified images (can be used multiple times)
-o --order preserve the internal PDF ordering for output
--veryverbose increases the verbosity
-v --verbose print diagnostic messages
-h --help verbose help message
-V --version print CAM::PDF version
and here are the only values you can hand to --scale, periodt:
1 100%
2 50%
4 25%
8 12.5%
and imnum? that's a comma-separated list of integers pointing at the images, in the order they show up in the PDF. use listimages to go grab those image numbers, mkay? π«Ά
πΈ DESCRIPTION πΈ
okay first thing first: this needs the ImageMagick convert program to be available. like, actually there. it's giving "no convert, no crunch." π
so what she does is she tweaks all of the JPG images embedded in a PDF to make them smaller. the glow-down can come from cranking up the compression and/or rescaling the whole entire image. and the way she gives you full control over exactly which images get altered?? iconic. main character energy fr fr. π
π OPTIONS π
-j,--justjpgsβ makes the script skip over anything that isn't a JPG. not a JPG? not her problem. π-q,--qualityβ picks the JPG output quality (default is50).-s,--scale=numβ picks the rescaling factor for the JPGs (default is100%).-m,--scalemin=sizeβ don't scale JPGs smaller than this pixel size (that's width or height).-O,--only=imnumβ only change the images you name (can be used multiple times, stack 'em up).-S,--skip=imnumβ don't change the images you name (can be used multiple times too, so you can be picky).-o,--orderβ preserve the internal PDF ordering for output.--veryverboseβ increases the verbosity. like, a lot. she will NOT stop talking. π-v,--verboseβ print diagnostic messages.-h,--helpβ verbose help message.-V,--versionβ print CAM::PDF version.
π¦ SEE ALSO π¦
CAM::PDFlistimagesextractallimagesextractjpgsuninlinepdfimages
π AUTHOR π
See CAM::PDF π
and that's the whole page, bestie!! this beauty shipped with perl v5.36.0, dated 2022-12-08, and she lives her life under the name CRUNCHJPGS(1p). go compress something. slay. β¨ππ
π¦ where this page comes from
- debian bookworm: libcam-pdf-perl 1.60-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcam-pdf-perl 1.60-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcam-pdf-perl 1.60-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcam-pdf-perl 1.60-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcam-pdf-perl 1.60-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms