FredsImageMagickScripts.Autotrim 1.0.6551.11423

Automatically trim a (nearly) uniform color border around an image. If the image is rotated, one can trim to the bounding box around the image area or alternately trim to the maximum central area that contains no border pixels. The excess border does not have to completely surround the image. It may be only on one side. However, one must identify a coordinate within the border area for the algorithm to extract the base border color and also specify a fuzz value when the border color is not uniform. For simple border trimming of a normally oriented image or the bounding box of a rotated image, you may err somewhat towards larger than optimal fuzz values. For images that contain rotated picture data, when you want to trim to the central area, you should choose the smallest fuzz value that is appropriate. For images that contain rotated picture data, an estimate of the rotation angle is needed for the algorithm to work. However, setting the rotation angle to zero will let the algorithm determine the rotation angle. The resulting trim is usually pretty good for angles >= 5 degrees. If the result is off a little, you may use the left/right/top/bottom arguments to adjust the automatically determined trim region.

Requires NuGet 2.5 or higher.

Install-Package FredsImageMagickScripts.Autotrim -Version 1.0.6551.11423
dotnet add package FredsImageMagickScripts.Autotrim --version 1.0.6551.11423
<PackageReference Include="FredsImageMagickScripts.Autotrim" Version="1.0.6551.11423" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FredsImageMagickScripts.Autotrim --version 1.0.6551.11423
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.6551.11423 349 12/8/2017
1.0.6436.32248 283 8/26/2017
1.0.6361.37081 315 6/1/2017
1.0.6256.40977 333 2/16/2017
1.0.5966.38598 366 5/2/2016
1.0.5769.34750 409 10/18/2015