Skip to content

Exception thwon opening .png files #3412

@perdrix52

Description

@perdrix52

Describe the bug

Exception thrown from here for png files.
Image::UniquePtr ImageFactory::open(const std::string& path, bool useCurl) {
auto image = open(ImageFactory::createIo(path, useCurl)); // may throw
if (!image)
throw Error(ErrorCode::kerFileContainsUnknownImageType, path);
return image;
}

To Reproduce

Steps to reproduce the behavior:
Just called ImageFactory::open()

Expected behavior

File gets opened!

Additional context

Add any other information about the problem here.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions