versionvintage Posted November 25, 2009 Share Posted November 25, 2009 Hi,I have a question about pictures automatic resizing for my products.I have choosen this option in the control panel where I Upload photo filesand I see that some resized photos are on a white background (what I like)while some others are sometimes resized on a black background (what I hate !)I have not changed anything in preferences or CSS fileSo what could explain this difference ?Please seehttp://www.versionvintage.com/shop/vases/42-nimy-vase-fleurs-bleu.htmlif you click to enlarge > it's on black bghttp://www.versionvintage.com/shop/soupieres-vintage/31-legumier-bfk-gui-art-nouveau.htmlif you click to enlarge > it's on white bgThank you for your explanation about this difference.http://www.versionvintage.com/shop/soupieres-vintage/31-legumier-bfk-gui-art-nouveau.htmlVersionVintage Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted November 25, 2009 Share Posted November 25, 2009 In BO try generate thumbnails again. (Preferences - Image - Regenerate thumbnails)Maybe is some bug Link to comment Share on other sites More sharing options...
versionvintage Posted November 25, 2009 Author Share Posted November 25, 2009 I have just done that but now it's worth, it's black background everywhere and I would like white background.Have I to change some parameter or some line in CSS to get white ?Thank you for your help. Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted November 25, 2009 Share Posted November 25, 2009 Tell me, what you changed, before it started to be black? Link to comment Share on other sites More sharing options...
versionvintage Posted November 25, 2009 Author Share Posted November 25, 2009 Hi,I have change nothing.And now I have regenerate thumbnail and it's black everywhere.I have been looking now in file images.inc.phpand I see that $white seems to be properly allocated $white = imagecolorallocate($newImage, 255, 255, 255); I don't understand why I have a blackbox around ALL my pictures now after I regenerate thumbnails. Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted November 25, 2009 Share Posted November 25, 2009 PM... Link to comment Share on other sites More sharing options...
versionvintage Posted November 25, 2009 Author Share Posted November 25, 2009 I have probably found the answer in another posthttp://www.prestashop.com/forums/viewthread/13418/general_discussion/problem_with_picture_backgroundThe file images.inc.php must be replaced by the one given in this post.I will do that and after I regenerate but it takes time as I have many pictures.So I will let know if it works when this will be fully done. Link to comment Share on other sites More sharing options...
versionvintage Posted November 26, 2009 Author Share Posted November 26, 2009 Hi,I come back after having post the same question but in the french part of the forum, and somebody has just had the same problem.Pictures automatic resizing was good and suddenly, without any change from his part, background became black on new uploading but also on regenerating former ones.He suspects an update of PHP libraries on host server.I'm not good enough in this field to can say if this could products this result (white that turn black) on images.inc.php or other page's scripts.So, can somebody tell us if some change in PHP libraries on a host server can product a change of behavior in the images resizing : white that turns black.Thank you for your help.VersionVintage Link to comment Share on other sites More sharing options...
versionvintage Posted December 1, 2009 Author Share Posted December 1, 2009 Hi,I have not yet definitively solved this problem, but to avoid black around my pictures, I choose now to create each foto in a 600 X 600 size (prestashop largest registered size), so that when it's resized there is no black zone.I have seen that the same problem of black color appears on another website www.2ememain.be where there was before no problem of black.I think this could be a more general question of hosting.Best regards, 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