Comments (5)
Hey, thanks for issuing about this. Can you please elaborate about what script you're referring to, the feature you're requesting and how to incorporate it to the scripts? Thank you!
from asepritescripts.
I believe he's referring to the export layers script. I see there is a "trim" option which I would hope trims the pixel dimensions of each png to fit the newly exported layer assets. But this isn't happening - or the trim option does something else, but the documentation doesn't mention it.
Edit: He's talking about spritesheets and the modifications made with PR #4. I'm noticing now that the trim option should not show up unless the spritesheet is selected, but it's still showing up. Also, if I select spritesheet I get this error:
Looks like hiding the trim option isn't being accounted for.
Edit 2: I've updated Aseprite and am no longer receiving that error.
from asepritescripts.
Hey! Thanks for the details. Yeah, the aseprite version is quite important so I should state somewhere in the readme what version the scripts are made for. Just to be clear, does the trim option work in the latest version? Is the issue resolved? Thanks.
from asepritescripts.
To be honest, I still am not sure what the trim feature is supposed to do. Perhaps you could add more detailed documentation around the "Export as spritesheet" and "Trim" features? Would be happy to QA against that documentation.
Also - not sure if this warrants a separate issue but I'm looking to use the export layers script if I can resize / shrink the canvas around each exported layer sprite to "best fit" the resultant sprite. I've played around with the script and somehow was successful in one attempt to do this, but haven't been able to recreate this result again. Any ideas how I might achieve this? I can provide additional details if needed.
Edit: Went ahead and added a new enhancement issue (issue #9) since I believe what I'm looking for is unrelated to this issue.
from asepritescripts.
Hello and thank you for the amazing script, it is time saver!
I also need to crop all the exported images by their alpha channel and wanted to share a workaround by using the commandline tool imagemagick:
convert input.png -trim +repage -gravity center -bordercolor none -border 0 output.png
Source: https://www.imagemagick.org/discourse-server/viewtopic.php?t=34916
Cheers
from asepritescripts.
Related Issues (9)
- Add option to export as sprite sheet HOT 6
- Frame number filename export option HOT 1
- bad argument error in Unsaved projects HOT 1
- Layers with equal names HOT 1
- Groups are not set to visible during export layers HOT 3
- When exporting slices, the background color changes HOT 6
- Change folder structure to allow easy cloning and pulling HOT 4
- Export Layers - Resize / Shrink Canvas to Best Fit Exported Layer Sprite
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asepritescripts.