png

Combine 2-3 transparent PNG images on top of each other with PHP

I am working on a custom avatar system for a project, but I have never really done much with the image side of PHP. I assume I need to use GD in some way, but I have no idea where to even start. Basically, there are a bunch of pre-made transparent PNG images. Users can select 2-3 of them to customize their avatar, and I want to be abl...

BlackBerry - draw image on the screen

How to draw png images with specific size and position on the screen? ...

Saving a PNG (or good quality JPG) image to the Photos Library.

Scenario Saving a 320x480 view as an image in the user's saved photos album. Problem Always saves a 800x?, low quality JPG. Using the normal renderInContext/UIImageWriteToSavedPhotosAlbum method to save a view to the library. I've tried converting the UIImage to a PNGRepresentation then using that data to make a new UIImage - it still ...

loading a simple semi transparent PNG in Windows Mobile using C#.

Hi, I am new to Windows Mobile programming. I want to load a PNG file which has an Alpha Channel. After 2 days of searching in Internet, I am still at square 1. Can someone help me? I got an example which uses uses a wrapper to access the AlphaBlend API. But when I set the AC_SRC_ALPHA flag in BlendingFunction, it does not draw anything...

Why can't I round-trip from .png image to base64-encoded, back to .png image w/ PHP?

First quesiton on Stack Overflow, so please be gentle. What I'm trying to do is simple and should be very straightforward in my mind. The results have been less than encouraging. What I'm trying to do: I have a web page that receives base64-encoded PNG image data. I can and have successfully taken that data through the proper steps t...

Can you force ImageMagick to use PNG-8 alpha transparency?

When I try to run a bunch of PNG-8 images with alpha transparency through Imagemagick, it converts them to PNG-32, increasing the file size a lot. Is it possible to force Imagemagick to keep my image type as 8-bit PNG? ...

How to add a 'frame' image (png) without losing interactivity.

Hi there, I'd like to add a png frame over a kwicks image slider, but when I do, I lose the interactivity. How can I add a png frame over an element without losing the interactivity of the element below? You can see the example here: www.jujumamablog.com/jujumama/dev.html Below is the code for the dev page: <!DOCTYPE html PUBLIC "-...

Security issues in accepting image uploads

What are the major security issues to consider when accepting image uploads, beyond the normal stuff for all HTTP uploads? I'm accepting image uploads, and then showing those images to other users. How should I verify, for example, that the uploaded image is actually a valid image file? Are there any known vulnerabilities in viewers th...

ie7 Png transparency image

PNG image transparency does not work on IE7. It look like this on IE7: http://websitehelp.techgrowthglobal.com/bc%5Fdevelopers/index.html In the column right portion of the body there is a curved image on top-a1 In the center it was the repeat png background and at the bottom was a curve also a3 It doesn't work on IE7. ...

ImageMagick PNG Resize Increases File Size

I am resizing images using ImageMagick. If I pass a -resize WxH option it behaves as expected. But if I pass -resize WxH! (to ignore aspect ratio during resize), some images, especially PNGs, are actually increasing in size. A 200k image becomes 450k, a 170k image becomes 360k and so on. Any ideas why this is hapenning and how to fix it...

How to load PNGs and export to TGA keeping alpha in C#?

I'm writing a tool to automate some of our asset making for a game. What I want to do is take a folder of PNG files, combine them into a texture atlas and then export the atlas as a TGA and the UV coords to XML. I'm not sure which method I should use to load the PNG files in C# as there seem to be several. What is the recommended method...

Converting from HBITMAP to Jpeg or Png in C++

Does anyone know how I can use an HBITMAP variable to write a png or jpeg file? I first looked into doing this with GDI+ but it gives me errors telling me min/max haven't been defined (defining them just brings more problems), I then looked into libpng's C++ bindings (png++) and couldn't get the examples to compile. thanks, Mikey ...

iPhone SDK: Hit-testing with PNG Alpha channels

I have a simple app which has a bunch of icons which should be dragged into a circle. Both the icons and circle will be PNGs with alpha channels. Could someone please help me with basic code to set the bounds of these objects to the non-alpha channel data? ...

I have a base64 encoded png, how do I write the image to a file in PHP?

What's the proper way in PHP to create an image file (PNG), when I have the base64 encoding? I've been playing around with: file_put_contents('/tmp/'. $_REQUEST['id'].'.png', $_REQUEST['data']); do I need to decode? should I be using the gd library? ...

Setting DPI for PNG files

I have a bunch of diagrams created using a Java diagramming tool that I wrote - they are mostly black and white diagrams, with the blocks in aqua, and occasional other colours. They are currently being saved as JPG files, and I want to insert them into a book that I am preparing for Print On Demand. The book is an OpenOffice ODT file,...

How can I make a form transparent according to a PNG image?

So, I have a png file that uses transparency(is actually a circle with gradient effect from black, in the middle, to transparent on the margins). I am putting this on a form using TImage. I am setting TForm1.Color and the TForm1.TransparentColorValue to the same value and TForm1.TransparentColor:=true. Now, when I run the program the gr...

Jquery animation: Making PNG Transparency fixed DIV animate opacity?

Page in question: http://www.chrishanel.com/CMS The following works in IE7, but doesn't in IE8: HTML: <div id="shell"> <div id="quote"> <!--[if IE]> <div id="quoteie8" style="align:center;position:relative;opacity:1.00;text-align:center;height:144px;width:337px;margin:auto;filter:progid:DXImageTransform.Microsof...

Converting TIFF files to PNG in .Net

I have to build an application in .Net (3.5) to pick up a TIFF file saved from another piece of software and convert it into a PNG so that it can be rendered easily in Internet Explorer. Does anyone know of any libraries (preferably freeware/open source) that will do this conversion for me? If there aren't any simple ways of getting it ...

PNG8 Black Border in IE

Hi Guys, I have a problem in IE with PNG8 images in that it appears with a big dirty black border in the shadowing of my *.png. (Ie7, Ie8) I am using alphatransparency and basically have shading under my small image. All browsers render this fine - except IE which renders the shading as a black circle ? I need the image "transparent" ...

Convert TrueType Font (or JPG image) to PNG image with Alpha Transparency in .NET?

Anyone know how to convert either a TrueType Font or JPG image into a PNG image with Alpha Transparency in .NET? I basically want to create a script-looking signature image that has a transparent background so that I can programmatically add that png signature into PDF documents after they've been created. I can do this with a normal J...