[prev in list] [next in list] [prev in thread] [next in thread]
List: imagemagick-user
Subject: Re: [magick-users] How do you tile images?
From: Bob Friesenhahn <bfriesen () simple ! dallas ! tx ! us>
Date: 2002-11-26 0:57:49
[Download RAW message or body]
By setting the image 'size' attribute than then reading the image name
"TILE:mask1.png", you will have an image tiled with mask1.png.
Bob
On Tue, 26 Nov 2002, Barris, Wes (LI, Uni of Queensland) wrote:
> I am trying to write a perl program that take one image and tiles
> it. One would think this should be easy, but I haven't stumbled
> upon the correct sequence of steps to do this. I wrote this
> script based upon the documentation found here:
> http://www.imagemagick.org/www/perl.html
>
> Here is the script. When run, it creates 256 output files which
> is not what I want. I want one output image made up of a repeated
> series of my one input image.
>
> #!/usr/local/bin/perl -w
> #
> #
> use Image::Magick;
> #
> $mask1 = Image::Magick->new;
> for($i=1; $i<=256; $i++) {
> $mask1->Read('mask1.png'); # this is a 2x2 image
> }
> $mask1->Append(stack=>'false');
> #
> # I want this to be a 512x2 image made up of 256x1 of my 2x2 tiles.
> #
> $mask1->Write('mask1-full.png');
> undef $mask1;
>
> --
> Wes Barris
> E-Mail: Wes.Barris@csiro.au
> Phone: 07-3346-2504
> _______________________________________________
> Magick-users mailing list
> Magick-users@imagemagick.org
> http://studio.imagemagick.org/mailman/listinfo/magick-users
>
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen
_______________________________________________
Magick-users mailing list
Magick-users@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic