Low Quality Image Placeholder Generation
Posted: 2019-03-07T16:31:21-07:00
Hi All,
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 -
[0] - https://drive.google.com/open?id=1m9_uD ... vhwgMcq2CM
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
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