Opened 15 years ago
Closed 15 years ago
#938 closed defect (fixed)
png driver: support for .bmp files?
Reported by: | hamish | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 7.0.0 |
Component: | Display | Version: | svn-trunk |
Keywords: | png driver, docs | Cc: | |
CPU: | All | Platform: | All |
Description
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
Change History (2)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
driver docs updated, all branches.
Note:
See TracTickets
for help on using tickets.
Replying to hamish:
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).