Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
R.L. Dane :Debian: :OpenBSD: 馃嵉
R.L. Dane :Debian: :OpenBSD: 馃嵉
@rl_dane@polymaths.social  路  activity timestamp 3 days ago

The lossless data compression fairies are having fun with me today...

  • Scan 8.5" x 11" document at 1200dpi @ greyscale
  • -> 60 MiB PNG, thank you
  • Open PNG in GIMP, select a good threshold point, convert to 1bpp
  • -> 514 KiB PNG
  • Wait... 116:1 compression from 8-bit PNG to 1-bit PNG? HOW??
  • convert to pdf
  • "Warning, this file is really huge and may actually be a decompression bomb" lol, ok.
  • -> 515 KiB PDF, nice
  • ocrmypdf foo.pdf document.pdf
  • -> 194 KiB PDF
  • WHAT? HOW?!?
  • pdfimages -png document.pdf foo
  • -> 514 KiB PNG
  • WHAT IS HAPPENING?!?

#PDF #PNG #Compression #Greyscale

  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About 路 Code of conduct 路 Privacy 路 Users 路 Instances
Bonfire social 路 1.0.2-alpha.7 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct