appendImages into rows and columns
Posted: 2015-05-12T11:21:41-07:00
I am not using exec command in php so I don't have access to run something like the following from the manual at: http://www.imagemagick.org/Usage/layers/ where it states, "You can take this further to make a whole array of images, and build them either by rows, or by columns."
Using the http://php.net/manual/en/imagick.appendimages.php appendImages function in imagick how can I simulate the seemingly more robust append CLI command? Or is it not possible.
I would love to be able to create an array in php like the following, loop through it, and each new row somehow tell appendImages when it should start a new row before combining images. Any ideas on how to solve this?
Code: Select all
convert \( font_1.gif font_2.gif font_3.gif +append \) \
\( font_4.gif font_5.gif font_6.gif +append \) \
\( font_7.gif font_8.gif font_9.gif +append \) \
\( -size 32x32 xc:none font_0.gif +append \) \
-background none -append append_array.gif
I would love to be able to create an array in php like the following, loop through it, and each new row somehow tell appendImages when it should start a new row before combining images. Any ideas on how to solve this?
Code: Select all
$rack = [
'row1' => [
'image1.jpg',
'image2.jpg'
],
'row2' => [
'image3.jpg',
'image4.jpg'
]
];