Page 1 of 1

Cylindrical displacement problem

Posted: 2014-10-16T07:00:58-07:00
by sawankumar
"convert " + Server.MapPath(source) + " -background White -gravity south -splice 0x50 '\'( +clone -sparse-color barycentric '0,0 black 69,0 white') '\'( +clone -function arcsin 0.1) '\'( -clone 1 -level 25%,75% -function polynomial -4,4,0 -gamma 2 +level 50%,0) -delete 1 -virtual-pixel black -compose displace -define compose:args=17x7 -composite " + Server.MapPath(flname) + "

I am using above script in .net using MagickCMD.exe but its not generating cylindrical image.

i want some thing like this
http://www.zazzle.com/cr/design/pt-zazz ... 3419453915

Re: Cylindrical displacement problem

Posted: 2014-10-16T07:20:06-07:00
by snibgo
[Mod note: As this isn't a response to the original topic, I have split it to a new topic.]

Each close-parenthesis ) may need a space before it as well as after, and may need escaping.

The numbers will depend on the size of your source, how far round the cylinder it should go, etc.

You can check the maths against Fred's cylinderize script, or my page.

Re: Cylindrical displacement problem

Posted: 2014-10-16T07:57:13-07:00
by sawankumar
hi snibgo,

Can I use your maths in .net to make image cylindrical, how can I wrap place image to cylinder

Re: Cylindrical displacement problem

Posted: 2014-10-16T08:36:17-07:00
by snibgo
I explain the maths on my page: http://im.snibgo.com/cylinder.htm

Re: Cylindrical displacement problem

Posted: 2014-10-17T06:46:06-07:00
by sawankumar
I have seen your math, but i do not understand how to use it

Re: Cylindrical displacement problem

Posted: 2014-10-17T09:17:46-07:00
by fmw42
If you are on Linux or MacOSX or Windows/with Cygwin, see my script, cylinderize, at the link below.