png

How do you use a DeflateStream on part of a file?

I'm working on a solution to my other question which is reading the data in the 'zTXt' chunks of a PNG. I am as far as locating the chunks in the file, and reading the zTXt's keyword. I'm having trouble reading the compressed portion of zTXt. I've never worked with the DeflateStream object before, and am having some trouble with it. ...

Does anyone know of a program/method to compress just certain parts of a PNG image w/o slicing it?

Please help! Thanks in advance. Update: Sorry for the delayed response, but if it is helpful to provide more context here, since I'm not sure what alternative question I should be asking. I have an image for a website home page that is 300px x 300px. That image has several distinct regions, including two that have graphical copy on t...

What application does google use to show PDF attachments in gmail

I watched the traffic when google displays PDF attachments in gmail in a new window. The content is served as PNG images for each PDF page. And its text can be selected. What does google use on server side to generate a PNG file for a particular page in a pdf file? How does the selection of text on a png file work? Any ideas? ...

How do I convert multiple png images to a single tiff file

I have a byte array of several images in the png format. I have to convert this to a tiff file and then into the corresponding byte array. This tiff file will hold multiple images. I have searced a lot, but I haven't been successful. The catch is. i have to do this in java only!! :) Can anyone provide some insight as regards my issue? ...

Setting Palette on ASP.net/GDI+ Generated PNG Image

I just built an application in ASP.net that returns a PNG image. The resulting image is entirely black on a transparent background. Is there a way to index the image to reduce the file size? I can not index the new image as it is created because I am using the graphics object which will not allow it. Thank you very much for the help -...

Setting color when drawing into a NSImage

I'm trying to tag a picture file with a date in Cocoa and are trying to do this in a small command line tool. It works fine...but, I can't seem to be able to set the color. Am I doing something wrong? #import <Cocoa/Cocoa.h> int main (int argc, const char * argv[]) { [NSApplication sharedApplication]; NSAutoreleasePool * pool =...

Generating icons for iPhone UITabBar

I’ve been busy working on the graphics for my iPhone application. I started working on generating icons for my UITabBar and ran into lots of problems. How do you create these icons? I created this solution: http://www.nailrails.com/?p=46 Are there any shortcomings to this approach? It seemed to work for the few icons I created... ...

How to use semi-transparent png images in IE6

How can I use semi-transparent png images in IE6? ...

Avoiding browser incompatibilities when using animated PNG images

Animated PNG images (APNG) have been around for quite a while in an attempt to add this functionality of the GIF format to PNG images. According to Wikipedia they are supported in Opera (>= 9.5) and in Firefox (>= 3.0). The first frame in the APNG animation is displayed if a browser doesn't support APNG images, since it was defined as an...

How many bits per component do I have to specify for pngcrunch-optimized 24bit PNG files with alphatransparency?

CGBitmapContextCreate takes an parameter that's not very obvious to me: For example, for a 32-bit pixel format and an RGB color space, you would specify a value of 8 bits per component. I have created 24-bit PNG files with alphatransparency, and added them to Xcode. At compile time, Xcode optimizes those PNG tiles with pngcru...

AJAX load of a rendered PNG not working

I am rendering a custom image based on some defaults and parameters in POST with a custom php script and the GD library. I am trying to build a custom form to allow users to select these parameters and then send an AJAX request to render the image and send it back and load a preview in the page. The problem is that the first preview ...

Just in theory: How is the alpha component premultiplied into the other components of an PNG in iPhone OS, and how can it be unpremultiplied properly?

Actually, I thought that there would be an easy way to achieve that. What I need is pure alpha value information. For testing, I have a 50 x 55 px PNG, where on every edge a 5x5 pixel rectangle is fully transparent. In these areas alpha has to be 0.Everywhere else it has to be 255. I made very sure that my PNG is created correctly, and i...

Ghostscript Multipage PDF to PNG

I've been using ghostscript to do pdf to image generation of a single page from the pdf. Now I need to be able to pull multiple pages from the pdf and produce a long vertical image. Is there an argument that I'm missing that would allow this? So far I'm using the following arguments when I call out to ghostscript: string[] args ={ ...

Create PNG image with C# HttpHandler webservice

I'd like to be able to create a simple PNG image, say of a red square using a c# web based service to generate the image, called from an <img src="myws.ashx?x=100> HTML element. some example HTML: <hmtl><body> <img src="http://mysite.com/webservice/rectangle.ashx?size=100"&gt; </body></html> Is there is anyone who can cobble tog...

Is it possible to check for PNG support with jQuery.Support?

My question is regarding the jQuery Support system. I'd like to know if it is possible to tell whether or not the browser will support semi-transparent background PNG images using this method. Edit: I am not interested in CSS solutions to a specific problem. I'd like to know if the jQuery support checking system can check this. I app...

create a dynamic PNG image using PHP

I want to create a small function in PHP which takes in arguments like color, shape, transparency etc. and outputs a PNG image. I heard about PHP GD library but I want to know how can one create something as creative as soon.media.mit.edu ...

Problem in handle PNG by the PIL

from PIL import ImageFile as PILImageFile p = PILImageFile.Parser() #Parser the data for chunk in content.chunks(): p.feed(chunk) try: image = p.close() except IOError: return None #Here the model is RGBA if image.mode != "RGB": image = image.convert("RGB") It always get stuck in here: ima...

TwinHelix IE PNG Fix not working for unordered list or list items

I am using the TwinHelix IE PNG Fix http://www.twinhelix.com/css/iepngfix/ in order to have PNG transparency support in IE, but for whatever reason it doesn't seem to work in IE 6 for unordered lists and list items. Everything else works fantastic. Has anyone experienced this issue before, and did you find a fix for it? ...

Saving flash chart to png

Hi, In Fusion charts 3.0 they have option to save the graph as PNG. But it is only for licensed users. But they don't have that option for free users. My requirement is to save it as an image somehow. Is it possible in the free version. To achieve that what am I supposed to do. Is there any mechanism ( 3rd party tool ) to convert flas...

IE6 transparency problem for dynamic images

Hello, I am trying to use the various techniques with dynamic png images i.e. images added after the page has been loaded using javascript DOM. All of the techniques I tried seem to fail. Is there a reliable technqiue for the same? Thank you very much for your time. ...