Cylindrical displacement problem

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
sawankumar
Posts: 3
Joined: 2014-10-16T05:07:25-07:00
Authentication code: 6789

Cylindrical displacement problem

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Cylindrical displacement problem

Post 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.
snibgo's IM pages: im.snibgo.com
sawankumar
Posts: 3
Joined: 2014-10-16T05:07:25-07:00
Authentication code: 6789

Re: Cylindrical displacement problem

Post by sawankumar »

hi snibgo,

Can I use your maths in .net to make image cylindrical, how can I wrap place image to cylinder
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Cylindrical displacement problem

Post by snibgo »

I explain the maths on my page: http://im.snibgo.com/cylinder.htm
snibgo's IM pages: im.snibgo.com
sawankumar
Posts: 3
Joined: 2014-10-16T05:07:25-07:00
Authentication code: 6789

Re: Cylindrical displacement problem

Post by sawankumar »

I have seen your math, but i do not understand how to use it
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Cylindrical displacement problem

Post by fmw42 »

If you are on Linux or MacOSX or Windows/with Cygwin, see my script, cylinderize, at the link below.
Post Reply