Add jpeg image to existing tiff file

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
kp1989singh
Posts: 1
Joined: 2016-02-15T06:56:28-07:00
Authentication code: 1151

Add jpeg image to existing tiff file

Post by kp1989singh »

Hi all
i want to add more image i existing tiff file..

convert *.jpg -compress JPEG multitframe.tif

after this i want to add some more jpeg image in multiframe.tif

convert image1.jpg -compress JPEG multitframe.tif - existing tiff

how to do this please help...

Thanks & Regards
KP Singh
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Add jpeg image to existing tiff file

Post by snibgo »

ImageMagick works with lists of images. So create a list of all the images you want in you output file, including any images already in that file. Finally, put the output name. IM will re-create that file with all the images. Like this:

Code: Select all

convert multiframe.tif *.jpg -compress JPEG multiframe.tif
However, this will re-compress any images already in multiframe.tif. Multiple JPEG recompression is usually bad for quality.

Unix tools like tiffcp may also be useful.
snibgo's IM pages: im.snibgo.com
Post Reply