png

How to make Boost::GIL work with PNG & JPEG IO?

Boost::GIL has almost perfect tutorial and manual. I find it troublesome to lack guide on building and using Boost::GIL work with PNG & JPEG IO. Does anyone have experience or have successfully did that? Please kindly advise! Thanks! EDIT: Answer lies here: http://opensource.adobe.com/wiki/display/gil/Downloads ...

Using PNG images in web sites

Is it okay to use PNG images in a website? I haven't really seen them used much so was wondering what the drawbacks are. There must be some as surely everyone would be using them?... Are they, for example, MSIE and Chrome compliant etc... ...

web page: semi-transparent elements -> PNG

I have a web site that makes use of CSS box shadows. To make the web site look good in more browsers, I want to make use of semi-transparent PNGs instead. And to avoid having to redraw elements in a graphics program, I would like to know: Is there a way to extract semi-transparent elements from a web page and store them in semi...

How do you save a plot in Octave 3.0.5 if it has latex in it?

My school has Matlab but I can't use it at home so I am trying to learn Octave. I am having trouble saving plots as png files so I can put them in a report. I read you can use print("filename.png") to save the plots, but I am getting some kind of error I am assuming is due to using latex in my labels I am using xlabel('\omega') Error ...

How do I create an 8-bit PNG with transparency from an NSBitmapImageRep?

I have a 32-bit NSBitmapImageRep which has an alpha channel with essentially 1-bit values (the pixels are either on or off). I want to save this bitmap to an 8-bit PNG file with transparency. If I use the -representationUsingType:properties: method of NSBitmapImageRep and pass in NSPNGFileType, a 32-bit PNG is created, which is not what...

Easy way to translate a Bitmap & Png to text AND BACK AGAIN in C#

what is the easiest way to translate a Bitmap & Png to string AND BACK AGAIN. Ive been trying to do some saves through memory streams and such but i cant seem to get it to work! Appearently i wasnt clear, what i want, is to be able to translate a Bitmap class, with an image in it.. into a system string. from there i want to be able to ...

Get empty image when transcoding SVG to PNG

Hi, I'm trying to generate an SVG image and then transcode it to PNG using Apache Batik. However, I end up with an empty image and I can't see why. I use the Document from SVGDomImplementation as the base for my transcoding (to avoid writing the SVG to disk and loading it again). Here's an example: DOMImplementation domImpl = SVGDOM...

file upload problem in opera

Hi, I am using ubuntu and opera browser.I applied ajax with php to upload image file.when i try to upload png file,file uploads with "lock" icon on it and also with permission problems.I also used chmod function but it also not working there.Please guid me to get rid from this problem. With My Best Regards.. ...

PNG encoded with multiple images + HTML usage

I got a PNG having multiple images encoded in it. How do I make use of all the images in a HTML, one for default, on mouse over use the other (I don't want to create different images and work). Are there any examples? ...

Bug DD_belatedPNG script use with jquery UI in IE6

I'm using the script DD_belatedPNG so that my transparent PNG work in IE6. It work fine until now. I insert a tab slider with jquery UI and it's seem that the script DD_belatedPNG don't apply on the images in the slider. It work everywhere else on the page but not in the slider and I don't have a clue why. Can someone help me please....

An efficient way to detect corrupted png files?

I've written a program to process a bunch of png files that are generated by a seperate process. The capture mostly works, however there are times when the process dies and is restarting which leaves a corrupted image. I have no way to detect when the process dies or which file it dies one (there are ~3000 png files). Is there a good wa...

PNG file format endianness?

Im not sure if endian is the right word but.. I have been parsing through a PNG file and I have noticed that all of the integer values are in big endian. Is this true? For example, the width and height are stored in the PNG file as 32bit unsigned integers. My image is 16x16 and in the file its stored as: 00 00 00 10 when it should b...

On the fly pdf creation with 16bit colour depth png support in php.

I'm trying to create pdf documents on the fly in an application, i.e. a user clicks a link and a pdf document is displayed to them with some text and some images. I'm currently using FPDF v1.6 (http://www.fpdf.org/) which supports 24bit (true colour) png's but the problem I have is that this is a legacy application and there's 1000's of...

How to handle PNG image loading time in html, css

When I have an <a> tag set to a specific image background like this: HTML: <a href="..." title="click here">Click Here</a> CSS: a { background: transparent url(button.png); } and I want the background to change whenever a user hovers over the spot, like this: CSS: a { background: transparent url(button_HOVER.png); } The hover...

PNG file validation

Hi all, I have a Flash web app which displays user submitted PNG files. Files are uploaded to the server via some API prior to being displayed. I'd like to make sure no "bad" files are served to Flash, where "bad" is entirely unspecific. Is there a way to validate PNG files against the PNG specs (this would catch corrupted files)? Or an...

Papervision rendering PNGs with transparency thats inside a movieclip

Hey guys. I'm an actionscript dude - I'm working on a papervision game. I have an asset of which is 127 pngs in a sequence for an animation. I can happily project this onto my papervision plane. Problem is, there is no transparency. I Can't use a BitmapFileMaterial as I have many pngs - can anyone suggest how to do this. Very very g...

C# - How to change PNG quality or color depth.

I am supposed to write a program that gets some PNG images from the user, does some simple edits like rotation and saves them inside a JAR file so that it can use the images as resources. The problem is when I open, say an 80kb image and then save it with C#, I get an image with the same quality but for 130kb space. And because it has to...

save png image with custom quality or color depth in C#

I wanted to know how could I change the quality or color depth of an image and save it in PNG. The encoder method seems to work only for jpegs. Thanks in advance. ...

Using PHP's GD functions, how can I create an ellipse that is anti-alised and has a transparent background (PNG24 with alpha)?

I'm able to draw a circle on a transparent background, but it's pixelated around the edges. I can also get an anti-aliased circle on a non-transparent background with http://mierendo.com/software/antialiased_arcs/. So, how do I get both? ...

GDI+ & Delphi, PNG resource, DrawImage, ColorConversion -> Out of Memory

I have started to toy around with GDI+ in Delphi 2009. Among the things that I wanted to do was to load a PNG resource and apply a Color Conversion to it when drawing it to the Graphics object. I am using the code provided in http://www.bilsen.com/gdiplus/. To do that I just added a new constructor to TGPBitmap that uses the same code fo...