In all the samples provided in this book we just follow a bunch of commands and set some options in them without considering factors like size, quality, and compression.
In this appendix we will take a look at the options that ImageMagick has provided for them and some hints about the best way to select an image format for our work and compress it using a suitable algorithm.
The goal of image compression is reducing the size of an image so it can be saved using less space and can be read faster especially when we are dealing with online image processing tasks.
But it definitely has its costs. By compressing an image we reduce its quality. It is up to you as a user to choose the right format and compression scheme to achieve a good balance between quality and compression. Let us see what capabilities we can find in ImageMagick for handling these issues.