Website send door: imagemagick.org/index.php

Generate a single image

magick convert -density 220 -quality 80 3.pdf -append 3.jpeg
Copy the code

Generate multiple images

magick convert -density 220 -quality 80 3.pdf 3.jpeg
Copy the code

Generate multiple images with occasional black backgrounds

magick convert -density 220 -quality 80 3.pdf 3.png
Copy the code

Or generate JPG with a white background

magick convert -density 220 -quality 80 -background white -alpha remove 3.pdf 3.jpeg
Copy the code

Density is used to set DPI, and -quality is used to compress quality