Using -write to output to multiple files

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
fuji
Posts: 1
Joined: 2016-11-21T00:52:51-07:00
Authentication code: 1151

Using -write to output to multiple files

Post by fuji »

I'm trying to convert a multiframe tiff file into single file pngs and also create thumbnails at the same time.

Code: Select all

convert +adjoin  image.tif -write  image%0d.png -thumbnail 1000 thumb%0d.png
With this code i get a thumbnail for each of the frames but I only get the first frame for the converted file.

How can i make -write output all frames?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Using -write to output to multiple files

Post by snibgo »

Your "+adjoin" is redundant.

Your command works fine for me, with IM v6.9.5-3 on Windows 8.1. When the tiff file contains two images, it creates two files image*.png and two files thumb*.png.
snibgo's IM pages: im.snibgo.com
Post Reply