Page 1 of 1

HELP

Posted: 2018-02-26T01:35:04-07:00
by Puplip
For example, to add a gradient to a button I have to use ImageMagick to calculate the size of the button, write that size to a text file, then read that text file later.

Can this be done with IMagick?
trị mụn bằng tỏi và nghệ có tác dụng như thế nào

Re: HELP

Posted: 2018-02-26T10:36:57-07:00
by fmw42
You do not need to write the size to a text file. You can store that in a variable. In Unix, this would be

dimensions=$(convert image -format "%wx%h" info:)

You can also create gradients inline with sparse-color. See https://www.imagemagick.org/Usage/canva ... _gradients

Sorry, I do not know Imagick.

If you post your current Imagemagick code, perhaps we can suggest more efficient ways to do that.

But please always provide your Imagemagick version and platform/OS