displacement for only part of image... none for the rest...

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
wortell

displacement for only part of image... none for the rest...

Post by wortell »

say i've got a zig zag pattern, up-down-up-down-up-down...down-up-down (so as to make triangles...) i then use the distort arc 360 to distort it, but AS IT SHOULD the triangles at teh end - now displayed in a flower like form around the circular image - are rather distorted, is there a way that I could reverse it for a particular part of the image? Or only distort a part of the image, and then NOT distort theother part?

thanks.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: displacement for only part of image... none for the rest...

Post by anthony »

Repeat the question, with a couple of likes to the source and output images (small ones), and I'll take a look.

NOTE: Development is still happening with -distort and Arc distort. Currently I ma haveing some fuzzyness issues with thin lines, especially for minification such as what happens toward the middle of an arc distort. Expect things to change with the next release, and try using the pre-release beta version to keep up-to-date.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
wortell

Re: displacement for only part of image... none for the rest...

Post by wortell »

anthony wrote:Repeat the question, with a couple of likes to the source and output images (small ones), and I'll take a look.

NOTE: Development is still happening with -distort and Arc distort. Currently I ma haveing some fuzzyness issues with thin lines, especially for minification such as what happens toward the middle of an arc distort. Expect things to change with the next release, and try using the pre-release beta version to keep up-to-date.
i'm limited to what is being used by Fantastico and my hosting provider... i think i'm at 6.3.6?ish? at Hostican.com.

okay, how's this simpler question... how to create displacmenet maps wihtout being a genius? and using preset displacments... are there any other places to go to do this more visually?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: displacement for only part of image... none for the rest...

Post by anthony »

try something like this...

Code: Select all

convert -size 360x100 pattern:hs_diagcross -virtual-pixel mirror -distort arc '368 0 80 0' +repage -gravity center -crop 100x100+0+0 +repage  polar_cross.gif
Image (image will appear in a day or so, as IM examples updates).

The Arc angle was adjusted until the edges of the image matched up at the bottom.

Note the distort will not look right toward the middle of the image, with the latest ImageMagick IM v6.3.6 Distort is one of the latest additions to IM.

See IM Examples, distort, Arc
http://www.imagemagick.org/Usage/distorts/#arc

Again without more input there is little I can do.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply