CRUNCHJPGS(1p)

πŸ“¦
version 1.60 Β· 2 versions
  • 1.60 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.60 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 is 50).
  • -s, --scale=num β€” picks the rescaling factor for the JPGs (default is 100%).
  • -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::PDF
  • listimages
  • extractallimages
  • extractjpgs
  • uninlinepdfimages

πŸ’œ 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