Code Monkey home page Code Monkey logo

Comments (5)

PKGaspi avatar PKGaspi commented on September 6, 2024

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.

jjwall avatar jjwall commented on September 6, 2024

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:

image

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.

PKGaspi avatar PKGaspi commented on September 6, 2024

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.

jjwall avatar jjwall commented on September 6, 2024

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.

k3ltis avatar k3ltis commented on September 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.