How i can create image circle like this?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mostafanastary
Posts: 44
Joined: 2014-11-28T16:19:41-07:00
Authentication code: 6789

How i can create image circle like this?

Post 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?
mostafanastary
Posts: 44
Joined: 2014-11-28T16:19:41-07:00
Authentication code: 6789

Re: How i can create image circle like this?

Post 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
rondanyd
Posts: 1
Joined: 2014-12-01T07:24:47-07:00
Authentication code: 6789

Re: How i can create image circle like this?

Post by rondanyd »

Thanks for sharing! It seems like it was an easy fix, just not obvious.
mostafanastary
Posts: 44
Joined: 2014-11-28T16:19:41-07:00
Authentication code: 6789

Re: How i can create image circle like this?

Post 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.
Post Reply