AuburnSounds / gamut

Image encoding and decoding library for D. Detailed layout control. Experimental codec QOIX.
Boost Software License 1.0
41 stars 2 forks source link

Load flags issue #35

Closed p0nce closed 1 year ago

p0nce commented 1 year ago

Trying to load Dplug image with:

    Image rgb;
    rgb.loadFromMemory(cast(const(ubyte[])) imageDataRGB, LOAD_RGB | LOAD_8BIT | LOAD_ALPHA | LAYOUT_VERT_STRAIGHT | LAYOUT_GAPLESS);

yield wrong image, but

rgb.loadFromMemory(cast(const(ubyte[])) imageDataRGB, 0);
rgb.convertTo(PixelType.rgba8, LAYOUT_VERT_STRAIGHT | LAYOUT_GAPLESS);

works.

The image in particular is Distort diffuse image.

p0nce commented 1 year ago

Fixed in v2.0.1