When copying and pasting transparent GIF or PNG images from the internet into Photoshop, the transparent areas of the image may be converted into black. The problem is that transparency is not recognized during the copy/paste command, and so, the transparent areas default to black. How can this be avoided?
Method 1: Save the image first.
The simplest way to get around this problem is to simply save the image from the web to your hard drive, instead of copying it. Once the actual GIF or PNG image file is on your hard drive, you can easily open the file in Photoshop. The transparency will be recognized, and you can copy/paste within Photoshop into other open files as needed.
Method 2: Manually remove the black.
Another possibility, although more complicated, is to manually delete the black area after pasting from the web. This is not a good idea if your image already has black in it. Go to Select > Color Range, make sure the Select drop down is on “Sampled Colors,” and then use they eyedropper tool to select an area of the color black which you wish to remove. Turn the Fuzziness down to 0, and click OK. Now simply hit the Delete key to remove the selected black area. Be careful! If your original image has any black pixels in it, these will be removed as well, because after the transparency gets converted to black there is no way to tell the difference. Method 1 is guaranteed to keep the original image intact, but it is useful to know all the options!
Let’s say you have a folder full of images that you want to sequence together as frames in an animated GIF. You can find special programs online to do this, but with some of the new features of Adobe Photoshop, it’s quite fast and simple.
- Gather the images you want to animate into one folder.
- Click File > Scripts > Load Files into Stack. When the “Load Layers” window pops up, click Browse to select & open your image files, and then click OK. This should import the files you selected as individual layers in your document. Rearrange the layers into the correct order, if necessary.
- This next step differs depending on what version of Photoshop you have:
- For Photoshop CS5: Open the Animation palette (Window > Animation).
- For Photoshop CS6: Open the Timeline palette (Window > Timeline ).
- For Photoshop CC (Creative Cloud): Open the Timeline palette (Window > Timeline ). In the middle of the palette, you will see a button with a drop-down allowing you to choose either “Create Video Timeline” or “Create Frame Animation.” You want to choose & then click the Create Frame Animation button.
- In the Animation/Timeline palette menu (found under this button at the top right corner of the palette: ), click Make Frames From Layers. You can also click Reverse Frames if needed. This will take each layer in your document and set it as an individual frame in the animation.
- Now we will change the duration of each frame. Make sure you are in frame view, not timeline view. If you do not see thumbnail icons of all your layers in the Animation/Timeline palette, click the icon in the lower right corner (the hover text will say “Convert to Frame Animation”). Now, back in the Animation/Timeline palette menu, click Select All Frames.
- Click the drop down button just underneath each frame image (circled in red in the image below). This will bring up a menu where you can set a duration. Since all frames are selected, all frames will be set to the same time. Each frame can be changed individually, if desired.
- The drop down button circled in black in the image above will change how many times the animation will loop; either a fixed number of times, or forever.
- Once the frame order and timing as been set up, it is time to save the image! Click File > Save for Web & Devices, make sure the file format is set to GIF, change any other options if needed, and save the image!
You will now have an animated GIF taken from a folder full of the individual frames. In fact, as long as each frame exists as a separate layer in Photoshop, the Animation/Timeline palette can be used to create the GIF. But, with CS5, CS6, or Creative Cloud (CC) it is easy to make separate layers from a folder of the individual frames as described.
If you want to add a transition effect to fade one frame into the following frame, please see my other post, Fade In & Fade Out an Animated .GIF in Photoshop.