Is there something like -tile-rotate ?

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
odvarko
Posts: 2
Joined: 2011-04-05T02:51:48-07:00
Authentication code: 8675308

Is there something like -tile-rotate ?

Post by odvarko »

Hello folks,

I'm trying to fill curved shape with tiled image. I'm able to scale and move that image, but I'd also like to rotate it by specified angle. If I rotate it before tiling, I'll get the ugly white space between tiles.

Is there a way to change the rotation of tiles?

Thanks in advance,

Jan Odvarko

Image
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Is there something like -tile-rotate ?

Post by fmw42 »

tile your patches first to a large image, then rotate, then apply the mask(s)
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Is there something like -tile-rotate ?

Post by anthony »

Fred is right. Tile to a canvas that is large enough, then overlay OR mask what you need.

But you can use distort to generate a rotated tiled canvas of whatever size you like.
http://www.imagemagick.org/Usage/distorts/#affine_tile
(It can even tile animated tiles!)

The final canvas size can be set using viewport as shown in the 'distort' technique in..
http://www.imagemagick.org/Usage/canvas/#tile_memory

It does not need to be just rotated tiles either, but sheared, or even perspective tiles!
http://www.imagemagick.org/Usage/distorts/#horizon

and an unusual 'bilinear curved' tiling...
http://www.imagemagick.org/Usage/distor ... ear_tiling
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
odvarko
Posts: 2
Joined: 2011-04-05T02:51:48-07:00
Authentication code: 8675308

Re: Is there something like -tile-rotate ?

Post by odvarko »

Thank you very much, this helped me a lot!
Post Reply