Auto slice an image file based on transparency


I have multiple small icons in a single file. They are separated with transparency. So I can manually select them and save individually. But this takes long time with many parts. Is it possible to automatically save each non-transparent piece to separate file?

8/25/2013 7:39:00 PM

Actually, it depends on what you've got there.

  1. If all icons reside on separat, individual layers, that's pretty easy. Go to your menu and select...

    File > Scripts > Export Layers To Files

    For your purposes, you'll most probably want to make sure you have the "Trim Layers" option checked.

  2. If all your icons are on a single, transparent layer, it's easy too. You can use the regular "Save for Web & Devices" and export all slices as images in one go. To create slices, simply use the "slice tool" to select the individual icon areas.

    slice tool

    export steps

8/27/2013 9:59:00 AM