Using convert or mogrify to combine multiple PNG files into a single multi-page TIFF file

Let's say I have a foo folder with several PNG files. Is there a way to use convert or mogrify to combine PNG files into a single TIFF file?

I tried:

 mogrify -format tiff -adjoin *.png 

but i get unrecognized option -adjoin

+6
source share
2 answers

Using Version: ImageMagick 6.6.1-5 2010-04-23 Q16 , this works just fine:

 convert *.png all.tiff 
+5
source

To combine them into a single file as a sequence of images, you can use the answer of Matthias Osidio.

-append creates a single image in which the images in the source set are stacked from top to bottom.

 mogrify -append *.png output.tiff 
+5
source

Source: https://habr.com/ru/post/909489/


All Articles