Skip to content

Commit

Permalink
fix(cli): 🚑 convert all input images to rgba8
Browse files Browse the repository at this point in the history
This is reducing number of issues with non standard images
  • Loading branch information
SalOne22 committed Aug 17, 2024
1 parent b5dee09 commit c980e9a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@ fn main() {
let mut available_encoder = handle_error!(input, encoder(subcommand, matches));
output.set_extension(available_encoder.to_extension());

if img.depth() == BitDepth::Float32 {
pipeline.chain_operations(Box::new(Depth::new(BitDepth::Eight)));
}
pipeline.chain_operations(Box::new(Depth::new(BitDepth::Eight)));
pipeline.chain_operations(Box::new(ColorspaceConv::new(ColorSpace::RGBA)));

pipeline.chain_operations(Box::new(AutoOrient));
pipeline.chain_operations(Box::new(ApplySRGB));
Expand Down

0 comments on commit c980e9a

Please sign in to comment.