png

What is the best way to save a PNG image with alpha transparency for IE6?

I am trying to save a 1 or 8-bit PNG image that looks nice in IE6. Do you have any suggestions? I have used Fireworks before, and that works pretty well, but I'm looking for other options. Thanks! ...

PHP: Converting png's and gif's into grayscale

Hello, im using the following script to convert jpgs into grayscale-images. http://bubble.ro/How_to_convert_an_image_to_grayscale_using_PHP.html i want to upgrade it to also convert pngs (with transparency) and gifs (with transparency) into grayscale images. At the moment it's not working. I'm querying the image-src for its file-extens...

Transparent shadow with jQuery

I have page with fixed 1000px. I want to set shadow on left and right sides of main page. I can't use static .png with y-repeat, because my background is not a fixed color, it is image. So I can't use image. Any jQuery plugin which can do shadow? Or other solutions, not only jQuery plugins... ...

LibGD strange bug when plotting random coordinates

Hey all, I'm using LibGD to plot a bunch of random coordinates and output a png of the result. Here's the code: #include <gd.h> #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { srand(time(NULL)); gdImagePtr image; FILE *pngout; int num_pixels; int xy; cout << "num_pixels: "; cin >> ...

Add PNG image to picturebox dynamically?

I can't add a PNG image that contains alpha chanel into a picturebox dynamically by code because it always replace the transparent area with the black color. Is there a way to do it? ...

PHP: grayscale jpgs, gifs, pngs... also with alpha channels?

Hey guys, $im = ImageCreateFromString(file_get_contents($source_file)); ImageFilter($im, IMG_FILTER_GRAYSCALE); any idea what i could do, to properly grayscale gifs and pngs with transperancy? This snippet actually works good, it transforms jpgs and pngs to grayscale. However gifs are a little bit "buggy" - they don't always work, it...

pchart stroke function

The call to Stroke() function in pChart renders an Image. When I try to display this image on the browser, it shows something like the following instead of showing an image. How can I display the image instead of these wierd characters? �PNG ��� IHDR����������h����tRNS������7X}�� �IDATx���wt[Y~'���C H�Q�(�RV)TUW��v�}��cό�9�;g�xvv�;s�...

pChart - Display png image on browser

I am using the pChart class library to display .png Image on the browser. Through AJAX, I call the controller action graphgenerator to call generateGraph function in a model and display the output through a view on the browser. The generateGraph function in the MVC model, tries to generate graphs in a loop with an HTML table using pChar...

Add drop shadow to PNG using Cocoa

I have some PNGs with transparent backgrounds that I would like to add shadows to programatically. I've seen examples of adding shadows to square objects, but haven't seen any with complex shapes. So the two steps I think I'd have to do would be: Isolate the PNG shape Draw a shape behind the PNG that is blurred, faded, and offset. I...

Why does a PNG image sometimes get blurry depending on its position in a view

Hi, I have noticed that when placing PNG images into a view using IB and/or animating those images to various positions around a view, the image can sometimes get a slight blur. In most cases I can remedy the blur by adding .5 of a pixel to the images position. [lbLiteButton.layer setPosition:CGPointMake(140.5,159.5)]; Sometimes I ...

Loading textures. CGContextDrawImage performance

I have been using Texture2D class from standard iPhone SDK samples for loading and displaying OpenGL textures . It works fine for me, although, there is still one small problem I would like to solve. The performance of loading PNG textures is quite slow for me. I am trying to load about 10 PNG files with 512x512 size and it takes a whil...

Delphi, ImageList that handles BOTH png and bitmaps.

Recently I've found TPngImageList component ( http://cc.embarcadero.com/Item/26127 ) which is very good, but it handles only png images ... I'd like to have some imagelist that allows combining of pngimages with bitmaps, as I'm using lots of bitmaps, and I do not want to spend coming week converting those bitmaps to pngs, yet I want to u...

PNG image appears in IE8, disappears in IE7

I'm attempting to display a logo (PNG created in Paint.NET) on my web page (XHTML 1.0 Transitional), like this: <body> <div class="header"> <div class="logo"> <img src="logo.png" /> </div> <!-- etc. --> .header is styled as follows: .header { background-color: Black; color: White; margin-left: -3em; padding-...

Is "Export Movie" as PNG Sequence for movies with actionscript animation possible in Flash CS4?

Hello All, I was wondering if there is any way to use the "Export Movie" as "PNG Sequence" to work for movies where objects are animated with actionscript. Exporting like this works just dandy for normal animations, but it doesn't work for my current project. Basically I am creating images using mathematics and I want to be able to expo...

How can I read PNG Metadata from PHP?

This is what I have so far: <?php $file = "18201010338AM16390621000846.png"; $test = file_get_contents($file, FILE_BINARY); echo str_replace("\n","<br>",$test); ?> The output is sorta what I want, but I really only need lines 3-7 (inclusively). This is what the output looks like now: http://silentnoobs.com/pbss/collector/test.ph...

Mac OS. How to create image from PNG data?

Hi, all! I have an array of data that represents PNG: unsigned short systemFontTexture[] = { ... 0x5089,0x474E,0x0A0D,0x5089,0x474E,0x0A0D,0x5089, 0x474E,0x0A0D,0x5089,0x474E,0x474E,0x0A0D,0x5089, 0x474E,0x0A0D,0x5089,0x474E,0x474E,0x0A0D,0x5089, ... } Can I create PNG file using this data? If yes, then HOW? ...

Python: default/common way to read png images

I haven't found a standard way in Python to read images. Is there really none (because there are so many functions for so many custom stuff that I really wonder that there are no functions to read images)? Or what is it? (It should be available in the MacOSX standard installation and in most recent versions on Linux distributions.) If t...

c# Bitmap.Save transparancy doesn't save in png

I'm trying to save a Bitmap class that has transparancy as a png file with transparancy. I'm having no luck. The bitmap has transparancy, it just doesn't save with transparancy. this is what I'm doing bitmap setup Bitmap ret = new Bitmap(bWidth, bHeight, System.Drawing.Imaging.PixelFormat.Format32bppArgb); saveing ret.Save(filenam...

How do I play a specific range of a UIImageView animation sequence array?

Hi, I have a question regarding a png, animated image sequence. I am loading images from 1 - 35 into a layer and I am initializing the layer with the 1st image using - initWithImage. I have several buttons that want to be able to play different ranges of the image sequence array. Is there a way to play only the images from 1 - 10? I...

How to dump out an array of pixels as a png ?

I'm on MacOSX. I have read out an image, as char image[WIDTH][HEIGHT][3]; // row, col, rgb value Now, I want to dump it out as a png file. What is the quickest way to do this? ...