=?iso-8859-1?Q?G=FCnter?= Bachelier on wrote...
| Hello IM group,
|
| I have finished the first draft about the implementation of the
| seamless plane group p3m1 applied to images in IM (p3m1-
| tile generation):
|
| http://www.vi-anec.de/Trance-Art/IM-examples/IM-plane_group_p3m1/p3m1_e.pdf
|
Incrediably detailed :-)
An looking around your web site causes me to ask, How do you generate
such lovely randomized images?
You can however skip the crop of the original image, as Alpha
composition limits its operations to the destination image size.
So make the destination image the smaller mask!
You can use -geometry to offset the original image (in the negative
direction.
| 2) convert image.jpg -crop 1501x1300+1241+113 +repage image_p3m1.png
| 3) composite p3m1_mask.png image_p3m1.png -matte -compose Dst_In
| p3m1_G1.png
Can be replaced with..
composite image.jpg p3m1_mask.png \
-geometry -1241-113 -compose In p3m1_G1.png
| Up to now it is a sequence of more or less elementary
| IM commands because this might be easier to translate in
| PerlMagick. In the pdf the intermediate images of the
| example below are linked.
|
Understandable.
Your rotates below are missing -background none to preserve
transparency, and your -crop and image arguments are out of order
for the post rotate crop. Also you left out some +repage and PNG saves
these!!!!
EG: you have...
4) convert p3m1_G1.png -flop -rotate -60 p3m1_G6b.png
5) convert -crop p3m1_G6b.png 1500x1300+0+0 +repage p3m1_G6.png
but this should be
convert p3m1_G1.png -flop -background none -rotate -60 p3m1_G6b.png
convert p3m1_G6b.png -crop 1500x1300+0+0 +repage p3m1_G6.png
On page 9 rather than using multiple composites, I would generate
a canvas the right size and -flatten multiple copies of the
image on top of each other (with the right offsets) all in one
operation.
I wouldn't bother with the cropping for the half triangles either,
-flatten will autocrop to the first images canvas size, so just get that
and the offsets right.
EG: something like...
convert -size 2250x1300 xc: \
-page -750+0 p3m1_G6.png \
-page +0+0 p3m1_G1.png \
-page +750+0 p3m1_G2.png \
-page +1500+0 p3m1_G5.png \
-flatten p3m1_tile_part.png
I get the right result (after I fixed the +repage after crops).
Yes it overflows the canvas boundary, but -flatten does not exapand
so they just get clipped!!!!
This tile is then just mirror tiled...
convert p3m1_tile_part.png \
\( +clone -flop \) +append \
\( +clone -flip \) -append p3m1_tile.png
| The sequence is validated up to point 14) (page 12 in pdf)
| where p3m1_tile_part can not be generated the way it is expected and it
| looks the same like the predecessor image p3m1_tile_part-3
| (15-18 are the same as in pmm and p4m, so they have been validated).
| Any suggestion what went wrong at this point??
|
Yes you forgot a +repage which PNG stored!!!
| Comments and hints are highly appreciated.
|
See above...
Also see IM Examples
Mosaics of Images Flatten
http://www.cit.gu.edu.au/~anthony/graphics/imagick6/mosaics/#flatten
Distorting Images, Flips and Flops
http://www.cit.gu.edu.au/~anthony/graphics/imagick6/distorts/
The new "-transpose" and "-transverse" image operations may be very useful
to you, as well as the -roll operator, though posibily not for this project.
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
Left. G: "Sir, what do we do if we stand on a mine ?"
Capt. B: "Well, normal proceedure, Lieutenant, is to jump 200 feet
into the air and scatter oneself over a wide area."
-- somewhere no man's land, "Blackadder Goes Forth"
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users