{"id":12887,"date":"2025-03-04T01:36:53","date_gmt":"2025-03-04T00:36:53","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=12887"},"modified":"2025-03-04T01:36:53","modified_gmt":"2025-03-04T00:36:53","slug":"imagemagick-reduce-size-of-pdf","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2025\/03\/04\/imagemagick-reduce-size-of-pdf\/","title":{"rendered":"imagemagick reduce size of pdf"},"content":{"rendered":"<blockquote><p>convert -density 150 -quality 60 -compress jpeg Test.pdf Test-150-060-jpeg.pdf<\/p><\/blockquote>\n<p>Source: <em><a href=\"https:\/\/stackoverflow.com\/questions\/71352295\/imagemagick-reduce-size-of-pdf\">imagemagick reduce size of pdf &#8211; Stack Overflow<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">convert -density 150 -quality 60 -compress jpeg Test.pdf Test-150-060-jpeg.pdf Source: imagemagick reduce size of pdf &#8211; Stack Overflow<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2025\/03\/04\/imagemagick-reduce-size-of-pdf\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[278],"tags":[],"class_list":["post-12887","post","type-post","status-publish","format-standard","hentry","category-tricks"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-3lR","jetpack-related-posts":[{"id":10651,"url":"https:\/\/monodes.com\/predaelli\/2023\/07\/22\/converting-a-multi-page-pdf-to-multiple-pages-using-a-single-command\/","url_meta":{"origin":12887,"position":0},"title":"Converting a multi page pdf to multiple pages using a single command","author":"Paolo Redaelli","date":"2023-07-22","format":false,"excerpt":"imagemagick - Converting a multi page pdf to multiple pages using a single command - Stack Overflow It's as simple as convert x.pdf x-%04d.jpg Where 4 means 4 digits will be show on the page count. You can change jpg to webp or whatever and ImageMagick understand it. The codes\u2026","rel":"","context":"In &quot;Tricks&quot;","block_context":{"text":"Tricks","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/tricks\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7334,"url":"https:\/\/monodes.com\/predaelli\/2020\/06\/11\/imagemagick-remove-black-borders\/","url_meta":{"origin":12887,"position":1},"title":"ImageMagick &#8211; Remove black borders","author":"Paolo Redaelli","date":"2020-06-11","format":false,"excerpt":"It is as simple as: magick mogrify -fuzz 4% -define trim:percent-background=0% -trim +repage -format jpg img.jpg Source: Stack Overflow","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1620,"url":"https:\/\/monodes.com\/predaelli\/2016\/06\/02\/jquery-image-manipulation\/","url_meta":{"origin":12887,"position":2},"title":"Jquery Image manipulation","author":"Paolo Redaelli","date":"2016-06-02","format":"link","excerpt":"Jqmagick : ImageMagick & Jquery Image manipulation","rel":"","context":"In &quot;Javascript&quot;","block_context":{"text":"Javascript","link":"https:\/\/monodes.com\/predaelli\/category\/javascript\/"},"img":{"alt_text":"jqmagick","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/06\/jqmagick-300x262-1.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":13797,"url":"https:\/\/monodes.com\/predaelli\/2025\/07\/20\/13797\/","url_meta":{"origin":12887,"position":3},"title":"I visited Terence blog to\u2026","author":"Paolo Redaelli","date":"2025-07-20","format":false,"excerpt":"I visited Terence blog to read about some Easy ways to add watermarks to images and videos in Linux but I found a very nice and clean to take inspiration from! Mostly notes to myself :-) Here is a quick way to add watermarks to photos and videos. All Linux\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/shkspr.mobi\/blog\/wp-content\/litespeed\/avatar\/af6a5dd8373bf52386c67599d3a74158.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1974,"url":"https:\/\/monodes.com\/predaelli\/2016\/12\/16\/getting-your-latex-book-to-print\/","url_meta":{"origin":12887,"position":4},"title":"Getting Your (LaTex) Book to Print","author":"Paolo Redaelli","date":"2016-12-16","format":false,"excerpt":"As I explained yesterday, making a custom text from the OLP source using LaTeX is relatively easy.\u00a0 But, I\u2019d also like to get an attractively printed version with covers and everything.\u00a0 So I\u2026 Sorgente: Getting Your Book to Print | Open Logic Project As I explained yesterday, making a custom\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/12\/blurb-772x521.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/12\/blurb-772x521.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/12\/blurb-772x521.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2016\/12\/blurb-772x521.png?resize=700%2C400 2x"},"classes":[]},{"id":8192,"url":"https:\/\/monodes.com\/predaelli\/2021\/02\/24\/adding-company-logo-to-any-pdf-file\/","url_meta":{"origin":12887,"position":5},"title":"Adding company logo to any PDF file","author":"Paolo Redaelli","date":"2021-02-24","format":false,"excerpt":"clawPDF Open Source virtual PDF printer for Windows \/\/ Print to PDF, PDF\/A, PDF\/X, PNG, JPEG, TIF and text And it allows to easily add a background image to a PDF, so you can headers and footer of your company to documents printed by legacy applications","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/monodes.com\/predaelli\/category\/software\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/12887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=12887"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/12887\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=12887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=12887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=12887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}