AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2010.03.11 06:25 "[Tiff] Copy a section of Tiff image pixels and paste/write it to another image", by Madhav Madhav
2010.03.11 07:55 "Re: [Tiff] Copy a section of Tiff image pixels and paste/write it to another image", by
2010.03.13 05:11 "Re: [Tiff] Copy a section of Tiff image pixels and paste/write it to another image", by Madhav Madhav

2010.03.13 05:11 "Re: [Tiff] Copy a section of Tiff image pixels and paste/write it to another image", by Madhav Madhav

Thank you Rob Tillaart and Gerben for their timely guidance on Tiffcrop.c. Let me experience the Tiffcrop now onwards. Actually I am intended to copy a rectangular portion of image and then write this rectangle part on another image. Thanks again...

Regards,
Madhav

--- On Thu, 11/3/10, Gerben Vos <Gerben.Vos@ZyLAB.COM> wrote:

From: Gerben Vos <Gerben.Vos@ZyLAB.COM>Subject: Re: [Tiff] Copy a section of Tiff image pixels and paste/write it toanother imageTo: tiff@lists.maptools.orgCc: "Madhav Madhav" <naturalmails@yahoo.com>Date: Thursday, 11 March, 2010, 9:48 AM

Madhav Madhav wrote:

> I am a new person to the Libtiff library. As I have gone through the> library I could not see any facility to Copy a section of Tiff Image> Pixels(cmyk) and write it to another Tiff file (to a specific region).

libtiff is not a general imaging library, it is like libpng and libjpegand only provides methods to read and write data from TIFF files. The interpretation of the bytes as pixels is left to the user.

You can either implement this yourself on top of libtiff, or use a moregeneral library such as ImageMagick or vips. If you use libtiff, it willsave work if you know you will always be processing CMYK images and noother colour spaces.

If an external program is acceptable to use, tiffcrop may be able to dowhat you want.

Gerben.

--- On Thu, 11/3/10, rob.tillaart@chello.nl <rob.tillaart@chello.nl> wrote:

From: rob.tillaart@chello.nl <rob.tillaart@chello.nl>Subject: Re: [Tiff] Copy a section of Tiff image pixels and paste/write it to another imageTo: tiff@lists.maptools.org, "Madhav Madhav" <naturalmails@yahoo.com>Date: Thursday, 11 March, 2010, 7:55 AM

Please take a look at the tiffcrop utility http://www.remotesensing.org/libtiff/man/tiffcrop.1.htmlThe sources are available from http://download.osgeo.org/libtiff/tiff-3.9.2.zip in a subdir called tools.  see:

Succes,
Rob Tillaart

---- Madhav Madhav <naturalmails@yahoo.com> schreef:> > Hello,> I am a new person to the Libtiff library. As I have gone through the library I could not see any facility to Copy a section of Tiff Image Pixels(cmyk) and write it to another Tiff file (to a specific region).Or, my lack of knowledge on Libtiff caused this doubt...?  Or, How can I do that?> Thank You,> MadhuprasadKallor,CochinIndia-682 002> 

The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/