chore(kb/pdf): slightly update process to reduce pdf files size

This commit is contained in:
Michele Cereda
2024-03-08 00:20:01 +01:00
parent 94588abe09
commit 3000166fe2
3 changed files with 11 additions and 0 deletions

View File

@@ -18,6 +18,13 @@ gs -dNOPAUSE -dQUIET -dBATCH \
-sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dCompatibilityLevel=1.4 \ -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dCompatibilityLevel=1.4 \
-sOutputFile=path/to/small/file.pdf \ -sOutputFile=path/to/small/file.pdf \
path/to/massive/file.pdf path/to/massive/file.pdf
gs \
-o /path/to/resized.pdf \
-sDEVICE=pdfwrite \
-dPDFFitPage \
-r300x300 \
-g2550x3300 \
/path/to/original.pdf
``` ```
## Reduce the size of PDF files ## Reduce the size of PDF files

View File

@@ -16,6 +16,7 @@ Components:
```sh ```sh
# Scale images to 50% its original size. # Scale images to 50% its original size.
magick convert -adaptive-resize '50%' 'in.jpg' 'out.jpg' magick convert -adaptive-resize '50%' 'in.jpg' 'out.jpg'
ls -1 *.jpeg | parallel -qt magick convert -adaptive-resize '50%' {} scaled_{}
# Create GIFs from single images. # Create GIFs from single images.
magick *.jpg 'out.gif' magick *.jpg 'out.gif'

View File

@@ -170,6 +170,8 @@ In the Preview app:
1. Click the _Quartz Filter_ pop-up menu, then choose _Reduce File Size_. 1. Click the _Quartz Filter_ pop-up menu, then choose _Reduce File Size_.
1. Click the _Export_ button. 1. Click the _Export_ button.
Alternatively, check [ImageMagick] or [Ghostscript] out.
## Manage tags ## Manage tags
Tags are stored both in a file's or folder's `com.apple.metadata:_kMDItemUserTags` extended attribute. Tags are stored both in a file's or folder's `com.apple.metadata:_kMDItemUserTags` extended attribute.
@@ -410,6 +412,7 @@ To use any of these key combinations, press and hold the keys immediately after
<!-- Knowledge base --> <!-- Knowledge base -->
[defaults]: defaults.md [defaults]: defaults.md
[ghostscript]: ../ghostscript.md
[imagemagick]: ../imagemagick.md [imagemagick]: ../imagemagick.md
[jdberry/tag]: tag.md [jdberry/tag]: tag.md
[little snitch]: little%20snitch.md [little snitch]: little%20snitch.md