Jump to content

Pictures automatic resizing - Background color ?


versionvintage

Recommended Posts

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 files
and 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 file
So what could explain this difference ?

Please see
http://www.versionvintage.com/shop/vases/42-nimy-vase-fleurs-bleu.html
if you click to enlarge > it's on black bg

http://www.versionvintage.com/shop/soupieres-vintage/31-legumier-bfk-gui-art-nouveau.html
if you click to enlarge > it's on white bg

Thank 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

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.php
and 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

I have probably found the answer in another post
http://www.prestashop.com/forums/viewthread/13418/general_discussion/problem_with_picture_background

The 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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...