Jeffrey S 0 Posted November 16, 2008 Posted November 16, 2008 Not sure why, but all my currently added picture, has become black background color! If there is anyway to set it back to WHITE ?Regards,Jeffrey Share this post Link to post Share on other sites
spott 7 Posted November 17, 2008 Posted November 17, 2008 Are these pictures transparent PNG pictures? Share this post Link to post Share on other sites
Jeffrey S 0 Posted November 19, 2008 Posted November 19, 2008 Dear Spott,The image is just JPEG, with White background color! It happen, only after Regenerate thumbnails! Was it because the figure setting on there is different Size than default ? Share this post Link to post Share on other sites
Jeffrey S 0 Posted November 19, 2008 Posted November 19, 2008 This is what happen, after since Regenerate Thums! Share this post Link to post Share on other sites
Jeffrey S 0 Posted November 21, 2008 Posted November 21, 2008 I have try to reinstall the shop! Everything is new, but the database is imported ! Result is the Same! so I would guess the setting is on the database! Share this post Link to post Share on other sites
Jeffrey S 0 Posted December 1, 2008 Posted December 1, 2008 Does anyone know, by setting on CSS can fix the problems ? Share this post Link to post Share on other sites
Jeffrey S 0 Posted December 16, 2008 Posted December 16, 2008 Still, I can't fix the issue! would anyone like to help, or able to help at all ? Share this post Link to post Share on other sites
langbianiam 0 Posted December 18, 2008 Posted December 18, 2008 This is what happen, after since Regenerate Thums! what is the pic of ?- small - medium - large - thickbox ????????- category - home - large_scene - thumb_scene if the pic of thickbox, you can adjust file thickbox.css in www.yourdomain.xxx/css/thickbox.csslook at line 40-50.TB_overlayMacFFBGHack {background: url(macFFBgHack.png) repeat;}.TB_overlayBG { background-color:#000; filter:alpha(opacity=75); -moz-opacity: 0.75; opacity: 0.75;}maybe opacity=100,good luck Share this post Link to post Share on other sites
Jeffrey S 0 Posted January 8, 2009 Posted January 8, 2009 Much appreciated for your reply! This is really helpful in keep moving forward without, stuck on the same place! As it is the New Year already 2009, Yeah ! Happy New Year!So if it is the thinkbox I will just do that! If it is medium picture, I will just do the similar things right!Man, I will always remember your kindness help! Hope, I can also help u back some other way!Best Regards,Jeffrey Szetohongkongapple.com ( My badly skill builded ) Share this post Link to post Share on other sites
Jeffrey S 0 Posted January 12, 2009 Posted January 12, 2009 I have already tried any different Menthods! Still not sure how it background color of a Picture would be change to White! Currently it is as picture shown, happen only after upgrade / watermark! Share this post Link to post Share on other sites
langbianiam 0 Posted January 12, 2009 Posted January 12, 2009 I have already tried any different Menthods! Still not sure how it background color of a Picture would be change to White! Currently it is as picture shown, happen only after upgrade / watermark! @Jeffrey,You try to adjust file (images.inc.php) in root, maybe your problem from here. I am not sure, because I'm not tested yet.code #line 30-34/* We need to resize */ else { $ratioX = $x / ($y / $size); $newImage = ($imageType == 'gif' ? imagecreatetruecolor($ratioX, $size) : imagecreatetruecolor($ratioX, $size)); /* Allow to keep nice look even if resized */ $white = imagecolorallocate($newImage, 255, 255, 255); imagefill($newImage, 0, 0, $white); imagecopyresampled($newImage, $imageGd, 0, 0, 0, 0, $ratioX, $size, $x, $y); imagecolortransparent($newImage, $white); /* Quality alteration and image creation */ if ($imageType == 'gif') imagegif($newImage, _PS_TMP_IMG_DIR_.$cacheImage); else imagejpeg($newImage, _PS_TMP_IMG_DIR_.$cacheImage, 86); } } return ''; } return ''; Brgds Share this post Link to post Share on other sites
JakobFriis 0 Posted January 28, 2009 Posted January 28, 2009 I have the same problem. When i upload a regular gif image, the entire image gets a black background. If i convert the image to a jpg file before upload i get a white background, but with a black fra in the product view.My shop installation used to work, but has falied since the move to a new host. A clean install on the new host has the same problem. The old host was PHP 5.2.43 and the new host is 5.2.8Any suggestions ? Share this post Link to post Share on other sites
Jeffrey S 0 Posted January 29, 2009 Posted January 29, 2009 Dear JakobFriis,As you move to the new Host, have you also installed the New Version 1.1 Prestashop?As for me, Problem arise since I have updated to the latest version!Here is the problem show : http://www.hongkongapple.com Share this post Link to post Share on other sites
Jeffrey S 0 Posted January 29, 2009 Posted January 29, 2009 Looking from the line 30s of images.inc.phpThe Filling of the blank space should be White color !! But its weir that, its turn out to be black!!/* Allow to keep nice look even if resized */$white = imagecolorallocate($newImage, 255, 255, 255);imagefill($newImage, 0, 0, $white);imagecopyresampled($newImage, $imageGd, 0, 0, 0, 0, $ratioX, $size, $x, $y);imagecolortransparent($newImage, $white);May the dear team members would know the answer to this! pls give a hints!Cheers Share this post Link to post Share on other sites
mardon 0 Posted February 8, 2009 Posted February 8, 2009 Dear JakobFriis,As you move to the new Host, have you also installed the New Version 1.1 Prestashop?As for me, Problem arise since I have updated to the latest version!Here is the problem show : http://www.hongkongapple.com I have the same problem after upgrade to the last versionany Ideas? Share this post Link to post Share on other sites
Jeffrey S 0 Posted February 9, 2009 Posted February 9, 2009 No, so far I still unable to fix the problem! After continuously attempts!! As well as a little guidance from fellow team member would be grateful & much appreciated from all of us here Share this post Link to post Share on other sites
Cronos 1 Posted February 9, 2009 Posted February 9, 2009 Hi,Please replace the file contained in the zip file attached, with the file in your root folder named images.inc.phpI guess everything should be alright.Regards,Cronos.. images.inc.zip Share this post Link to post Share on other sites
mardon 0 Posted February 9, 2009 Posted February 9, 2009 Hi,Please replace the file contained in the zip file attached, with the file in your root folder named images.inc.phpI guess everything should be alright.Regards,Cronos.. In my shop http://djshop-hk.cz/presta/ after applying this script is still black background in some images Share this post Link to post Share on other sites
Cronos 1 Posted February 9, 2009 Posted February 9, 2009 In my shop http://djshop-hk.cz/presta/ after applying this script is still black background in some images Hi Mardon,Try uploading a new picture.The old ones which you have uploaded earlier will remain black, unless you edit them.I guess it should work.Try creating a new category and upload a PNG image with just blue text and no background.If the blue text appears on white background, everything worked fine.Let me know what happens.Cheers.. Cronos Share this post Link to post Share on other sites
mardon 0 Posted February 9, 2009 Posted February 9, 2009 I create new category and uplod *.jpg image and the result is still black background http://djshop-hk.cz/presta/category.php?id_category=278 a original image i attach i havent png images all images which i upload is *.jpg Share this post Link to post Share on other sites
Cronos 1 Posted February 9, 2009 Posted February 9, 2009 Please upload the PNG image attached to this reply.Check again.CheersCronos Share this post Link to post Share on other sites
Jeffrey S 0 Posted February 9, 2009 Posted February 9, 2009 I have try your supplied file! It is the same result!Result : -- > http://www.hongkongapple.com/product.php?id_product=132 Share this post Link to post Share on other sites
mardon 0 Posted February 17, 2009 Posted February 17, 2009 In my hosting I use imagefilledrectangle ($destImage, 0, 0, $destWidth, $destHeight, $white); without imagefill($destImage, 0, 0, $white); in images.inc.php in function imageResizeand images are OK, try it Share this post Link to post Share on other sites
Florin 0 Posted February 26, 2009 Posted February 26, 2009 In my hosting I use imagefilledrectangle ($destImage, 0, 0, $destWidth, $destHeight, $white); without imagefill($destImage, 0, 0, $white); in images.inc.php in function imageResizeand images are OK, try it Can you upload your working images.inc.php file? can't get any of this "solutions" to work. Share this post Link to post Share on other sites
karoko 0 Posted March 31, 2009 Posted March 31, 2009 Here is the solution to the black background.http://www.prestashop.com/forums/viewthread/15988/#71989 Share this post Link to post Share on other sites
Bleep 0 Posted April 23, 2009 Posted April 23, 2009 My problem is a bit different. I'm trying to make the background area black, since I have a black themed website! I try changing the RGB colors to 0,0,0, but they remain white even after regeneration! LOL!!! Share this post Link to post Share on other sites
Indra Hermawan 0 Posted November 6, 2009 Posted November 6, 2009 prestashop is complete, look at backoffice-->preference-->images see on thickbox is 600px*600px, then set up your product image (with image editor Photoshop or other) with that size, than you uploaded your image, and look the result!!! (my english is bad, sorry) Share this post Link to post Share on other sites
kalvinb 0 Posted November 27, 2009 Posted November 27, 2009 Thanks for the link Koroko. I've been looking for that thread since a few hours ago. Share this post Link to post Share on other sites
flysurfing 2 Posted December 3, 2010 Posted December 3, 2010 Dear All,I have the same problem. I tried the solution above but cannot solve it.Could you please help ?Thanks Share this post Link to post Share on other sites
markstone 1 Posted December 13, 2010 Posted December 13, 2010 i also have the black frame around the resized images...none of the posted solutions here or in all the other threads on this forum help lol Share this post Link to post Share on other sites
flysurfing 2 Posted December 13, 2010 Posted December 13, 2010 Hi thx for sharing ..I wish to find a solution as well !Cheers Share this post Link to post Share on other sites
flysurfing 2 Posted December 15, 2010 Posted December 15, 2010 Hello,here is an up ! Share this post Link to post Share on other sites
flysurfing 2 Posted December 16, 2010 Posted December 16, 2010 Hi, here is an up !Cheers Share this post Link to post Share on other sites
flysurfing 2 Posted December 20, 2010 Posted December 20, 2010 Hi all,I am having this with the latest version of Prestashop.Is there any knows fix ?Thanks to you Share this post Link to post Share on other sites
J. R. Leon Somovilla 1 Posted April 18, 2011 Posted April 18, 2011 Great solution! ;-).Thanks!.J. Ramon Leon SomovillaP.D.: flysurfing, at the last version only try, to forced compilation from Preferences, and regenerate images from Preferences->Images, and voila! ;-) Share this post Link to post Share on other sites
Alexander Firsov 3 Posted January 9 Posted January 9 (edited) The black background on the images appears only on those images that originally had a transparent background (in PNG and GIF formats), and after you have activated the Watermark module and rebuilt the thumnails. If you want to use the Watermark module for your product pictures you must convert transparent color into white color. This can be achieved easily by saving the PNG or GIF picture in another format, for example JPG format. This will automatically convert all areas with transparent color into white color. IrfanView by default is replacing transparent color with black color but this behaviour can be changed in the program settings. I believe that the Watermark module should be upgraded to allow the Back Office administrator to select the color (black or white) to replace the transparent color in the PNG and GIF images while processing the images to superimpose the watermark. Edited January 9 by Alexander Firsov (see edit history) Share this post Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now