[GRASS-dev] [GRASS GIS] #938: png driver: support for .bmp files?

#938: png driver: support for .bmp files?
------------------------------+---------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: minor | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Keywords: png driver, docs | Platform: All
      Cpu: All |
------------------------------+---------------------------------------------
Hi,

it would seem that the grass7 version of the PNG driver can create .bmp
files if you pass it GRASS_PNGFILE=filename.bmp, and so you can use it
with ximgview, but the pngdriver man page doesn't mention this.

?

is this feature available in 6.x?

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/938&gt;
GRASS GIS <http://grass.osgeo.org>

#938: png driver: support for .bmp files?
----------------------+-----------------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: minor | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: png driver, docs
  Platform: All | Cpu: All
----------------------+-----------------------------------------------------
Comment (by glynn):

Replying to [ticket:938 hamish]:
> it would seem that the grass7 version of the PNG driver can create .bmp
files if you pass it GRASS_PNGFILE=filename.bmp, and so you can use it
with ximgview, but the pngdriver man page doesn't mention this.
> ?
>
> is this feature available in 6.x?

Yes. All versions of the PNG and cairo drivers support PNG, PPM/PGM and
BMP files, except that the cairo driver only supports PNG files if cairo
itself was built with PNG support (which is usually the case).

Note that they only supports 32-bpp BMP files, which not all image viewers
support. The reason is so that the drivers can mmap() the BMP file and use
the mapped region (minus the header) as the frame buffer (which must be
32-bpp), rather than needing to explicitly read/write the file (when
mapping a BMP file, the header is ignored).

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/938#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#938: png driver: support for .bmp files?
----------------------+-----------------------------------------------------
  Reporter: hamish | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: minor | Milestone: 7.0.0
Component: Display | Version: svn-trunk
Resolution: fixed | Keywords: png driver, docs
  Platform: All | Cpu: All
----------------------+-----------------------------------------------------
Changes (by hamish):

  * status: new => closed
  * resolution: => fixed

Comment:

driver docs updated, all branches.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/938#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>