Search found 10 matches
- 2019-03-08T14:38:29-07:00
- Forum: Users
- Topic: Low Quality Image Placeholder Generation
- Replies: 4
- Views: 5018
Re: Low Quality Image Placeholder Generation
Thanks fmw42. I get it. So, for a given png/jpeg image, if I always convert that to a jpeg and compress + blur it, can I get it to below 20kb? What would my convert command look in that case? I have tried jpeg:extent, but most of the times thats not bringing the size down to my expected size. I am ...
- 2019-03-07T16:31:21-07:00
- Forum: Users
- Topic: Low Quality Image Placeholder Generation
- Replies: 4
- Views: 5018
Low Quality Image Placeholder Generation
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 ...
- 2019-03-07T15:43:45-07:00
- Forum: Users
- Topic: Get image background color and create a new image
- Replies: 13
- Views: 13792
Re: Get image background color and create a new image
Cool. Thanks. It works.
I'm probably stuck in the last part of the issue where I am trying to get the size down for the generated JPEG image.
I'm probably stuck in the last part of the issue where I am trying to get the size down for the generated JPEG image.
- 2019-03-07T15:02:02-07:00
- Forum: Users
- Topic: Get image background color and create a new image
- Replies: 13
- Views: 13792
Re: Get image background color and create a new image
Thanks GeeMack.
I am getting this when I run this my terminal.
convert original.png -set option:distort:viewport %[w]x%[h] -resize 1x1 -distort SRT 0 otter.png
I am getting this when I run this my terminal.
convert original.png -set option:distort:viewport %[w]x%[h] -resize 1x1 -distort SRT 0 otter.png
zsh: no matches found: %[w]x%[h]
- 2019-03-07T14:55:13-07:00
- Forum: Users
- Topic: Get image background color and create a new image
- Replies: 13
- Views: 13792
Re: Get image background color and create a new image
I have tried to compress the size of the output file with defining an extent for jpeg. But that does not seem to be honored it seems.
Code: Select all
convert original.jpeg -resize 1x1 -scale 2400x1474 -define jpeg:extent=1kb out-3.jpeg
- 2019-03-07T14:46:56-07:00
- Forum: Users
- Topic: Get image background color and create a new image
- Replies: 13
- Views: 13792
Re: Get image background color and create a new image
Thanks, fmw42. I see the limitations. For now, I can deal with passing the image dimension as a parameter to the command. With convert original.jpeg -resize 1x1 -scale 2400x1474 out-1.jpeg . I can get the placeholder image created with a size ~26kb for JPEG and below 1kb for a PNG. Is there any way ...
- 2019-03-07T14:20:49-07:00
- Forum: Users
- Topic: Get image background color and create a new image
- Replies: 13
- Views: 13792
Re: Get image background color and create a new image
Also,
I think I need to downgrade IM version to ImageMagick 6.7.8-9 (for some organizational and OS requirements).
So, want to make sure the magick command will work on that version too.
I think I need to downgrade IM version to ImageMagick 6.7.8-9 (for some organizational and OS requirements).
So, want to make sure the magick command will work on that version too.
- 2019-03-07T14:11:14-07:00
- Forum: Users
- Topic: Get image background color and create a new image
- Replies: 13
- Views: 13792
Re: Get image background color and create a new image
Sorry. Being dumb here.
It says
It says
when I ran the command.no matches found: %[MYSIZE]
- 2019-03-07T13:10:24-07:00
- Forum: Users
- Topic: Get image background color and create a new image
- Replies: 13
- Views: 13792
Re: Get image background color and create a new image
Thanks snibgo!
This works perfectly.
Few things I am missing with this
Is there any way to know/calculate the dimension of original.jpeg and pass it on to scale instead of hardcoding 2400x1474?
This works perfectly.
Few things I am missing with this
Code: Select all
magick original.jpeg -resize 1x1 -scale 2400x1474 out.png
- 2019-03-07T12:46:43-07:00
- Forum: Users
- Topic: Get image background color and create a new image
- Replies: 13
- Views: 13792
Get image background color and create a new image
Hi All, I am very new to Image Magick and have used the basic image magick commands. I am currently working in a use case where I want to get the background color of a given image and use that to create a placeholder image (low quality very small image but with the same dimension of the actual image ...