Skip to content

BMP TASImage artefacts and crashes #8125

Closed
@ferdymercury

Description

@ferdymercury

Describe the bug

This script produces the following result:

#include "TCanvas.h"
#include "TASImage.h"

void test_asimage()
{
    new TCanvas("bmp","bmp");
    auto bmp = new TASImage("./screenshot.bmp");
    bmp->Draw();

    new TCanvas("png","png");
    auto png = new TASImage("./screenshot.png");
    png->Draw();
}

image

Expected behavior

Both PNG and BMP pictures should be the same. the left picture looks like it has some byte misalignment.

To Reproduce

  1. Download the screenshot files screenshots.zip
  2. Run the code snippet above

Setup

ROOT 6.22/02 on Ubuntu18

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Issues

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions