[SOLVED] create tile image on the fly

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
User avatar
Draoidh
Posts: 69
Joined: 2012-07-03T11:29:44-07:00
Authentication code: 13
Location: soon to be independent Scotland

[SOLVED] create tile image on the fly

Post by Draoidh »

I have created a tile image and, in a separate step, I create a tiled canvas:

Code: Select all

convert \( +size   xc:red xc:yellow xc:green  +append \) tile.png
convert -size 60x40 tile:tile.png   tiled.png
I would like to do this in a oner. How?
Last edited by Draoidh on 2012-10-06T09:40:25-07:00, edited 1 time in total.
User avatar
Draoidh
Posts: 69
Joined: 2012-07-03T11:29:44-07:00
Authentication code: 13
Location: soon to be independent Scotland

Re: create tile image on the fly

Post by Draoidh »

sorted:

Code: Select all

convert \( +size  xc:red xc:yellow xc:green  +append -write mpr:tile +delete \) -size 60x40 tile:mpr:tile  a.png
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: [SOLVED] create tile image on the fly

Post by anthony »

There are three ways.. you found one...
Others are shown in, Tiling In-memory Images
http://www.imagemagick.org/Usage/canvas/#tile_memory

PS: using distort to tile images is extremely versatile, is it not only tiles in different ways (mirror tile for example) but with distortions too.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
Draoidh
Posts: 69
Joined: 2012-07-03T11:29:44-07:00
Authentication code: 13
Location: soon to be independent Scotland

Re: [SOLVED] create tile image on the fly

Post by Draoidh »

Just returned from a holiday and saw your link. Thanks for that, Anthony.
Post Reply