I have the following images, both 480 x 270 pixels:
I'd like to stitch them side by side in a 960 x 270 pixel image like so (scaled down):
So far, I've been using GraphicsGrid
to try to achieve this:
c1 = Import["https://i.stack.imgur.com/2SRcD.png"];
c2 = Import["https://i.stack.imgur.com/zL8id.png"];
(* Frame parameter set here to emphasize next point. *)
g = GraphicsGrid[{{c1, c2}}, Frame -> True]
But there's padding between the images:
Additionally, it's scaled incorrectly, as ImageDimensions
shows:
ImageDimensions@g
(* Expect {960, 540} *)
{360, 180}
I can use the ImageSize
parameter to explicitly set the size of the output image, but that just reproduces the above result to scale.
How can combine the images side-by-side without scaling or padding?
Import
the pictures, but isn't this a job forImagePadding->None
? $\endgroup$ImagePadding -> None
actually masks the entire image with a thick white border all around, cropping the images in half with the parts along the vertical center being exposed. $\endgroup$Grid
instead ofGraphicsGrid
. I'm at work now so I can't really pursue this now, butGraphicsGrid
enforces equal column widths, so this might be causing a problem.ImageAssemble
is the neatest solution, but there are others. $\endgroup$