sketch-android-assets icon indicating copy to clipboard operation
sketch-android-assets copied to clipboard

Generated slices are not transparent

Open ghost opened this issue 10 years ago • 16 comments

In Sketch 3 when exporting through the plugin the background of the slices are not transparent. On the contrary, when exporting through the native Sketch feature (File > Export) the slices do have a transparent background...

How can I export against a transparent background?

PS: Please also tell people they need to select the slices before running the plugin.

ghost avatar Jun 19 '14 15:06 ghost

Same here, can't get transparent export. Export Group Contents Only - option does nothing. So even if slice and graphic are in same group I always get background color/graphic/photo exported.

ip00 avatar Jul 25 '14 14:07 ip00

Any fix to this? Having this issue as well.

bradwrage avatar Feb 02 '15 19:02 bradwrage

Does it help hiding the background layer before exporting?

zmalltalker avatar Feb 03 '15 11:02 zmalltalker

^^Turning off the BG for the artboard allows transparent exports^^

aalok8922 avatar Feb 20 '15 18:02 aalok8922

Yes it works when you turn the background off, but hey it shouldn't be like this since it's very uncomfortable, except before exporting all assets you make an empty artboard just for them and place on it to generate, then it's ok :)

But the tool is great! Thank you.

deividass avatar Mar 06 '15 00:03 deividass

I'm pretty new to Sketch, how do you turn off the background?

EDIT Got it, select layer and uncheck Background Color in the properties on the right hand side.

EDIT 2: There is also a checkbox below that, Include in Export. Unchecking that solves the problem of this issue for me. Seems to be ignored with the official export function but is honoured by this plug-in.

maartenvandillen avatar Mar 15 '15 10:03 maartenvandillen

Click on the artboard name (either in the canvas view or side panel), and on the right side panel, you'll see a checkbox option for "Background." Uncheck the box, run the plugin, recheck the box (optional).

On Sun, Mar 15, 2015 at 6:52 AM, maartenvandillen [email protected] wrote:

I'm pretty new to Sketch, how do you turn off the background?

— Reply to this email directly or view it on GitHub https://github.com/zmalltalker/sketch-android-assets/issues/16#issuecomment-80956649 .

Hinge 137 5th Avenue, 5th Floor New York, NY 240.357.0269

aalok8922 avatar Mar 16 '15 09:03 aalok8922

I got the same problem with another bigger layer bellow, not just background.

tuanchauict avatar May 15 '15 02:05 tuanchauict

I'm having this same issue. Really annoying. Thanks for taking a look :)

alexrest avatar Sep 16 '15 14:09 alexrest

screen shot 2016-02-11 at 1 49 58 pm

i got the solution, unthick "include in Export"

mbingky avatar Feb 11 '16 06:02 mbingky

Assuming this probably isn't going to get addressed by this plugin, but I also ran into this problem.

ixley avatar Feb 22 '16 20:02 ixley

I also have this issue

antonioreyna avatar Jun 22 '16 19:06 antonioreyna

same issue.

rickyuan avatar Aug 02 '16 02:08 rickyuan

Having same issue

aravindhb4 avatar Sep 20 '16 12:09 aravindhb4

I just have the same issue and after read : https://github.com/abynim/Sketch-Headers/blob/master/Headers/MSExportRequest.h I open the .jtalk file by textEditor and add a code line: request.includeArtboardBackground = false; in function copy_layer_with_factor before the return line:

hoai265 avatar Jan 10 '17 10:01 hoai265

Are you using a Sketch template? Like the iOS UI template?

On the Symbols page, Sketch has put a rectangle behind and around all the artboards. If you have a transparent symbol on top of this, it (for some reason) exports the rectangle with it. Disable/delete the rectangle and you can export!

DeltaGemini avatar Jul 18 '17 07:07 DeltaGemini