Vivvo CMS Support Forum Home | Free Trial | Online Demo | Docs and Manuals | Order Now   

Go Back   Vivvo CMS Support Forums > Vivvo 4 > Troubleshooting

Troubleshooting Problems, need help? Have a tip or advice? Post it here.

Reply
Thread Tools Display Modes
Unread 05-03-2012, 03:28 AM   #1
huihuang yu
Vivvo User
 
Join Date: Oct 2011
Posts: 35
Rep Power: 0
huihuang yu is on a distinguished road
Angry transparent png file have a black background after resize, how to fix it??? please.

Hi all,

Thanks for coming and see my question, i think there must be other people also have seen this issue. when there is a transparent png file, after resize by "thumbnail.php", the background became black!!!!!which looks very bad...

can anyone tell me how to fix this problem?
i have did some research online, most people all recommend use the following code:
+++++++++++++++++++++++++++++++++++
imagealphablending($thumb_img, false);
imagesavealpha($thumb_img,true);
$transparent = imagecolorallocatealpha($thumb_img, 255, 255, 255, 127);
imagefilledrectangle($thumb_img, 0, 0, $thumb_width, $thumb_height, $transparent);
++++++++++++++++++++++++++++++++++++++

but even after i put these lines after line 185 in thumbnail.php, and did clean the cache, still have that issue.

please give some help
huihuang yu is offline   Reply With Quote
Unread 05-03-2012, 03:39 AM   #2
huihuang yu
Vivvo User
 
Join Date: Oct 2011
Posts: 35
Rep Power: 0
huihuang yu is on a distinguished road
Default

Ok, a bit update about my problem,

i check the cache folder, then i found the resized image actually still have the transparent backgound, but the problem is when we display it on the website by "mydomain.com/thumbnail.php?file=file_name.png&size=summary_medi um", it has a black background. Can anyone tell me what is the reason and how to fix it?

much appreciated.
huihuang yu is offline   Reply With Quote
Unread 05-03-2012, 04:26 AM   #3
huihuang yu
Vivvo User
 
Join Date: Oct 2011
Posts: 35
Rep Power: 0
huihuang yu is on a distinguished road
Default

thank god.

it is actually working after i add those lines. i forgot to clean the cache of my browser.
huihuang yu is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Order now:

Order your copy of Vivvo now and get:
bullet Six months free upgrades
bullet Free support
bullet Full source code
bullet Immediate download
bullet Starting at only $295.00
Order now

Support HelpDesk:

You can submit a trouble ticket in the support area at any time, using your client area email and password.

Vivvo CMS Resource Center:

The Vivvo CMS Resource Center is your window to a variety of resources that showcase Vivvo's features and technologies. So whether you're brand new to Vivvo or a seasoned user, you can find the information you need right here!

Latest Additions:

Contact us:

Email inquiries
sales@vivvo.net
(Sales inquiries)
support@vivvo.net
(Support inquiries)

All times are GMT +1. The time now is 12:38 AM.
Contact Us - Vivvo Home - Archive - Privacy Statement - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.