In my program I get jpgs from a file location, converts them to png, removes the background and makes it transparent. After its being made transparent it gets trimmed so it is just actual image with no border that is going to be used further on.
The command line options I run is as follows,
The command line options I run is as follows,
$"\"{filePath.Replace(@"\", "/")}\" " + $"-fuzz {fuzzingValue}% " +
$"-transparent {backgroundColor} " + "-trim +repage " +
$"\"{destinationPath.Replace(@"\", "/")}\"";
fuzzing value is 20, backgroundColor and destinatioPath is depending on the picture, in some images it trimming only removes the top transparent part but leaves out the rest as untrimmed, any ideas how to fix this?