uncorkedstudios / export-to-android Goto Github PK
View Code? Open in Web Editor NEWA Photoshop script for exporting assets for Android projects.
A Photoshop script for exporting assets for Android projects.
I include padding in many of my assets, and this script seems to remove all of the extra space around the artwork.
I noticed this only happens on certain images. If the image opens in photoshop as a locked background layer, then the padding will be included. However, if it comes in as an unlocked layer 0, then the script removes the extra space around the asset.
Is there a way to adjust the script to not clip anything and save as the canvas size?
see #5
Thanks a lot for your export feature
I have two layers, one with a shape and another one with a rounded rectangle to have a background color
The script saves only the layer with the shape without using the background.
How to make it use the background layer too?
I wonder how do you generally use background in your icons with this script.
Just FYI, if Photoshop's ruler is not in pixels the script will use the wrong units in its calculations thus producing incorrect results (usually teeny tiny assets). Maybe this could be added to the instructions
Hi, first of all thanks for this great tool. I got a message and I dont really know if you can do something about it. If you used the save for web feature before executing the script and you change the default options they get stored somehow and photoshop tries to use them again from your script. For instance, create and slice (C), and use the export for web feature, select the slice and from the save as promp change the default values and select "Selected slices" , it'll work cause you have the slice. Now in the same file try to run the script and you'll get that message. The solution is to export for web and select the default values again and the tool will work. Maybe you find a way to reset those values from the script or at least warn in the documentation.
BTY the messages may change I have my PS in spanish and couldn't change the language. Cheers and thanks again.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.