xtremetawsan Posted May 9, 2008 Share Posted May 9, 2008 Can anyone tell me how can i remove white space around product image? Link to comment Share on other sites More sharing options...
Rain3r Posted May 9, 2008 Share Posted May 9, 2008 Good idea, i was thinking about it too. Is it possible to leave the space arround the image transparent instead of white? Link to comment Share on other sites More sharing options...
lordanthony Posted May 9, 2008 Share Posted May 9, 2008 You should either be able to save it as a transparent gif or png or there may be something in the stylesheet which you can change such as removing "background-color:#fff". Can you post a link? Link to comment Share on other sites More sharing options...
xtremetawsan Posted May 9, 2008 Author Share Posted May 9, 2008 Now i'm digging the AdminImages, AdminImageResize classes i see an image crop script inside but it dont work, will this feature work on RC3? Link to comment Share on other sites More sharing options...
xtremetawsan Posted May 9, 2008 Author Share Posted May 9, 2008 Ok i will make crop script work then Link to comment Share on other sites More sharing options...
xtremetawsan Posted May 13, 2008 Author Share Posted May 13, 2008 I solved, remove white space with force script to resize images by image's original ratio, at admin/function.php this remove white space around image. admin/functions.php around line 203 if (intval(Configuration::get('PS_IMAGE_GENERATION_METHOD')) == 2 OR (intval(Configuration::get('PS_IMAGE_GENERATION_METHOD')) == 0 AND $widthDiff > $heightDiff)) { $nextHeight = $destHeight; $nextWidth = intval(($sourceWidth * $nextHeight) / $sourceHeight); $destWidth = intval(($sourceWidth * $nextHeight) / $sourceHeight); //force the destination width to original ratio //$destWidth = (intval(Configuration::get('PS_IMAGE_GENERATION_METHOD')) == 0 ? $destWidth : $nextWidth); } else { $nextWidth = $destWidth; //$nextHeight = intval($sourceHeight * $destWidth / $sourceWidth); $nextHeight = $sourceHeight * ($destWidth / $sourceWidth); $destHeight = $sourceHeight * ($destWidth / $sourceWidth); //force the destination heighth to original ratio //$destHeight = (intval(Configuration::get('PS_IMAGE_GENERATION_METHOD')) == 0 ? $destHeight : $nextHeight); } } this solution works for me Link to comment Share on other sites More sharing options...
kostia_lev Posted October 16, 2012 Share Posted October 16, 2012 this works, thanx dude. Link to comment Share on other sites More sharing options...
andkom Posted December 28, 2012 Share Posted December 28, 2012 Crop (remove) white space in multiple images software FREE http://www.tool-bar....agecropwin.html 1 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