Tag Info

Hot answers tagged

15

The main trick, in my experience, to adding smooth transparency to an image in GIMP is using the Layer → Transparency → Color to Alpha... tool. Of course, you have to know how to use it to good effect — on its own, all it does is make your images look all funny and translucent. If I take the image you posted above, and just run Color to ...


15

GIMP's Color to Alpha tool is very handy if you know how to use it, and this task seems particularly well suited for it: Open the image in GIMP, and change it to RGB color mode if necessary. Select Layer → Transparency → Color to Alpha... Select black (#000000) as the color to make transparent. Click "OK". Save the resulting image in PNG format: ...


10

I'm not sure this question is on-topic, but it's the first question on the site, so here we go: What you're looking for are layer based slices. Select the layers you want to export, go to Layer > New Layer Based Slice(s) Go to File > Save for Web & Devices... When saving, choose "All User Slices" If you have overlapping layers, which you will have ...


9

When in Photoshop, make sure you have the background layer turned off, then hit Ctrl+Shift+Alt+S and a box will come up "Save for Web and Devices." Select "PNG 24" from the dropdown on the right and make sure the transparency checkbox is clicked, hit save, select your destination and then load it into your site. PNG supports full transparency and alpha ...


9

Not sure about your exact instance, but I've often encountered PNG files that open with black or another color in place of the transparency. This is typically due to the PNG file using indexed colors and having an alpha palette rather than using a full alpha mask on the image itself. Basically, when you normally save a PNG file, you're using full 24-bit ...


9

The best icon libraries I've seen use an hybrid approach: For most sizes you have a vector graphic that is rendered for whatever resolution you want For the really tiny version (16x16px) you make a separate hand tuned bitmap that often isn't even the same image. Vector graphics is especially useful because today you have systems that can natively render ...


8

SVG is scalable, if you have a vector-graphic that is a clear advantage. For pixel-graphics PNG is better. A downside is, that the Internet Explorer supports SVG only with the coming version 9 (before with plugin). Mobile browsers may also have limited support for SVG. EDIT: As ClemDesm points out, older IE-versions don't support fully transparent PNG, ...


8

Select what you want Ctrl + G (Group Selection) Ctrl + C (Copy) Ctrl + N (New file) Ctrl + V (Paste) File > Save for Web & Devices then on the right switch .JPG to .PNG, then you also want to uncheck at the very bottom under the .PNG options where it says "Clip to Artboard"


7

Some compression-algorithms change the image to gain a better compression-ration - that are lossy algorithms/image formats. Most notably here is JPEG. Some keep all image information, these are called lossless. Lossless compression produces bigger files, but you have no changes to your graphic. Common lossless image formats are PNG, GIF or TIFF. As most of ...


7

"Also when I export PNG24 with alpha transparency in fireworks, it always adds background color, but in photoshop, it exports with alpha ." You need a PNG32 for the alpha channel, so when you save a PNG24 with an alpha channel, PhotoShop actually makes it a PNG32. In Fireworks, it actually let's you manually make the decision, so if you choose PNG24, you ...


7

32bit refers to 8 bits per channel for red, green, blue and alpha. In Photoshop, that's called 8 bit mode. 32 bit mode in Photoshop refers to 32 bits per channel, meaning 128 bits in total (32each for red, green, blue and alpha). 32×32dp (display points) works out to be 32×32 pixels for mdpi, 48×48 for hdpi, and 64×64 pixels for xhdpi. Those are the ...


7

When assigning white as alpha channel for transparency we will not be able to have opaque highlights, as these per definition will be white, hence fully transparent. To have an alpha channel sparing both highlighted white areas, and black shadows we better choose a grey color for assigning alpha. To show the effect more clearly I first made your original ...


7

For this, you best create separate channels for the shadows and highlights. The shadows can be directly taken from the white T-Shirt, and be used as a multiplicator (0-100%) for the shirt's color (layer mode: multiply) As for the highlights, this really depends on the material. Cloth doesn't reflect much light on the surface, so most of its color comes ...


6

No, you aren't missing something. There is no point at all in converting images to CMYK, and several good reasons NOT to. Converting images to flattened CMYK tiff is an old QuarkXpress workflow that is a complete waste of time today, especially with InDesign. What is a good idea is to size images in Photoshop before final output, to reduce file size and for ...


6

Roddy's answer gives a very quick, but destructive, method. If you'd wish to maintain layers — even just the background layer — in your source files, consider creating a new fully white layer that is a Clipping mask for the icon-layer itself. If you later need to edit the icon-layer, using clipping mask will always fill the new pixels with white, or remove ...


