I want to be able to determine if a byte stream is decodable, i.e. ImageFlow can scale the binary or not. Without throwing an exception.
In our case, the stored content-type sometimes doesn't match, and I don't want to try to scale an unscalable image since it throws an exception. Current ImageJob.GetImageInfo also throws an exception if no matching encoder is found and exceptions aren't cheap and I would like to just be able to determine if ImageFlow can handle the image or not.
I don't know if this actually should be posted in the imageflow repo though.
I want to be able to determine if a byte stream is decodable, i.e. ImageFlow can scale the binary or not. Without throwing an exception.
In our case, the stored content-type sometimes doesn't match, and I don't want to try to scale an unscalable image since it throws an exception. Current ImageJob.GetImageInfo also throws an exception if no matching encoder is found and exceptions aren't cheap and I would like to just be able to determine if ImageFlow can handle the image or not.
I don't know if this actually should be posted in the imageflow repo though.