09-06-2012, 04:00 AM | #1 |
Registered User
Join Date: Jul 2012
Posts: 111
|
PNG transparency issue
Every designer would have faced this issue, obviously! Though there are a number of javascript based solutions, I couldn’t find anything that supports background position. As far as I know all JS based solutions end up with the same result. This is something that worked flawlessly for me. All other solutions are based on this filter.
.class_name { background:none; filter: progidXImageTransform.Microsoft.AlphaImageLoader (src='image_name.png', sizingMethod='scale'); }
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
12-05-2012, 05:31 AM | #2 |
Registered User
Join Date: Nov 2012
Location: India
Posts: 103
|
PNG transparency issue
<?php $Image = ImageCreateTrueColor(80, 40); $back = ImageColorAllocate($Image, 255, 255, 0); $red = ImageColorAllocate($Image, 255, 0, 0); $green = ImageColorAllocate($Image, 0, 255, 0); $black = ImageColorAllocate($Image, 0, 0, 0); ImageColorTransparent($Image, $back); ImageFilledRectangle($Image, 0, 0, 80, 40, $back); ImageArc($Image, 20, 20, 32, 32, 120, 0, $red); ImageString($Image, 5, 20, 20, "hello", $black); ImagePNG($Image, "c:/bad.png"); ?>
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - Shopping Cart - PrestaShop, Zencart; CMS - WordPress, Joomla; Custom Development To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - SEO, Pay Per Click (PPC), SEM, Link Popularity Building, SEO Copywriting, SMO, SMM |
04-26-2013, 10:26 PM | #3 |
Registered User
Join Date: Apr 2013
Posts: 2
|
Its good way, but can't we make the images with transparent images?
Or these codes' result will appear more attractive, please clear.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
meta tag issue | paldo | Search Engine Optimization | 0 | 08-15-2012 08:51 AM |
Explain About Canonical Issue | bobo.cx | Search Engine Optimization | 1 | 04-12-2012 11:34 PM |
Help with duplicate issue | ArtphotoasiA | 2 | 04-11-2012 10:23 AM | |
Extend the power of +1 issue | ncjbhd | 0 | 11-17-2011 02:05 AM |