6

Not a complete solution, but this might help someone who's come here from Google. If you save with the Save for Web dialog File > Save for Web you can re-size during the saving process, the options are on the right hand side under Image Size. I do this quite often when I need a couple of different sizes for an image, although as the other responses ...


5

I don't usually use illustrator to slice the images. Photoshop is better at that, but I use Illustrator to do all my web design work. The best way to export to the web is to separate out the elements and put artboards around them (shift+O). You can then export those artboards to the web using save for web (command+option+shift+s). With save for web you can ...


5

Sadly, there isn't a straighter native way. There has been some threads on the topic on Adobe forums and even an Adobe employee recommends exporting the image in PDF and opening it in Photoshop — though it is kind of same as exporting it to a EPS and opening it in Illustrator. One other thread comes to the same conclusion, but someone does indeed ...


5

I'm not sure I understand what you're trying to do, but when you say your composition is 1000x1000 do you mean that the canvas is actually that size? One thing you can do is : 1) hide everything you don't want to see (option click the "eye" icon of your chosen layer) 2) select all 3) copy merged 4) create a new file (it'll automatically be the size of your ...


5

Here's how I'd do that. This assumes the shadow colour is black. If you want the transparency to match perfectly, you may need to make some adjustments near the end of this process (easy to do though). Open the Channels panel. Duplicate the green channel. Apply Levels to it, so that the highlight point hits the right end of the graph data on the ...


5

Erm.. there's no such thing as a "vector png." PNG, by nature, is a raster format. I'll assume you are using Fireworks since that's the only place I've ever seen vectors exist in a png file. Fireworks will embed vector content within the png format, that's proprietary and non-standard. What Fireworks basically does is save two versions of the file within ...


5

You can create your own script if you want, here's a simple one: main(); function main(){ var Name = app.activeDocument.name.replace(/\.[^\.]+$/, ''); var Ext = decodeURI(app.activeDocument.name).replace(/^.*\./,''); if(Ext.toLowerCase() != 'psd') return; var Path = app.activeDocument.path; var saveFile = File(Path + "/" + Name ...


5

No. The issue is the resolution you are trying to export as. A low resolution image, such as an icon, simply doesn't have a whole lot of pixels to work with. Typically, icons are either tweaked by hand, or drawn by hand in a raster format from the start. Software just can't make the aesthetic calls on a level like that. That said, though not SVG based, ...


5

If the patterns are indeed on individual layers, you may be able to use scripting to export each layer as an individual png. Carlos Canto wrote a script for Illustrator and posted it in the Adobe forums. In case of link rot, here's Carlos' script: #target Illustrator // script.name = exportLayersAsCSS_PNGs.jsx; // script.description = mimics the Save ...


5

I don't believe that the option exists as print-layout software is focused on laying ink on paper. Since "white" is the absence of ink, it acts as a transparent background. Keep on mind that unless you are laying a base of ink as a spot color on top of your specialty paper, you will not have any "white" areas in your print. In fact all non-black colors will ...


4

In eight keystrokes. This solution requires CS4 or higher. If your image is one single layer, only do steps 4 and 6-8. On Windows use CTRL instead of CMD. Fn+F7 or F7 (open the layer panel) ALT+CMD+a (select all layers) CMD+g (put the layers into a folder) CMD+SHIFT+n (create a new layer) CMD+] (moves the new layer out of the folder) d (changes to default ...


4

Command line is quicker. Install Imagemagick. One file: convert -transparent white whatever.jpg whatever.png More files: Put together a bash script file: for img in *.jpg; do filename=${img%.*} convert -transparent white "$filename.jpg" "$filename.png" done Run it and then you will be done. Note that the above will add transparency to everything ...


4

There were some good answers to this png compression question on SU. One or more of those might well fit the bill. Irfanview has excellent png support in its PNGOUT plug-in, and it's free for non-commercial use. It's been a while since I played with it, but iirc it did include lossy (color table) compression. That said, I'm fairly certain png output in ...


4

The one I like is called pngnq. It gives pretty good dithering, and one really really nice feature is that it lets you preserve the 8-bit alpha channel rather than quantising it to 1-bit (remember the bad ol' days of GIF?). It's command-line only, but if you don't mind that, it'll be a handy tool in your arsenal. You can choose to dither or not, of course ...



Only top voted, non community-wiki answers of a minimum length are eligible