Icon crop tool to remove transparent edges and crop to content bounds
npm install @pixra/smart-cropA Pixra plugin that trims transparent edges from images.
Scans the image to find the bounding box of non-transparent pixels, then crops to that region. Useful for cleaning up exported sprites, icons, or any image with unwanted transparent margins.
A small padding (2px) is preserved around the content to prevent edge clipping.
1. Open an image with transparent edges in Pixra
2. Run "Icon Crop" from the Tools menu
3. The image is cropped to its content bounds
- Pixels with alpha below 10 are treated as transparent
- If the image has no transparent edges, nothing happens
- Fully transparent images cannot be cropped
AGPL-3.0