if your images are large, you may need to set a larger temp directory on a different disk. set this env variable in a unix-like shell or similar. git bash works well.
export MAGICK_TEMPORARY_PATH=D:\temp
convert a .tif to .jpeg while also scaling the height and width by half
magick mosaic.tif -resize "50%" mosaic.jpeg