GeertWille / sketch-export-assets

Export assets for Android, iOS, Windows Phone in Sketch
GNU General Public License v3.0
434 stars 66 forks source link

Export Based on slices #22

Closed bernatfortet closed 9 years ago

bernatfortet commented 9 years ago

It would be great to define the export region based on a slice, this way we can export transparent regions while seeing the boundries.

Thanks!

varunyellina commented 9 years ago

@bernatfortet , I faced this issue. My hack is to create rectangle with required size and then remove its fill & border. Then I group the rectangle and my icon. Exporting the group using this plugin retains the dimensions of the rectangle and its transparency. I hope it works for you.

GeertWille commented 9 years ago

@varunyellina that's exactly how you need to do it... Thanks for explaining! ;)

varunyellina commented 9 years ago

Although the plugin does an excellent job of exporting with transparency, you have to note that if your Artboard has Include in Export selected along with Background Color, then your exports will no longer be transparent.