Search found 93 matches
- 2015-01-27T05:38:58-07:00
- Forum: Users
- Topic: Any Imagemagick hardware and customization tips?
- Replies: 8
- Views: 6707
Re: Any Imagemagick hardware and customization tips?
Windows BAT syntax. Adjust for other shells. convert ^ img.png ^ ( +clone gradient_1.png -clut +write result_1.png +delete ) ^ ( +clone gradient_2.png -clut +write result_2.png +delete ) ^ ... ( +clone gradient_n.png -clut +write result_n.png +delete ) ^ NULL: EDIT: corrected to use different gradi...
- 2015-01-26T00:52:57-07:00
- Forum: Users
- Topic: Any Imagemagick hardware and customization tips?
- Replies: 8
- Views: 6707
Re: Any Imagemagick hardware and customization tips?
I recolor an image with multiple gradients like so: 'convert img.png gradient_1.png -clut result_1.png' 'convert img.png gradient_2.png -clut result_2.png' .... 'convert img.png gradient_n.png -clut result_n.png' Is there a way I can batch the process so the image to be converted stays in memory thr...
- 2015-01-21T16:39:16-07:00
- Forum: Users
- Topic: Any Imagemagick hardware and customization tips?
- Replies: 8
- Views: 6707
Re: Any Imagemagick hardware and customization tips?
Thanks for the thorough response. One of the commands I regularly use involves taking a grey-scale image and recoloring it using separate gradient files via convert with the gradients using the -clut argument. The gradients are rarely changed. Is there anyway to keep the gradients in memory so it do...
- 2015-01-19T15:33:09-07:00
- Forum: Users
- Topic: Any Imagemagick hardware and customization tips?
- Replies: 8
- Views: 6707
Any Imagemagick hardware and customization tips?
I've been using ImageMagick for masking, recoloring via -clut, and resizing anywhere from several hundred to a several thousand images at a time. Ideally we would like to speed things up a bit if at all possible. I was curious if anyone had any tips on what I can do to optimize ImageMagick or its en...
- 2013-07-05T05:58:23-07:00
- Forum: Users
- Topic: Imagemagick create thumbnail
- Replies: 13
- Views: 14296
Re: Imagemagick create thumbnail
-resize and its geometry argument is very flexible. Try adding the shrink only flag convert image.png -trim +repage -resize 32x32 > -gravity center -background none -extent 32x32 result.png The > character may need to be quoted or escaped on your platform. For other flags see: http://www.imagemagic...
- 2013-07-05T04:53:21-07:00
- Forum: Users
- Topic: Imagemagick create thumbnail
- Replies: 13
- Views: 14296
Re: Imagemagick create thumbnail
you can fill it with transparency. Your trim is removing a lot of width so that is why it is 9x32. convert image.png -trim +repage -resize 32x32 -gravity center -background none -extent 32x32 result.png POST trim, If the icon is SMALLER than 32x32, I just want to extend and not resize, is there a w...
- 2013-06-15T14:41:24-07:00
- Forum: Users
- Topic: Imagemagick create thumbnail
- Replies: 13
- Views: 14296
Re: Imagemagick create thumbnail
That appears to have worked perfectly. Thank you.fmw42 wrote:See my post just above yours. We must have posted at about the same time.We want to add some transparency to make it square.
- 2013-06-15T14:37:58-07:00
- Forum: Users
- Topic: Imagemagick create thumbnail
- Replies: 13
- Views: 14296
Re: Imagemagick create thumbnail
We want to add some transparency to make it square.snibgo wrote:Offering advice is far easier if we can see the image.
If the trimmed image isn't square, you must decide what you want to do: trim some of the image, or add some blank to make it square, or stretch the image.
- 2013-06-15T14:18:44-07:00
- Forum: Users
- Topic: Imagemagick create thumbnail
- Replies: 13
- Views: 14296
Re: Imagemagick create thumbnail
I tried that as well and it stretches the result to fit the size. I just want to have the same image but on a 32x32 canvas so all my thumbnails are 32x32.
- 2013-06-15T14:08:42-07:00
- Forum: Users
- Topic: Imagemagick create thumbnail
- Replies: 13
- Views: 14296
Re: Imagemagick create thumbnail
I tested repage with both resize and thumbnail. In both cases the image canvas is coming out 9x32. Same was without repage. I read though the examples to come up with what I have now. Trim takes out all of the transparent space, but then the canvas does not reset to 32x32 with the resize.
- 2013-06-15T14:02:43-07:00
- Forum: Users
- Topic: Imagemagick create thumbnail
- Replies: 13
- Views: 14296
Imagemagick create thumbnail
I have an image that is 200x200 I want to trim the white space, and make it into an icon that is 32x32. convert img.png -trim -resize 32x32 imgi.png This line of code does not work, it will not make the canvas a uniform 32x32. I have tried taking it and adding -canvas 32x32 or -extend 32x32 but then...
- 2013-06-14T14:56:16-07:00
- Forum: Users
- Topic: composite command line masking not working
- Replies: 15
- Views: 15406
Re: composite command line masking not working
Since you didn't provide input images, I'll generate my best understanding of them. convert rose: -resize 300x200! source.png convert -size 400x400 radial-gradient:white-black -gravity center -crop 300x200+0+0 mask.png convert source.png mask.png -compose CopyOpacity -composite result.png Will it s...
- 2013-06-14T14:14:45-07:00
- Forum: Users
- Topic: composite command line masking not working
- Replies: 15
- Views: 15406
Re: composite command line masking not working
The method needed would depend on the images you are working on. Looking at that stackoverflow post, there is a source/background image in RGB and a alpha/mask image in RGBA. The mask image is entirely black, only the alpha channel varies. Are these images the actual ones you are trying to combine?...
- 2013-06-14T13:57:12-07:00
- Forum: Users
- Topic: composite command line masking not working
- Replies: 15
- Views: 15406
Re: composite command line masking not working
Code: Select all
convert canvas.png item.png mask.png -composite out.png
- 2013-06-14T13:11:42-07:00
- Forum: Users
- Topic: composite command line masking not working
- Replies: 15
- Views: 15406
Re: composite command line masking not working
This works for strict on off masking. What about gradient masking? Ie Instead of black and white for 0 or 100% I want to include gray for the inbetweens(alpha) like 33%, 27%, 77% etc. That Way we could accomplish something similar to this post Here but in command line.