Horizontally:

convert -auto-orient +append images/image* merged.png

Vertically:

convert -auto-orient -append images/image* merged.png