Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
VBAssassin
Scott Thompson
Send A Message
Rating
8.00
out of 10
( 1 Ratings )
Please login to rate source codes.

Click here to register a free account with us.
General Details
PHP (Hypertext Preprocess...
Posted 87 Days Ago
640 Views
Received 1 Rating
More Codes By This Author
Make maxlength='' work on...
Dynamic Transparent GIF P...
To Do List (With Effects)
Breadcrumb Function
Remove Transparency
Articles By This Author
Speed Up Delivery of your...
AJAX - When to use it?
Null Byte Poison - How it...
Versioning Your Applicati...
When to use OOP in PHP

Remove Transparency


Description
Converts a transparent png image to a jpeg.

Not brilliant... but better than having a completely black background.
Technical
Any pixel in the image that is 100% transparent is converted to a white pixel, else it is converted to black (with except to 0% transparent pixels).
Source Code
Download Download Source Code
source.zip ( 0.24Mb )
NEVER open a .exe, .bat, .cmd, or other executable file since that is where viruses are likely to live. Please virus scan all files you download.
Comments
Please login to post comments.
 
VBAssassin     Posted 69 Days Ago
 
 
But the problem is, parts of the image that are semi transparent (partly transparent)
turn black! If someone could fix that, it would be perfect.
 
Craige     Posted 69 Days Ago
 
 
I like this. Could prove to be very useful if you don't want to allow
transparent images to be uploaded.
Page 1 of 1
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
 
 
Part of the MyPingle Network
Development Blog :: Make A Donation :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents
Version 1.44.00
Copyright © 2007 - 2008, Scott Thompson, All Rights Reserved