mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #1243] Question: PDF file size unnecessarily large #3785
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#3785
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @allen7u on GitHub (Oct 11, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1243
The PDF file size usually seems unnecessarily large, which will easily exceed 30M. Is there a way or config to compress them on the fly?

@pirate commented on GitHub (Oct 11, 2023):
PDF size is mostly dependent on the size of the images in the page, as it reproduces them in full resolution and doesn't do any compression by default to avoid losing quality.
I would recommend using an external utility or filesystem-level compression to reduce size, e.g. ZFS with
-o compression=lz4. https://linuxhint.com/enable-zfs-compression/You can also run a compression utility like ghostscript across all the PDFs in one go like so: https://www.digitalocean.com/community/tutorials/reduce-pdf-file-size-in-linux
some-compression-tool ./archive/*/output.pdf