Just tried the code you provided (with -alpha off) and it works. If I add the option "-geometry x1000", the gap reappears, though.
However, if I apply the option "-alpha off" in the first step to convert the EPS files to PNGs, then I can use the -geometry option without problems. Here are my codes:
Code: Select all
convert -density 150 -alpha off im01.eps im01.png
convert -density 150 -alpha off im02.eps im02.png
convert -geometry x1000 +append im01.png im02.png final_im.png
As you can see, I do not use "-alpha off" in the last line, and the resulting image no longer has those gaps.
Previously, I did not quite know about the "-alpha off" option. Many thanks for your help.
By the way, the order of the options in the code does not seem to matter in my case.