How to further compress WebP images with ImageMagick?
I’m converting PNG images to WebP and trying to do maximum compression with ImageMagick.
ImageMagick ‘montage’: How to append images horizontally and to add space between them?
I need to append two images horizontally, that is, on the left and on the right sides, and to add space between them. Here is what I use currently for this:
To change the density so that image will be printed at a specified print size, in inches
The followig script creates a copy of the input image and changes its density so that the copy will be printed at a specified print size, in inches. For example, if you have a 100×200 pixel image and you want it to be printed so that it will fit 2×3 inch box, you need to specify outputPrintSize="2x3"
and then run script.sh input.jpg output.jpg
.
To change image density so that it will be printed at specific size
I have a 100×100 pixel image and I want to change its density so that it will be printed as 2×2 inches. How is it possible?
‘-units PixelsPerInch’ when changing density of a PNG image
Older ImageMagick solutions often suggest using -units PixelsPerInch
when changing the density of a PNG image, that is, for example, -units PixelsPerInch -density 300
, and not just -density 300
.
Convert pdf to single frame gif, quality is low
$ magick -version Version: ImageMagick 7.1.1-33 Q16-HDRI x64 057259c:20240525 https://imagemagick.org Copyright: (C) 1999 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Channel-masks(64-bit) Cipher DPC HDRI Modules OpenCL OpenMP(2.0) Delegates (built-in): bzlib cairo flif freetype gslib heic jng jp2 jpeg jxl lcms lqr lzma openexr pangocairo png ps raqm raw rsvg tiff webp xml zip zlib Compiler: Visual […]
Convert pdf to single frame git, quality is low
magick -density 300 garage.pdf[1] garage.gif magick -density 300 garage.pdf[1] garage.png I convert the first page of garage.pdf to gif and png, and compare the results. The gif quality is rough, especially on the text, but png quality is good. To compare, I also tried to convert the same pdf file to gif with PDF-XChange Viewer, […]
Slice long image into a multipage PDF
I have a 1200×7200 pixels PNG, and I want to slice it into a multipage PDF, 8.5×11 inches, with 1 inch margins.
Do we need to place ‘-units’ before ‘-density’ or ‘-resample’, or this doesn’t matter?
There was a really old (2011) thread on ImageMagick forum (see here), in which it was implicitly stated, if I understand correctly, that if processing PNG files (because the density of PNG images is stored as “pixels per centimeter” instead of “pixels per inch”), -units PixelsPerInch
should be specified before any other options.
The proper order in which ImageMagick command-line options should be specified
In comments to one of my recent ImageMagick questions, Fred Weinhaus noted: