png

how to get a js png fix to work on ajax calls

we're using js to do png replacement, and we also have ajax updates on some of these elements. when the page fragment gets updated, the png fix gets lost, since the png fix traverses the dom and replaces png bg images when the document loads. is there a way to render the png replacement when the ajax update takes place, rather than only ...

Use PHP to convert PNG to JPG with compression?

I have a bunch of high quality PNG files. I want to use PHP to convert them to JPG because of it's smaller file sizes while maintaining quality. I want to display the JPG files on the web. Does PHP have functions/libraries to do this? Is the quality/compression any good? ...

How to embed a .png in a .swf to show in flash app (DIY map)

Hey guys, I am using the cool map making program DIY map and i want to keep my points as images. However, you can only set .swfs and jpgs as image points. The author of the program says quote: Unfortunately, Flash can not load GIF’s or PNG’s dynamically, but you can embed these into an SWF. PNG’s embedded into an SWF will also displ...

How to solve/hack fading semi-transparent PNG bug in IE8?

As you know, IE6 has bug that can't display semi-transparent PNG file without using non-standard style like filter. In IE7, this problem is fixed. But It still has some bug about PNG file. It can't correctly display fading semi-transparent PNG file. You can clearly see it when you use show/hide function in jQuery with semi-transparent PN...

IE 7 transparent PNG problem

I have this site (http://techlipse.net/test/agb) with a css layout. The PNGs with transparent backgrounds (they are saved as is from Fireworks as FW png) cycle with fade effect while theres another div behind it with clouds moving (telerik rad rotator) .. Transparent images create this black outline around them. If anyone explains me wha...

Can somebody help me modifying an open-source software (KeePass)?

Hi, Do you know of KeePass Password Safe 2? It's open-source and I'm trying to do some things but I've hit a dead end and can't find where the code is doing this and why it's doing it at all. The source code is here and it's coded in C#: http://downloads.sourceforge.net/keepass/KeePass-2.08-Source.zip The problem is that the icons of ...

Dynamic Height and Width When Rendering XAML Buttons to PNG

I'm putting together a prototype to use XAML to create PNG buttons. The basic idea is that nice, gradient image buttons can be generated from localized strings instead of having them created by any sort of graphics dept. The most straightforward example I found actually was to build a C# assembly and call it from PHP. I converted it to...

Fade in an alpha-blended PNG form in Delphi

I asked a question about this some years back when Vista was first released, but never resolved the problem and shelved it as something to consider later. I have a splash screen that I went to great effort to make look great. It's a 32bpp alpha-blended PNG. I have some code (which I can dig up if required!) that works great under Windo...

PIL does not save transparency

from PIL import Image img = Image.open('1.png') img.save('2.png') The first image has a transparent background, but when I save it, the transparency is gone (background is white) What am I doing wrong? ...

combining multiple transparant png's using GDI+ causes OutOfMemoryException

Hi, I'm trying to combine multiple fairly large png files (7000 by 7000 pixels) that have transparency (32bpp) using GDI+. In the OnPaint event of a usercontrol I draw the images on top of each other like this: Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs) Try If Not mImageList Is Nothing Then e.Graphics.Tr...

Drag and drop batch file for multiple files?

I wrote a batch file to use PngCrush to optimize a .png image when I drag and drop it onto the batch file. In the what's next section, I wrote about what I thought would be a good upgrade to the batch file. My question is: is it possible to create a batch file like I did in the post, but capable of optimizing multiple images at once? D...

how to modify this php script to handle png and gif uploads

I have the following script (it looks long, but well commented). Problem is, i get errors when i try to upload a png or gif image. What can i do to adjust this (easy if possible) so that it can either work with png's and gif's or convert them before trying to work with them. This is the error that i recieve Warning: imagecreatefromjpeg...

making PNG file for iPhone OpenGL ES

Hello, I am currently trying to learn about OpenGL ES for the iPhone and following Simon Maurice's excellent tutorial located here. The problem I am running into is that in an attempt to personalize the tutorial, I have switched the PNG file from the one included with the tutorial to a custom one. Whenever I do, not only does the bac...

java pgm 2 jpeg/png

I have an int array containing gray scale values from 0-254, i also have the x and y size of the image. It is an easy thing to create an pgm image, but i want to display it in a jsp, so i need somehow to convert it to a jpeg or png image. If you suggest jai, than please tell me at which classes to look, or how to actually do it in jai. ...

PNG Transparency Problems in IE8

I'm having problems with a transparent PNG image showing black dithered pixel artifacts around the edge of the non transparent part of the image. It only does this in Internet Explorer and it only does it from a Javascript file it is used in. Here's what I'm talking about... http://70.86.157.71/test/test3.htm (link now dead) ...notice ...

Efficient way to fingerprint an image (jpg, png, etc)?

Is there an efficient way to get a fingerprint of an image for duplicate detection? That is, given an image file, say a jpg or png, I'd like to be able to quickly calculate a value that identifies the image content and is fairly resilient to other aspects of the image (eg. the image metadata) changing. If it deals with resizing that's ...

How to convert PNG to GIF using javascript or other client-side tech?

I have a combination of client-side technologies creating PNG data in the browser. Is there a way to convert the PNG data to GIF for display in IE without sending the data to the server? Wondering if there is an existing JavaScript library that will parse the PNG data and output GIF, or even JPEG. I know that I can send the PNG data to a...

PHP - getting a site's favicon and converting it to png if necessary

Hi For any given site "example.domain.tld" or merely "domain.tld" I need to do the following in PHP: If the site has a favicon, get it wherever it is If it is not already a PNG, convert it to PNG Save it to /favicons/example.domain.tld.png If the site has no favicon, do nothing. Any ideas? I'm being stumped by the unreliable filef...

Background Image in Div on Right Border in IE6

Help I try desperately to place a background image on the right border in a DIV in Internet Explorer 6. No success so far. This is my CSS: .test { width: 100px; border-right: red thin solid; border-top: red thin solid; border-left: red thin solid; border-bottom: red thin solid; background-position-x: 100%; ...

libpng framework on OS X

I'm looking for an Xcode project file that will let me trivially build a dynamic framework for libpng to embed in a Mac OS X application bundle. I found this project for libpng 1.2.8, but I need something reasonably current. I can make the project file myself, but I'd rather not reinvent the wheel if I don't have to. Does this already...