png

Adding a png image to a java applet

Hello all, I am very new to java, I want to add a PNG image to my applet. From some reason when I add this image I receive the following error: Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferInt.(Unknown Source) at java.awt.image.Raster.createPackedRaster(Unknown So...

Showing a .png image in a window in wxPython

How to show a .png image in a window in wxPython? ...

Saving CGImageRef to a png file?

Hi, in my Cocoa application, I load a .jpg file from disk, manipulate it. Now it needs to be written to disk as a .png file. How can you do that? Thanks for your help! ...

Issue with transparent images on a transparent background

I have a weird issue with a graphic with rounded corners. I have a HTML page with the body set to transparent (style="filter:alpha(opacity=100);opacity:100;background-color:transparent;") and within this body is a div with a PNG image with rounded corners, with transparency on the edges so that it transitions correctly with the backgrou...

PNG not shown in IE6

When I open a specific png file in IE6, it just displays a red X, which looks like image not found error. It works fine in other browsers. Some other png images can render correct in IE6. I checked the can-render png with can-not-render png with fiddler, I found the can-not-render png is only 150 bytes. I wonder if the too small size cau...

Reduce bit-depth of PNG files from the command line

What command or series of commands could I execute from the CLI to recursively traverse a directory tree and reduce the bit-depth of all PNG files within that tree from 24bpp to 16bpp? Commands should preserve the alpha layer and should not increase the file size of the PNGs - in fact a decrease would be preferable. I have an OSX based...

PNG image sequence playing problem

Hi, Ok, I have a button that, when pressed, should animate/play a png image sequence. My problem is - I press the button (button A) and the image sequence plays - which is good! but then I press (button A) again and nothing happens. - bad. but then... if I press (button A) a third time - the image sequence plays. So basically, the ...

favicon.png vs favicon.ico - why should I use PNG's instead of ICO's?

Other than the fact that PNG is a more common image format, is there any technical reason to favor favicon.png vs. favicon.ico? I'm supporting modern browsers which all support PNG favorite icons. ...

Bitmap Save in .Net is saving the image in an incorrect format??

We have a piece of code which saves a .Net System.Drawing.Bitmap to file. The Save call is specifying the file location as well as the ImageFormat which we are expecting to save the image data as a Jpeg so out code looks like this: public MediaFile IngestImage(System.Drawing.Bitmap imgSrc, string name){ ... // left out because it ...

A More precise PNG library for .NET 2.0?

Yes, I am using C# 2.0 and need to do things with PNG files, for example use a custom palette, that I cannot find out how to do with System.Drawing. Is there a 3rd-party library (preferably GPL-compatible) that will enable more fine-tuned control over PNG encoding? Update: Examples of what I want to do: Create, edit, and remove an im...

Imagemagick problem when loading a png file

I've compiled the latest version of imagemagick for the mac and I get the assertion below when I load a particular png file. This is a bit of a hassle as it crashes the program in debug mode. Anyone ever seen this before? Any workarounds? Assertion failed: (quantum_info->signature == MagickSignature), function DestroyQuantumInfo, file...

How can I build imagemagick without any asserts

Right now I'm using the following: export CFLAGS="-O2-isysroot/Developer/SDKs/MacOSX10.5.sdk -arch i386 -I/sw/include/" export LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk,-L/sw/lib/" sudo ./configure --prefix=/sw --with-quantum-depth=16 --disable-dependency-tracking --with-x=no --without-perl --enable-static --disable-share...

Alpha transparent PNGs not displaying correctly in Mobile Safari

I'm using some semi-transparent PNGs as background-images on various websites. These are usually something like a 1x1 image with a 30-percent opaque white layer. I've noticed that Mobile Safari does not display them correctly, giving them a darker/grayish tint. I've created a couple test pages to illustrate. View them both in your norm...

How to fix "png opacity" and still support positioning at the same time?

How to correct it so that it's always like,like in firefox? EDIT: I tried some fix,but not working for me, I'm using something like below in my application: background:transparent url(../static/icons_ns6.png) no-repeat scroll 0 -80px; Say,I need to position the background image. ...

PIL: Thumbnail and end up with a square image

Calling image = Image.open(data) image.thumbnail((36,36), Image.NEAREST) will maintain the aspect ratio. But I need to end up displaying the image like this: <img src="/media/image.png" style="height:36px; width:36px" /> Can I have a letterbox style with either transparent or white around the image? ...

Access PNG Metadata

How can I access/remove PNG metadata? I'm looking for a Mac application or a PHP snippet. ...

PNG buttons do not alight correctly

Hi, I have 6 png images that I am trying to align as buttons in one line. All the buttons tend to align correctly expect for the last one. I have margin-left:0px, so all the buttons stick together looking like a long tag. During load time, if the page takes longer the last button loads fastest so loads and just goes all over the pl...

Read a PNG Using Win32 / C++

That there is no simple way to read a PNG file into a memory bitmap in native Windows seemed impossible, but after much googling I'm beginning to believe it. The libpng/zlib combination is just too big. Any third-party libraries Win32 libraries out there for reading a PNG? Edit: The boost::gil::png solution is much more complex than I'...

How to merge transparent PNG with image using PHP?

Hello, The situation is this: I have a small 50x50 pic. I also have a small 50x50 transparent picture which contains a frame for the 50x50 pic, so I basically want to put the transparent png on top of the image and merge those two which would lead to a done third picture that looks something like this: http://img245.imageshack.us/i/50x5...

Generate transparent PNG c#

I have below function to generate a sample logo. What I want to do is to return a transparent png or gif instead of white background. How can I do it? private Bitmap CreateLogo(string subdomain) { Bitmap objBmpImage = new Bitmap(1, 1); int intWidth = 0; int intHeight = 0; Font objFont = new Font("Arial", 13, System.Dra...