<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaTempEditStyle"></style><style title="owaParaStyle"><!--P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
<meta name="GENERATOR" content="MSHTML 9.00.8112.16446">
</head>
<body ocsi="x"><table align='center'><tr><td></td></tr></table>
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: x-small">
<div> </div>
<div></div>
<div>
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: x-small">
<div></div>
<div dir="ltr"><font color="#000000" size="2" face="Tahoma">Hi</font></div>
<div dir="ltr"><font face="tahoma">I'm having problems creating a jpeg compressed tif with ARGB pixel format with gdal_translate.</font></div>
<div dir="ltr"><font face="tahoma">I tried the command </font></div>
<div dir="ltr"><font face="tahoma">gdal_translate pngWithAlpha.png 3.tif -b 1 -b 2 -b 3 -mask 4 -co alpha=yes -co COMPRESS=JPEG  --config GDAL_TIFF_INTERNAL_MASK YES</font></div>
<div dir="ltr"><font face="tahoma"></font> </div>
<div dir="ltr"><font face="tahoma">as it appears in the gdal_translate documentation, but the image I'm getting doesn't have an alpha channel.</font></div>
<div dir="ltr"><font face="tahoma">c:\Users\Atlas\Pictures>gdalinfo 3.tif<br>
Driver: GTiff/GeoTIFF<br>
Files: 3.tif<br>
Size is 480, 360<br>
Coordinate System is `'<br>
Image Structure Metadata:<br>
  COMPRESSION=JPEG<br>
  INTERLEAVE=PIXEL<br>
Corner Coordinates:<br>
Upper Left  (    0.0,    0.0)<br>
Lower Left  (    0.0,  360.0)<br>
Upper Right (  480.0,    0.0)<br>
Lower Right (  480.0,  360.0)<br>
Center      (  240.0,  180.0)<br>
Band 1 Block=480x16 Type=Byte, ColorInterp=Red<br>
  Mask Flags: PER_DATASET<br>
Band 2 Block=480x16 Type=Byte, ColorInterp=Green<br>
  Mask Flags: PER_DATASET<br>
Band 3 Block=480x16 Type=Byte, ColorInterp=Blue<br>
  Mask Flags: PER_DATASET</font></div>
<div dir="ltr"><font face="tahoma"></font> </div>
<div dir="ltr"><font face="tahoma">I also tried without the -mask option, in which case I get errors:</font></div>
<div dir="ltr"><font face="tahoma">ERROR 1: JPEGLib:Bogus input colorspace<br>
ERROR 1: WriteEncodedTile/Strip() failed.</font></div>
<div dir="ltr"><font face="tahoma"></font> </div>
<div dir="ltr"><font face="tahoma">I'm using gdal 1.9.1 x64 on windows 7 64 bit. </font>
</div>
<div dir="ltr"> </div>
<div dir="ltr"><font face="tahoma">Is there another way to do this, or is it a known limitation of the tiff driver?</font></div>
<div dir="ltr"><font face="tahoma"></font> </div>
<div dir="ltr"><font face="tahoma">Thanks </font></div>
<div dir="ltr"><font face="tahoma">Yehiyam</font></div>
</div>
</div>
</div>
<table dir='ltr'><tr><td></td></tr></table>
<HR><Font face=arial size=2 color=black><I>
This message (including any attachments) issued by RAFAEL- ADVANCED DEFENSE SYSTEMS LTD. 
(hereinafter "RAFAEL") contains confidential information intended for a specific individual and purpose, may 
constitute information that is privileged or confidential or otherwise protected from disclosure. If you are not 
the intended recipient, you should contact us immediately and thereafter delete this message from your 
system. You are hereby notified that any disclosure, copying, dissemination, distribution or forwarding of this 
message, or the taking of any action based on it, is strictly prohibited. If you have received this e-mail in error, 
please notify us immediately by e-mail mailto:lawraf@rafael.co.il and completely delete or destroy any and all 
electronic or other copies of the original message and any attachments thereof.
</font><HR>
</body>
</html>