magick image.jpg -white-threshold 75%% -transparent white out.jpgℹ️ le double % est uniquement pour windows
convert image1.png image2.png -background none +smush +25 out.png
ℹ️ -background none pour avoir un gap transparent, +smush +25 pour définir la taille du gap horizontal (-smush pour du vertical)