i am facing the task of rendering a png file for customizable avatar animations to be used in flash. To be more specific, i have up to 80 "frames" with offsets +0+0, +65+0,+130+0,.... Each "frame" has up to 8 png images stacked on its offset position. so far i solved it by using the following command.
Code: Select all
/usr/bin/convert -size 195x65 -page 195x65 -quality 95 -compress ZIP
-page +0+0 /srv/www/htdocs/resources/img/avatar/layer/03/03/11/000/030311000_0038.png
-page +0+0 /srv/www/htdocs/resources/img/avatar/layer/03/01/10/004/030110004_0038.png
-page +0+0 /srv/www/htdocs/resources/img/avatar/layer/03/01/09/004/030109004_0038.png
-page +65+0 /srv/www/htdocs/resources/img/avatar/layer/03/01/01/000/030101000_0039.png
-page +65+0 /srv/www/htdocs/resources/img/avatar/layer/03/03/11/000/030311000_0039.png
-page +65+0 /srv/www/htdocs/resources/img/avatar/layer/03/01/10/004/030110004_0039.png
-page +130+0 /srv/www/htdocs/resources/img/avatar/layer/03/01/01/000/030101000_0040.png
-page +130+0 /srv/www/htdocs/resources/img/avatar/layer/03/03/11/000/030311000_0040.png
-page +130+0 /srv/www/htdocs/resources/img/avatar/layer/03/01/10/004/030110004_0040.png
-background none -flatten /srv/www/htdocs/cache/img/avatar/1-3-17-29-38-85-122-85/03.png
One attempt was to generate .mpc files in advance for each source png. however when running the same command with .mpc files instead of .png it seems that the page offsets are ingored. All pngs are stacked at offset +0+0. As i learned from the manual the mpc should behave the same as the original png. Is there anything that i am missing or is offset not supported for .mpc format?
Any other input on how to solve the task best would be really appreciated. i spent quite some time trying other solutions but the above command was the only one that really worked.
Thanks a lot in advance for any help and hints.
regards,
phil