Page 1 of 1

How i can create image circle like this?

Posted: 2014-11-30T12:11:34-07:00
by mostafanastary
hi

i read the

http://www.imagemagick.org/Usage/layers/#layer_calc

and saw :

convert {balloon,castle,eye,eyeguy,ghost,hand_point,medical}.gif \
{news,noseguy,paint_brush,pencil,present,recycle}.gif \
{shading,skull,snowman,storm,terminal,tree}.gif \
\
-set page '+%[fx:80*cos((t/n)*2*pi)]+%[fx:80*sin((t/n)*2*pi)]' \
\
-background none -layers merge +repage image_circle.png

i change it to :

exec("convert 1.png 2.png 3.png ((((N.png)))) -set page '+%[fx:80*cos((t/n)*2*pi)]+%[fx:80*sin((t/n)*2*pi)]' -background none -layers merge +repage image_circle.png");

but the result is :

Image

any help please?

Re: How i can create image circle like this?

Posted: 2014-11-30T12:56:40-07:00
by mostafanastary
hi again,

i remove ' ' from inside and code like:

exec("convert 1.png 2.png 3.png ((((N.png)))) -set page +%[fx:80*cos((t/n)*2*pi)]+%[fx:80*sin((t/n)*2*pi)] -background none -layers merge +repage image_circle.png");

and it work very good.

Image

Re: How i can create image circle like this?

Posted: 2014-12-01T07:29:01-07:00
by rondanyd
Thanks for sharing! It seems like it was an easy fix, just not obvious.

Re: How i can create image circle like this?

Posted: 2014-12-01T08:23:27-07:00
by mostafanastary
Thanks for sharing! It seems like it was an easy fix, just not obvious.
your welcome, if you change 80 to other integer you can get another result.