make ppm load default to msb first

We has lsb first as the default, breaking 16-bit PPM load. Thanks ewelot.

see https://github.com/libvips/libvips/issues/1894
This commit is contained in:
John Cupitt 2020-11-22 16:00:34 +00:00
parent 1e5ac06f84
commit 8e25eef3d0
2 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,7 @@
- better GraphicsMagick image write [bfriesen]
- add missing read loops to spng, heif, giflib and ppm load [kleisauke]
- block zero width or height images from imagemagick load [Koen1999]
- fix msb_first default in ppm load [ewelot]
6/9/20 started 8.10.2
- update magicksave/load profile handling [kelilevi]

View File

@ -39,6 +39,8 @@
* - ban max_vaue < 0
* 27/6/20
* - add ppmload_source
* 22/11/20
* - fix msb_first default [ewelot]
*/
/*
@ -254,7 +256,7 @@ vips_foreign_load_ppm_parse_header( VipsForeignLoadPpm *ppm )
/* Default ... can be changed below for PFM images.
*/
ppm->msb_first = 0;
ppm->msb_first = 1;
/* Read in size.
*/