We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3828 - Can't load BMP file
Summary: Can't load BMP file
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: don't know
Hardware: All All
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-14 08:16 UTC by Sylvain
Modified: 2017-09-14 14:57 UTC (History)
0 users

See Also:


Attachments
image failing to load (13.25 KB, image/bmp)
2017-09-14 08:16 UTC, Sylvain
Details
image ok (21.12 KB, image/bmp)
2017-09-14 08:16 UTC, Sylvain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain 2017-09-14 08:16:08 UTC
Created attachment 2939 [details]
image failing to load

Can load this BMP file named "img_palette_2.bmp".
Whereas "img_palette.bmp" works.

img_palette_2.bmp: PC bitmap, Windows 98/2000 and newer format, 128 x 160 x 8
img_palette.bmp:   PC bitmap, Windows 95/NT4 and newer format, 128 x 160 x 8
Comment 1 Sylvain 2017-09-14 08:16:22 UTC
Created attachment 2940 [details]
image ok
Comment 2 Sylvain 2017-09-14 08:18:27 UTC
SDL_GetError() says "Compressed BMP files not supported".
The file was obtained by using "convert" tool.
Comment 3 Sam Lantinga 2017-09-14 14:57:38 UTC
Compressed BMP files are not supported by SDL. Use SDL_image if you want to load them.