Hot answers tagged png
10
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:
...
9
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 ...
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 ...
8
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 ...
8
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 ...
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 ...
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
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, ...
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
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 ...
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
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 ...
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, ...
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
I'm not feeling very motivated to answer as it seems like you didn't even try my suggestion and you were saying that my idea doesn't work because this and that which just seemed to me like you didn't read my messages properly. ( could be that I wasn't very clear in what I said, but still. )
My example didn't quite look like your image because, I'm not doing ...
4
Copying 54kb PNG file to Windows XP VM decreased file size to 5kb. OS X Photoshop version adds "com.apple.resourcefork" attribute to file during regular saving. You can see it by ls -l@ filename.png. The attribute is not included in file, but the file system shows total size. The white background from the screenshot seems to appear because of this attribute. ...
3
what i think this is not a PNG issue what you are doing is your both object are not similar to each other i checked your PSD and i slightly lift your top layer and erase all object content similar to your top layer, the output is ready.
8-bit png's don't do transparency properly. Save them as 32-bit and see.
Your Issue :
My Output :
Please let me ...
3
All pngs are 'good' and 'sharp' as they are losslessly compressed, unlike jpgs. It's just a matter of experimenting with settings that keep an amount of colour that you're happy with while keeping file sizes as low as possible.
In Photoshop, the 'Save for web' exporter allows you to view 3 different optimised versions of the output as well as the original. ...
3
Before I say, "The people you're making this for couldn't see the difference if there lives depended on it".
I offer this: I think you're comparing Apples to Oranges, then trying to ask why things are different. The programs you're comparing are completely different (demographic, intended use), you shouldn't expect a seamless use between them - especially ...
3
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 ...
3
No, GIF for static images is a waste of bandwith. PNG can almost always be much smaller than GIF
GIF has very poor compression algorithm, but has smaller header.
PNG has few bytes more of overhead for extensible metadata, but has superior compression algorithm.
So the larger the image, the bigger advantage PNG has. Basically only images like 1x1 spacer ...
3
The page you linked has a solution: to use a PNG with transparency, you need to fake it out for specific browsers ( from that link there is also a MS support page see: http://support.microsoft.com/default.aspx?scid=kb;en-us;294714 )
The advantage the PNG has in this case is that it supports alpha channels which essentially allows 256 levels of transparency ...
3
PNG is fine for transparency. In my experience it's a question of how many colors your image has, and how big it ends up being. For vector I tend towards GIF and for raster I like PNG, but there's no hard-and-fast rule.
Experiment in the Save For Web dialog in Photoshop and play around with the colors. See how many you can reduce it to without compromising ...
3
It seems that to date there are none.
You could try to work this around by exporting each frame as a PNG in Photoshop and then use an external application to merge the PNGs to an APNG. See the list of related software on animatedpng.com. For example Japng or APNG Assembler could do the trick.
3
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 ...
3
I ended up using ImageOptim:
http://imageoptim.com/
What it is is a wrapper around several different PNG optimization tools. It comes with OptiPNG, PNGCrush, AdvPNG, PNGout and a few other's you can add-on.
The idea is that it picks the best tool for the particular PNG.
It's not perfect in that it's still mostly automatic, so I can't fine tune more ...
Only top voted, non community-wiki answers of a minimum length are eligible
