Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

bpt

Archived
  • Posts

    3
  • Joined

  • Last visited

Profile Information

bpt's Achievements

  1. I tried your code and the only thing I had to change to make it work on my server was to remove DIR_IMAGEMAGICK . from exec(DIR_IMAGEMAGICK . "mogrify +profile \"*\" -filter Lanczos -quality 75 -geometry \"" . $width . "\" \"" . $filename_small ."\""); Thanks for that!
  2. I installed this contribution and ran into problems which took several days to sort out but with lots of reading of this forum and help from members I was able to get it all working for my situation. I thought I would post what solved it for me incase it can help others. Problem 1: When using the Admin area to upload images, the images weren't resizing. Solution 1: The thing that handled the resizing problem was deleting DIR_IMAGEMAGICK . from the tep_image function in both of the html_output.php files. [OLD] exec(DIR_IMAGEMAGICK . "mogrify -geometry " . $width . " " . $filename_small); [NEW] exec("mogrify -geometry " . $width . " " . $filename_small); -------------------------------------------------------------- Problem 2: When you looked at the Catalog there were no images appearing including the category images and logo. Solution 2: MBrown the writer of the original contribution helped me find this solution. (Thanks MBrown!) :thumbsup: Because my oscommerce php pages are in the cgi-bin and my image folders are situated outside the cgi-bin in another folder the define for DIR_WS_IMAGES had to be changed. [OLD} define('DIR_WS_IMAGES','/x-scripts/oscommerce/images/'); [NEW] define('DIR_WS_IMAGES','../../x-scripts/oscommerce/images/'); and also the define for DIR_WS_IMAGES [OLD] define('DIR_WS_IMAGES','/x-scripts/oscommerce/images/'); [NEW] define('DIR_WS_IMAGES','../../x-scripts/oscommerce/images/'); -------------------------------------------------------------- Problem 3: When uploading manufacturers images and caterory images we were only getting some to appear others came out as 1x1 pixel specs. Solution 3: In the includes/functions/html_output.php file. function tep_image The 2 lines that say: if (!$height) $height = 1; if (!$width) $width = 1; I changed to: if (!$height) $height = 1000; if (!$width) $width = 1000; In the Admin Control area we set the Small Image Height and Heading Image Height only and deleted the Width settings and everything worked just fine. I don't understand why some of these worked but they did, hope it helps someone.
×
×
  • Create New...