png

Incorrect PNG Colouring (Swapped channels?)

Please can someone take a look at the following image: http://img109.imageshack.us/img109/6885/colouring.png I need to make the bottom image the same as the first. It appears the colour channels are wrong, but I'm not sure and can't correct it. Please can someone tell me how to go from the bottom image to the top image? Thanks. EDIT:...

PNG to JPG Java ImageIO problem

I have tried both lines of code below to no avail. The code works fine with jpg, or gif but turns the image pink if a png. ImageIO.write(input, "jpg", profileFile); RenderedOp op = JAI.create("filestore", input, pFileName, "jpeg"); Anyone else run into this problem? I haven't been able to find a solution. ...

PNG image with transparency on SWT

I've got a Composite and would like to use a png file as background image. I can do that, the problem is when the image uses transparency it doesn't work and shows a white colour instead. Any thoughts on how to get this to work? Thanks! ...

Is there an easy way to reduce the number of colors in an IndexedColorModel?

I have a large 8-bit PNG image. I am using Java to slice the image into smaller 32x32 images. I use Java's ImageIO to load the PNG into a BufferedImage and then call it's getSubimage(x, y, 32, 32). I then use ImageIO to write each tile out as a PNG. The problem is that the resulting image has the same IndexColorModel as the original ...

Brighten a section of a webpage background

Is there any way to have a semi-transparent overlay in a webpage and will brighten the underlying content? I'm wanting to have a dynamic content in the background of a transparent overlay with one section highlighted in a brighter than the rest of the background. For example, in the mock-up below there is a graph in the background, over...

How to implement a glass effect created on PS-CS4 around the template using PNG?

Hi as I said some times before I'm new to CSS coding, I want to know if it is possible to create a glass sheet (vista/seven like but without the buttons) around the template using only CSS, I know how to make rounded corners: <style type="text/css"> #box { position: relative; width: 100px; } .corner { ...

Convert PNG to SVG

How could I convert a PNG image to a SVG? ...

.png images display in IE8 alone but not inside a page

Hi It's been a while since I did serious web development. Now I meet a host of brand new problems I'm no longer familiar with.. I have some .png images for various icons in my web page. What I find is that whenever I edit these images, they stop working inside a page in IE8. That is, they (usually) display OK when I first open the page...

libzip corrupting PNG files when compressed on iPhone device, but not in Simulator

Hi, I've inherited a project that at some point creates a zip file, adds an XML file to the zip and then adds a number of PNG files to the same archive. All works fine on the simulator, but whenever I run the same code on the device itself the resulting png files are altered and unopenable when opened on my Mac. They still appear to b...

Looking for JS project that make IE6 compatible with IE7/IE8 tech

Browsing here I've found a JS that if using IE6 can make it suport PNG transparence and also make things appear in the right place on the screen! It's almost like turning IE6 into older version of FF, the thing is I've lost the link, it is on "google code" but I can't seem to find it again if someone could kindly can post it again, I'll ...

Is there any downsides to using GIF as format of all images and pictures on website ?

I noticed when I saved my menu background image from jpg to gif that gif takes almost one fourth of the size that jpg does. jpg = 25kb gif = 7kb Is there any downsides to using gif? Its GIF 256 colors BTW. NOT interlaced. Not transparent. Just want to be sure! Thanks ...

jquery png fix on hidden div and jquerybrowser question

Hello, I have some code that if Javascript is available, it will remove a GIF image and replace it with a PNG image. The PNG is display:none and the GIF is visible. Since IE6- browsers can't load PNG, I have loaded the jquery PNG fix. But it only seems to work if the image is already visible. The other issue is I am trying to get th...

what is the best way to fix IE6 png trancparency with javascript and Jquery

is there any simple way to fix IE6 PNG transparency with javascript and jquery with out using any plug-in or something too complicated ? ...

Why php imagefill always black?

Hello guys This is driving me mad. I would really appreciate if you told me any idea about why I see this square in red color just in my local xampp installation. If I run the code in the remote server (http://www.arreglaordenador.com/numberimage2.php) I see the square in black color instead of red. Do you have any ideas? <?php $im = i...

Crop a PNG image to its minimum size

How to cut off the blank border area of a PNG image and shrink it to its minimum size using Python? ...

Is there any way to draw a PNG image on window without using MFC?

I am developing a Windows API application without using MFC. I am using standard Windows libraries. How do I draw a PNG image in a window? Help me with some sample code. I have tried some codes which are available on the Internet, but all are using MFC. ...

Is it possible to make a pattern for a CGContext Path using a png

I want to make a path that has a png as it's pattern, or if you could or think it would be easier to make my own pattern, then tell me that also. I will be greatful to anyone who can put up some code. Thanks in advance ...

How to get bytes out of a PNG file using C#

How do I get bytes out of a PNG file using C#, (Reason for this:I need to pass the PNG as a string in an XML file.) ...

Making PNG|jpeg from LaTeX in C or C++

I'm looking for a library (or a cleverer solution) in C or C++ that would make an image file (PNG|jpeg) from LaTeX code. The use of packages is a prerequisite. For now I'm thinking of compiling a .tex file into a .dvi and using dvipng to get a .PNG. There's also the possibility of compiling a .tex file into a .ps file and then convert...

What is the benefit of using the "transparent" value in the CSS background property before a url of a png?

I have often seen stylesheets written where you have something like this: #anyelement { background:transparent url(../img/filename.png) no-repeat left top; } The value in question is the "transparent" value - what is the benefit of using this value? I have never really used it with my own css files and my PNG images still seem to wo...