Skip to content

Commit

Permalink
patch read_bmp.pro
Browse files Browse the repository at this point in the history
bmp images were reversed due to the presence of a spurious order=1 in the procedure.
  • Loading branch information
GillesDuvert authored Oct 12, 2021
1 parent dc821ea commit d41fad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pro/read_bmp.pro
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ if (FILE_TEST(filename, /regular) EQ 0) then MESSAGE, "Not a regular File: "+fil
;
if ( ~MAGICK_PING(filename, 'BMP') )then MESSAGE, "File "+filename+" is not in bitmap file format."

READ_ANYGRAPHICSFILEWITHMAGICK, filename, image, colortable, /order
READ_ANYGRAPHICSFILEWITHMAGICK, filename, image, colortable
if (n_elements(colortable) gt 0) then begin
red=colortable[*,0]
green=colortable[*,1]
Expand Down

0 comments on commit d41fad3

Please sign in to comment.