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

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.

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??


Comments and hints are highly appreciated.

Thank you very much,
Günter Bachelier



*********************
IM command sequence for p3m1 tile generation

1)  convert -size 1501x1300 xc:none -fill red -draw “polyline 0,0 1501,0
751,1300” p3m1_mask.png
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
4)  convert p3m1_G1.png -flop -rotate -60 p3m1_G6b.png
5)  convert -crop p3m1_G6b.png 1500x1300+0+0 +repage p3m1_G6.png
6)  convert p3m1_G6.png -flip  p3m1_G5.png
7)  convert p3m1_G1.png -flop -rotate 60 p3m1_G2b.png
8)  convert p3m1_G2b.png  -crop 1501x1300+375+0 p3m1_G2.png # width of
rotated image = 1876; 1876 -1501 = 375
9)  convert p3m1_G6.png -crop 751x1300+750+0 p3m1_G6half.png
10)  composite p3m1_G6half.png p3m1_G1.png -gravity west -compose
Dst_Over p3m1_tile_part-1.png
11)  convert p3m1_tile_part-1.png -gravity east -background transparent
-splice 751x0 p3m1_tile_part-2.png
12)  composite p3m1_G2.png p3m1_tile_part-2.png -gravity east -compose
Dst_Over p3m1_tile_part-3.png
13)  convert p3m1_G5.png -crop 751x1300+0+0 +repage p3m1_G5half.png
14)  composite p3m1_G5half.png p3m1_tile_part-3.png -gravity east
-compose Dst_Over p3m1_tile_part.png
15)  convert p3m1_tile_part.png -flop p3m1_tile_part_flop.png
16)  convert p3m1_tile_part.png p3m1_tile_part_flop.png +append
p3m1_tile_row.png
17)  convert p3m1_tile_row.png -flip p3m1_tile_row_flip.png
18)  convert p3m1_tile_row.png p3m1_tile_row_flip.png -append
p3m1_tile.png

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to