I pretty new to Image Magick and working on a solution to create a low-quality placeholder image for any given image (jpeg/png/gif).
My main goal is to get a blurred image which will be of the same dimension of the original image but very very low sized.
Let's say a placeholder image of a 2400 × 1474px and 1MB JPEG image will be of the same dimension but the size of it will be less than 20kb(or even lesser). Also, it should be blurred to hide the pixel losses.
- Attaching the original JPEG and a generated placeholder JPEG (which looks good but needs more compression).
- Attaching the original PNG for which I am not able to get a decent blurred placeholder image with a size less than 20kb.
Commands that I have used -
Code: Select all
convert original.jpeg -quality 40 -blur 0x80 ph.jpeg
Image Magick Version - IM 6 and 7 (Need to support both)
OS Version - Mac OS - 10.13.3
Would really appreciate help in this.
Thanks,
Sabya