-
Notifications
You must be signed in to change notification settings - Fork 299
Closed
Labels
Description
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.