spright icon indicating copy to clipboard operation
spright copied to clipboard

Cut only the bottom transparent space

Open paulocoutinhox opened this issue 4 months ago • 1 comments

Hi,

All the sprites that i bought have too much transparent space to make all sprites centralized correctly when in sequence.

Example:

Image

There is any option to remove only the bottom transparent part?

Image

paulocoutinhox avatar Oct 09 '25 07:10 paulocoutinhox

There is any option to remove only the bottom transparent part?

Open a paint program and cut the bottom.

aismann avatar Oct 28 '25 21:10 aismann

The spright way of doing this, is to set the trim-margin of everything but the bottom to infinity: trim-margin 10000 10000 10000 0 The four parameters can be specified since version 3.8. The order is left top right bottom. I am thinking about allowing to write inf instead of 10000.

houmain avatar Nov 21 '25 20:11 houmain

Nice. Yes, the inf will make more sense. The inf will be the height?

paulocoutinhox avatar Nov 21 '25 20:11 paulocoutinhox