png

How to get PNG transparency working in browsers that don't natively support it?

Our (beloved) designer keeps creating PNG files with transparent backgrounds for use in our applications. I'd like to make sure that this feature of the PNG works in "older" browsers as well. What's the best solution? edits below @mabwi & @syd - Whether or not I agree about the use of a PNG is not the point. This is a problem that I ne...

How do i resize and convert an uploaded image to a PNG using GD

I want to allow users to upload avatar-type images in a variety of formats (GIF,JPEG,PNG at least), but to save them all as PNG database BLOBs. If the images are oversize, pixelwise, i want to resize them before DB-insertion. What is the best way to use GD to do the resizing and PNG conversion? Edit: Sadly, only GD is available on the ...

Can PNG image transparency be preserved when using PHP's GDlib imagecopyresampled?

The following PHP code snippet uses GD to resize a browser-uploaded PNG to 128x128. It works great, except that the transparent areas in the original image are being replaced with a solid color- black in my case. Even though imagesavealpha is set, something isn't quite right. What's the best way to preserve the transparency in the res...

Dotnetnuke using PNG images with Transparency

I have a Dotnetnuke site where my main logo is a PNG file using transparency. I tried GIF but the quality wasn't good enough. Anyways it worked great on IE7 but I just saw my site in IE6 and noticed that the transparency isn't working with my logo. Does anyone know of a quick way to fix this in a dotnetnuke portal? ...

Converting SVG to PNG using C#

I've been trying to convert SVG images to PNG using C#, without having to write too much code. Can anyone recommend a library or example code for doing this? ...

Which jQuery plugin should be used to fix the IE6 PNG transparency issue?

Is there an IE6/PNG fix that is officially developed by the jQuery team? If not which of the available plugins should I use? ...

Creating cursor rsrc files on Mac from png

Hi, I want to create cursor rsrc files on the Mac from png files. The application that uses the cursors requires it to be in a .rsrc format and I cannot change that. Does anybody know of any way I can create the cursor .rsrc files from png images. Thanks jbsp72 ...

How can I make Internet Explorer not change the colors in my PNG images

When using PNG files (made with Paint.NET) as background images on my web site, IE7 is changing the colors and actually displaying a darker version of my images, as seen here. In this image, the dark background and background image should be both #001122, and the medium background and background image #004466. But IE7 changes the images ...

Is there a JavaScript PNG fix for IE6 that allows CSS background positioning?

I've seen a few fixes for allowing PNG images to have transparency in Internet Explorer 6, but I've yet to find one that also allows you to set the background position in CSS. If you use sprites, it's a deal-breaker. I've resorted to using GIF's (which are not as high quality), not using transparent images at all, or serving a completely...

Fastest way to determine image resolution and file type in PHP or Unix command line?

I'm currently using ImageMagick to determine the resolution of images uploaded to the website. By calling ImageMagick's "identify" on the command line it takes about 0.42 seconds to determine a 1MB JPEG's resolution along with the fact that it's a JPEG. I find that a bit slow. Using the Imagick PHP library is even slower as it attemps t...

Removing blotchiness on transparent PNGs filtered with additional opacity in IE

I made a rotating image fader using Javascript and CSS to show images and unload them. I wanted to use transparent PNG's, I didn't expect or care if they looked good in IE 6, but IE 7 and 8 treated them with the same disrespect. Firefox and other modern browsers looked great. Every picture with image.filter = alpha(opacity=xxx) in it ...

Which format for small website images? GIF or PNG?

When doing small icons, header graphics and the like for websites, is it better to use GIFs or PNGs? Obviously if transparency effects are required, then PNGs are definitely the way to go, and for larger, more photographic images I'd use JPEGs - but for normal web "furniture", which would you recommend and why? It may just be the tools...

IE6 issues with transparent PNGs

I've gotten used to the idea that if I want/need to use alpha-trans PNGs in a cross-browser manner, that I use a background image on a div and then, in IE6-only CSS, mark the background as "none" and include the proper "filter" argument. Is there another way? A better way? Is there a way to do this with the img tag and not with backgrou...

Color differences between images and html

I'm having issues with color matching css background colors with colors in images on the same html page. What gives? ...

Software for creating PNG 8bit transparent images?

I'm looking for software to create PNG8 format transparent images as per this article. NOTE: I need a linux solution myself, but please submit answers for other OSes. ...

Extracting PNG images from Delphi 2009 imagelist

The TImageList of Delphi 2009 has support for PNG images by adding them in the imagelist editor. Is there any way to extract a TPngImage from a TImagelist and preserving the alpha channel? What I want to do is actually to extract the images from one TImageList, make a disabled version of them and then add them to another TImageList. Dur...

Using nmake with wildcards in the makefile

I am attempting to set up an nmake makefile to export our balsamiq mockup files to png files automatically, but I'm afraid I can't make heads nor tails of how to make a generic rule for doing so, without explicitly listing all the files I want exported. This page details the command line syntax for exporting the files, and this page con...

PNG Creation in PHP (is it different than gif and jpg?)

I have a image upload form that should take image types (PNG, JPEG, GIF), resize it and then save it to a path. For some reason I can't get the PNG file types to work, it works fine with JPEG/GIF and the file is copied so it looks like it's something to do with how I'm creating the PNG. Does PNG creation in PHP require different para...

Free tool to Create/Edit PNG Images?

Is there any free tool available for creating and editing PNG Images? ...

Fuzzy .png in Flash CS3

PNG images appear "fuzzy" in flash CS3. They are very blocky and appear unanti-aliased (if that is a word) Does anyone have a fix for this? Is there some setting I'm missing? ...