Montage / Join 2 TIFF images in a 2 col x 1 row tile without losing quality

倖福魔咒の 提交于 2019-12-13 03:22:26

问题


I have 2 same size, dimensions, and resolution images in TIFF (6400x6400 pixels, 800x800 ppi). The files are 18.7MB and 27.0MB, they were created with R's tiff() with compression="lzw".

When I try to create a tile using

montage -compress lzw -tile 2x1 -geometry +0+0 Figure4L.tiff Figure4R.tiff Figure4.tiff

I get a file 12800x6400 TIFF which has a size of 12.8 MB, GIMP reports a resolution of 72 x 72 ppi.

GIMP also reports "Warning:The image you are loading has 16 bits per channel. GIMP can only handle 8 bit, so it will be converted for you. Information will be lost because of this conversion." which was not present in the initial images

What and why is being lost with the montage? Is the montaging lossless? Apparently not. Is there a better way to achieve my purpose without losing quality?

UPDATE: This might be related to how R writes TIFFs so I updated the tags. It might be also related to TIFF plot generation and compression: R vs. GIMP vs. IrfanView vs. Photoshop file sizes

来源:https://stackoverflow.com/questions/20592886/montage-join-2-tiff-images-in-a-2-col-x-1-row-tile-without-losing-quality

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!