White area at side of image thumbnails
#1
Posted 24 January 2012 - 08:20 AM
When I add a thumbnail to product when viewing this in the category it seems to add white space down the sides if the images proportions don't fill the space, how can i specify what colour this is? Its currently white but the sites background is black so it sticks out a mile on every product because they are all portrait and not square.
Many thanks in advance,
Martin
#3
Posted 26 January 2012 - 02:24 AM
Ill give it a whirl and report back, just for reference it cant be done without Imagemagick.
Cheers
Martin
#4
Posted 31 January 2012 - 03:29 AM
$CONFIG['IMAGEMAGICK_ENABLED'] = true;
$CONFIG['IMAGEMAGICK_PATH'] = '/usr/bin/convert';
$CONFIG['IMAGE_JPEG_QUALITY'] = 85;
I'm always getting the error creating thumbnail every time i upload, any ideas why this is? Ive tried it with the Imagemagick module installed and disabled but I'm still getting this.
Imagemagick is installed and showing in my phpinfo so Im a bit lost as to why this wont work.
#5
Posted 31 January 2012 - 11:26 AM
fullphat, on 31 January 2012 - 03:29 AM, said:
$CONFIG['IMAGEMAGICK_ENABLED'] = true;
$CONFIG['IMAGEMAGICK_PATH'] = '/usr/bin/convert';
$CONFIG['IMAGE_JPEG_QUALITY'] = 85;
I'm always getting the error creating thumbnail every time i upload, any ideas why this is? Ive tried it with the Imagemagick module installed and disabled but I'm still getting this.
Imagemagick is installed and showing in my phpinfo so Im a bit lost as to why this wont work.
IMAGEMAGICK_PATH should not include the ending /convert part. It should be where convert is located. Thus: /usr/bin
#6
Posted 01 February 2012 - 03:49 PM
Its either enable or don't us Lemonstand at this stage from the feedback we've had
#7
Posted 02 February 2012 - 02:32 AM
2: Go to line 116
3: Find this : imagecolorallocate($image_p, 255, 255, 255);
4: The RGB here controls the background colour, our site had a very dark background so the default white stuck out a mile, simply change this to what you want and all images from this point will have the coloured background selected.
Saves having to make your client save everything as png's if they dont have the time / knowledge to do this
Cheers
Martin + Andrew
Full Phat Design
#8
Posted 08 March 2012 - 07:49 PM
fullphat, on 02 February 2012 - 02:32 AM, said:
2: Go to line 116
3: Find this : imagecolorallocate($image_p, 255, 255, 255);
4: The RGB here controls the background colour, our site had a very dark background so the default white stuck out a mile, simply change this to what you want and all images from this point will have the coloured background selected.
Saves having to make your client save everything as png's if they dont have the time / knowledge to do this
Cheers
Martin + Andrew
Full Phat Design
Is there a way to regen the thumbnails? - I made the change, but existing images are all still white bordered.
#10
Posted 20 May 2012 - 06:37 PM
Then you can easily crop images, sharpen, set JPG quality and so on. I like SLIR because it's simple and the URLs are nicer, but if you want coloured backgrounds and other fancyness then phpThumb is the more powerful option.

Help















