I often have to do this with images of plots of data. I use the command line tools that come in the Imagemagick package; I think I installed it on my system with MacPorts. You could also choose to install with brew (brew install imagemagick
).
The actual tool you want to use from Imagemagick is the convert
tool. If you have your two 320x428 images, say a.png and b.png, you can do
convert +append a.png b.png c.png
to create a new file, c.png, that has the a.png on the left and b.png on the right. Alternatively, you append them vertically with -append
(instead of +
) and a.png will be on top of b.png. With convert, you can do a ton of other things. For example, you can switch to a different image format for the output
convert +append a.png b.jpg c.tif
This isn't a GUI application, but maybe some others might have a better solution. Alternatively, you could put this in some sort of automator script.
2020-12-10:
I used it on 2020-12-10 and now the correct code is
convert +append a.png b.jpg +append c.tif
ImageOptim?
ImageOptim optimizes images — so they take up less disk space and load faster — by finding best compression parameters and by removing unnecessary comments and color profiles. It handles PNG, JPEG and GIF animations.
ImageOptim seamlessly integrates various optimisation tools: PNGOUT, AdvPNG, Pngcrush, extended OptiPNG, JpegOptim, jpegrescan, jpegtran, and Gifsicle.
Best Answer
The only true lossless rotation for images would be a file format that allows you to save the image in its original format, and then specify what angle it will be rotated to when displayed on screen.
One program which can do this is InkScape. It will allow you to import (and embed) an image, and then rotate it. You can then rotate the image to any angle, as many times as you like without causing any loss of quality.