Jeffrey S Posted November 16, 2008 Share 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 Link to comment Share on other sites More sharing options...
spott Posted November 17, 2008 Share Posted November 17, 2008 Are these pictures transparent PNG pictures? Link to comment Share on other sites More sharing options...
Jeffrey S Posted November 19, 2008 Author Share 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 ? Link to comment Share on other sites More sharing options...
Jeffrey S Posted November 19, 2008 Author Share Posted November 19, 2008 This is what happen, after since Regenerate Thums! Link to comment Share on other sites More sharing options...
Jeffrey S Posted November 21, 2008 Author Share 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! Link to comment Share on other sites More sharing options...
Jeffrey S Posted December 1, 2008 Author Share Posted December 1, 2008 Does anyone know, by setting on CSS can fix the problems ? Link to comment Share on other sites More sharing options...
Jeffrey S Posted December 16, 2008 Author Share Posted December 16, 2008 Still, I can't fix the issue! would anyone like to help, or able to help at all ? Link to comment Share on other sites More sharing options...
langbianiam Posted December 18, 2008 Share 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 Link to comment Share on other sites More sharing options...
Jeffrey S Posted January 8, 2009 Author Share 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 ) Link to comment Share on other sites More sharing options...
Jeffrey S Posted January 12, 2009 Author Share 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! Link to comment Share on other sites More sharing options...
langbianiam Posted January 12, 2009 Share 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 Link to comment Share on other sites More sharing options...
JakobFriis Posted January 28, 2009 Share 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 ? Link to comment Share on other sites More sharing options...
Jeffrey S Posted January 29, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
Jeffrey S Posted January 29, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
mardon Posted February 8, 2009 Share 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? Link to comment Share on other sites More sharing options...
Jeffrey S Posted February 9, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
Cronos Posted February 9, 2009 Share 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 Link to comment Share on other sites More sharing options...
mardon Posted February 9, 2009 Share 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 Link to comment Share on other sites More sharing options...
Cronos Posted February 9, 2009 Share 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 Link to comment Share on other sites More sharing options...
mardon Posted February 9, 2009 Share 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 Link to comment Share on other sites More sharing options...
Cronos Posted February 9, 2009 Share Posted February 9, 2009 Please upload the PNG image attached to this reply.Check again.CheersCronos Link to comment Share on other sites More sharing options...
Jeffrey S Posted February 9, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
mardon Posted February 17, 2009 Share 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 Link to comment Share on other sites More sharing options...
Florin Posted February 26, 2009 Share 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. Link to comment Share on other sites More sharing options...
karoko Posted March 31, 2009 Share Posted March 31, 2009 Here is the solution to the black background.http://www.prestashop.com/forums/viewthread/15988/#71989 Link to comment Share on other sites More sharing options...
Bleep Posted April 23, 2009 Share 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!!! Link to comment Share on other sites More sharing options...
Indra Hermawan Posted November 6, 2009 Share 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) Link to comment Share on other sites More sharing options...
kalvinb Posted November 27, 2009 Share Posted November 27, 2009 Thanks for the link Koroko. I've been looking for that thread since a few hours ago. Link to comment Share on other sites More sharing options...
flysurfing Posted December 3, 2010 Share 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 Link to comment Share on other sites More sharing options...
markstone Posted December 13, 2010 Share 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 Link to comment Share on other sites More sharing options...
flysurfing Posted December 13, 2010 Share Posted December 13, 2010 Hi thx for sharing ..I wish to find a solution as well !Cheers Link to comment Share on other sites More sharing options...
flysurfing Posted December 15, 2010 Share Posted December 15, 2010 Hello,here is an up ! Link to comment Share on other sites More sharing options...
flysurfing Posted December 16, 2010 Share Posted December 16, 2010 Hi, here is an up !Cheers Link to comment Share on other sites More sharing options...
flysurfing Posted December 20, 2010 Share Posted December 20, 2010 Hi all,I am having this with the latest version of Prestashop.Is there any knows fix ?Thanks to you Link to comment Share on other sites More sharing options...
J. R. Leon Somovilla Posted April 18, 2011 Share 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! ;-) Link to comment Share on other sites More sharing options...
Alexander Firsov Posted January 9, 2021 Share Posted January 9, 2021 (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, 2021 by Alexander Firsov (see edit history) Link to comment Share on other sites More sharing options...
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