We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 68369b5 + 4d72865 commit aa4baf0Copy full SHA for aa4baf0
SDWebImageBPGCoder/Classes/SDImageBPGCoder.m
@@ -432,7 +432,7 @@ - (nullable CGImageRef)sd_createBPGImageWithContext:(nonnull BPGDecoderContext *
432
size_t bitsPerPixel = hasAlpha ? 32 : 24;
433
size_t bytesPerRow = width * bitsPerPixel / 8;
434
size_t rgbaSize = height * bytesPerRow;
435
- CGBitmapInfo bitmapInfo = kCGBitmapByteOrder32Big;
+ CGBitmapInfo bitmapInfo = kCGBitmapByteOrderDefault;
436
bitmapInfo |= hasAlpha ? kCGImageAlphaLast : kCGImageAlphaNone;
437
438
uint8_t *rgba = malloc(rgbaSize);
0 commit comments