OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
2023-07-24 22:34:57 +00:00
parent b15f2dc8f9
commit b3a02da538
15 changed files with 83 additions and 37 deletions

View File

@@ -0,0 +1,22 @@
created: 20230117104437158
creator: Octt
modified: 20230724222006518
modifier: Octt
tags: $:/i18n:en
title: ImageMagick
<<^wikipediaframe ImageMagick en>>
!! ''Resources''
* [[Convert pdf to pdf without losing quality|https://stackoverflow.com/questions/49899547/imagemagik-convert-pdf-to-pdf-without-doing-anything#49900085]]
** //you have to upsize and put density first, e.g: `convert -density 288 input.pdf -resize 25% output.pdf`//
* [[ImageMagick using too much memory to convert PDF files|https://stackoverflow.com/questions/15384879/imagemagick-using-more-than-2gb-of-memory-to-convert-pdf-files]]
** How to limit resources used? [[-limit type value|http://www.imagemagick.org/script/command-line-options.php#limit]]
* [[Error "cache resources exhausted"|https://stackoverflow.com/questions/31407010/cache-resources-exhausted-imagemagick#53699200]]
** [[ImageMagick can come with very low limits|https://github.com/ImageMagick/ImageMagick/issues/396#issuecomment-326849298]], example before and after fix
* [[security policy 'PDF' blocking conversion|https://stackoverflow.com/a/59193253]]
** Edit `/etc/ImageMagick-7/policy.xml` to comment out a line like `<policy domain="coder" rights="none" pattern="PDF" />`, OR edit `rights="[...]"` to `rights="read|write"`