<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Downloaded; compiled ; installed and works great - Thanks!<br>
(wasn't obvious from the TIFF Tools Overview that tiffcrop was the one)<br>
<br>
Zoltan<br>
<br>
<br>
<br>
Szabó Balázs wrote:
<blockquote cite="mid:1258031171.3887.72.camel@baa-laptop" type="cite">
  <pre wrap="">Hi Zoltan!

Maybe tiffcrop -p (if you dont want to use Grass)
You can check the program's man page hier:
<a class="moz-txt-link-freetext" href="http://www.remotesensing.org/libtiff/man/tiffcrop.1.html">http://www.remotesensing.org/libtiff/man/tiffcrop.1.html</a>

Üdv: Balazs


On cs, 2009-11-12 at 13:01 +0200, Zoltan Szecsei wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Tim,
I have a RGB-ised satellite image we are digitising from, but our
(oldish) software displays it as a red image.
I fiddled around using tiffinfo on other images that display correctly
with this software, and noticed the difference in the Planar
Configuration. (Which also explains why we only see the red)
Our Windows based R2V package allowed the conversion (which then
displays correctly in our Linux package), but I am looking for
something to do this conversion via a Linux bash script - and to make
minimum or no other changes to the Tiff image.

Regards,
Zoltan

Got image:
    </pre>
    <blockquote type="cite">
      <pre wrap="">zls@gl0:/home/gisprojects$ tiffinfo P001.TIF
TIFF Directory at offset 0x150e1684
  Image Width: 12405 Image Length: 9475
  Bits/Sample: 8
  Sample Format: unsigned integer
  Compression Scheme: None
  Photometric Interpretation: RGB color
  Image Description: "{\n  bandList = \n  [\n    3;\n    2;\n    1;
\n  ]\n}"
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 3
  Rows/Strip: 84
  Min Sample Value: 0
  Max Sample Value: 255
  Planar Configuration: separate image planes
      </pre>
    </blockquote>
    <pre wrap="">But need as above, but with Planar Config as below::
    </pre>
    <blockquote type="cite">
      <pre wrap="">zls@gl0:/home/gisprojects/t4a/images/gurue$ tiffinfo P002.TIF 
TIFF Directory at offset 0x4458bf8
  Subfile Type: (0 = 0x0)
  Image Width: 12405 Image Length: 9475
  Resolution: 0, 0 pixels/inch
  Bits/Sample: 8
  Compression Scheme: PackBits
  Photometric Interpretation: palette color (RGB from colormap)
  Artist: "R2V for Windows"
  Host Computer: "PC/MS WINDOWS"
  Make: "Able Software Corp."
  Samples/Pixel: 1
  Rows/Strip: 1
  Planar Configuration: single image plane
  Color Map: (present)
      </pre>
    </blockquote>
    <pre wrap="">


Tim Sutton wrote: 
    </pre>
    <blockquote type="cite">
      <pre wrap="">Hi

Do you mean you want to copy from a palletted tiff to an e.g. Single band greyscale tif? Or three bands each representing R, B, G? Bearing in mind that you will lose the colour info, you could do this using gdal_translate.

Regards

Tim
------Original Message------
From: Zoltan Szecsei
Sender: <a class="moz-txt-link-abbreviated" href="mailto:africa-bounces@lists.osgeo.org">africa-bounces@lists.osgeo.org</a>
To: <a class="moz-txt-link-abbreviated" href="mailto:africa@lists.osgeo.org">africa@lists.osgeo.org</a>
ReplyTo: Africa local chapter discussions
Subject: [OSGeo Africa] Converting TIFF image planes
Sent: Nov 12, 2009 10:35 AM

Hi,
I've had a look at some of the Linux tiff tools (eg tiffcp) but cannot 
find a way to command-line convert an RGB tiff image from separate image 
planes, to a single image plane.

Does anyone have any pointers, please?

Thanks &amp; regards,
Zoltan



  

____________________________________________________________________

_______________________________________________
Africa mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Africa@lists.osgeo.org">Africa@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/africa">http://lists.osgeo.org/mailman/listinfo/africa</a>
  
      </pre>
    </blockquote>
    <pre wrap="">
-- 

===========================================
Zoltan Szecsei
Director

Geograph (Pty) Ltd.
P.O. Box 7, Muizenberg 7950, South Africa.

65 Main Road, Muizenberg 7945
Western Cape, South Africa.  

34° 6'16.35"S 18°28'5.62"E 

Tel: +27-21-7884897  Mobile: +27-83-6004028
Fax: +27-86-6115323    <a class="moz-txt-link-abbreviated" href="http://www.geograph.co.za">www.geograph.co.za</a>
===========================================
No virus found in this outgoing message.
Checked by AVG - <a class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a> 
Version: 9.0.704 / Virus Database: 270.14.61/2497 - Release Date: 11/11/09 21:41:00
_______________________________________________
Africa mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Africa@lists.osgeo.org">Africa@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/africa">http://lists.osgeo.org/mailman/listinfo/africa</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 

===========================================
Zoltan Szecsei
Director

Geograph (Pty) Ltd.
P.O. Box 7, Muizenberg 7950, South Africa.

65 Main Road, Muizenberg 7945
Western Cape, South Africa.  

34° 6'16.35"S 18°28'5.62"E 

Tel: +27-21-7884897  Mobile: +27-83-6004028
Fax: +27-86-6115323    <a class="moz-txt-link-abbreviated" href="http://www.geograph.co.za">www.geograph.co.za</a>
===========================================</pre>
</body>
</html>