AsepriteScripts icon indicating copy to clipboard operation
AsepriteScripts copied to clipboard

Crop Feature

Open Davidhoechtl opened this issue 1 year ago • 3 comments

I ran into the problem that i need to crop all the layers before export. Currently each layer (also hidden ones) are getting exportet in the resolution of the original sprite.

In my case i want the script to do a crop before exporting each layer, so there are no empty spaces around the png.

Thank you for your work and i m looking forward to see that feature :)

Davidhoechtl avatar Jun 20 '24 15:06 Davidhoechtl

Pardon me. I ment Trimming the excess space

Davidhoechtl avatar Jun 20 '24 15:06 Davidhoechtl

Me again. I opened a pull request where i successfully implemented the requested feature. Tested with scale 1 and it worked perfectly.

(This is actually my first contribution to an opensource project.. feels good :-))

Davidhoechtl avatar Jun 20 '24 17:06 Davidhoechtl

Thanks for the contribution. Will test and merge soon.

PKGaspi avatar Jun 20 '24 19:06 PKGaspi