summaryrefslogtreecommitdiff
path: root/docs/modules
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2022-05-31 23:52:12 -0600
committerDan Allen <dan.j.allen@gmail.com>2022-06-01 00:32:27 -0600
commitd43483eda862d67b10827ca840b2e845818c1fbc (patch)
tree503f10c4a98b1218ff9bf5adf232671b05eae772 /docs/modules
parent4c71f04baf6c06c4fbebc2967953b98087f2704d (diff)
clarify that the costly operation with embedding PNG images is zlib inflating
Diffstat (limited to 'docs/modules')
-rw-r--r--docs/modules/ROOT/pages/image-paths-and-formats.adoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/modules/ROOT/pages/image-paths-and-formats.adoc b/docs/modules/ROOT/pages/image-paths-and-formats.adoc
index cc3c0e7b..57c0d49c 100644
--- a/docs/modules/ROOT/pages/image-paths-and-formats.adoc
+++ b/docs/modules/ROOT/pages/image-paths-and-formats.adoc
@@ -53,7 +53,7 @@ prawn-gmagick is an extension for Prawn (Linux and macOS only) that delegates im
prawn-gmagick has the additional benefit of *significantly* reducing the processing time, power, and memory necessary to generate a PDF that contains a lot of PNG images.
For large books (such as Pro Git), you might see the conversion time drop by as much as half.
-Decoding PNG images requires a lot of mathematical computation, a task Ruby is not particularly efficient at performing.
+Uncompressing PNG image data (specifically zlib inflating) requires a lot of mathematical computation, a task Ruby is not particularly efficient at performing.
That's why adding the prawn-gmagick gem to the converter makes such a substantial difference.
As an alternative to using prawn-gmagick, you could optimize the images you pass into Asciidoctor PDF, either by scaling them down or converting them to an uncompressed format like JPG.