Jump to content
Sign in to follow this  
tomjmul

Support thread for the Image Magic contribution

Recommended Posts

Please help me

I am having the following error. When I click on: Text Watermark Font Name/edit

 

Fatal error: Call to undefined function: tep_cfg_pull_down_installed_fonts() in /home/bbprop/public_html/catalog/admin/configuration.php(125) : eval()'d code on line 1

 

And when I click on: Watermark Image File/edit

 

Fatal error: Call to undefined function: tep_cfg_pull_down_installed_watermarks() in /home/bbprop/public_html/catalog/admin/configuration.php(125) : eval()'d code on line 1

Share this post


Link to post
Share on other sites
Where are the installation instructions?

 

the link provided is broken.

Thanks

 

 

They where down the other day when I needed to install it on a new build ( :o ) but they seem to be up again today (now I've done it. :rolleyes: ) It would be helpful if someone in the know did a text file version and put them on the contribution page in case the web page disapears for good.

Share this post


Link to post
Share on other sites
It would be helpful if someone in the know did a text file version and put them on the contribution page in case the web page disapears for good.

i strongly agree - i think tomjmul got a little carried away trying to stir up donations for his the work he put into this - and so he pushes hinself a little bit too strongly - what he does not realize is that all his efforts to stir up donations (and biz for himself) only causes confusion and tends to stear people away from wanting to send him donations.

 

currently what he refers to as the most up to date instructions are located at http://www.celtware.com/im/instructions.php (and yeah, what a confusing pain to not have that instructions in an included text file - esp. when his site was down)

Share this post


Link to post
Share on other sites

actually, after reading all these problems -- and having yet simular problems -- AND not being so thrilled with tomjmul ethics > i'm gonna check out some of the equivalent contribs (that basically do the same thing) - they seemed to have it a bit more under control...

Share this post


Link to post
Share on other sites
I have Image magic 1.5 and More_Pics_6 installed. there is one problem. when I am in a product_info page, and the same product is in the specials box. The size of the Product image in the specials box is wrong. It should be the SMALL_IMAGE size, but instead, it's now shown as PRODUCT_INFO_IMAGE size!

 

the problem accur only if I am in the product info page and same product is in the specials box!!

 

Please anybody, help!!

 

 

I have this same problem with the specials box showing full size images on the product info page when the products are the same. I have not been able to identify the problem.

 

Anyone else?


----------------------------------------------------

Share this post


Link to post
Share on other sites

I had a similar problem with the 'what's new' image showing full size after a botched restore. Turns out I didn't have the database entries for this contribution and re-runing the sql file solved it.

Share this post


Link to post
Share on other sites

Note 1: In the instructions below, I have made the assumption that your store's root folder is catalog. IE. Your store is accessed by typing www.yourstore.com/catalog into a browser.

 

Note 2: Be sure to read the installation instructions *all* the way and if you do not understand what is being said here, do not try to install it and instead come to the forum section for help.

 

Step #1 - Analyzing requirements

This contribution requires:

 

osCommerce 2.2-MS2

the GD image library, which now comes packaged with most PHP builds

Note: you can verify that you have both requirements in your admin panel (Tools -> Server Info). Check if you have the GD-library installed by looking for a "gd" subsection.

 

 

 

Step #2 - Backup files

Make a backup of the files that are going to be changed:

 

 

Your store's OSC database (Very important!)

catalog/includes/functions/html_output.php

catalog/admin/includes/functions/general.php

If applying the IE PNG bug work-around, then also backup:

 

catalog/popup_image.php

catalog/includes/header.php

 

 

 

Step #3 - Update your store database

Run the imagemagic.sql file contained in the zip archive or copy and paste the SQL query below into PHPMyAdmin or your favourite MYSQL browser client

 

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3205,'Product Information Image Width','PRODUCT_INFO_IMAGE_WIDTH','100','The pixel width of images shown on your product information page',4,100,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3206,'Product Information Image Height','PRODUCT_INFO_IMAGE_HEIGHT','0','The pixel height of images shown on your product information page',4,101,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3207,'Image Magic Master Switch','CFG_MASTER_SWITCH','On','Switch OSC Image Magic on or off',333,3,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'On\', \'Off\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3278,'Apply security features to registered customers','CFG_REGISTERED_WATERMARKS','Yes','If this option is set to no, all image security features will be disabled when a registered customer is browsing your site',333,4,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES (333,'Image Magic','Configuration options for the OSC Image Magic contribution',4,1);
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3279,'Help support the OSC Image Magic Project','','Make a donation', CONCAT('Reward the author & support future releases. Please click the button below to make a donation<p><a href=\"http://www.celtware.com/im/donate.php?ref=',FLOOR(0 + (RAND(UNIX_TIMESTAMP()) * 9999999999999999)),'\"><img src=\"http://www.celtware.com/im/donate.php?ref=img',FLOOR(0 + (RAND(UNIX_TIMESTAMP()) * 9999999999999999)),'\" border=\"0\"></a>'),333,-1,'2005-10-03 03:08:38','1899-12-29','','tep_cfg_readonly(');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3208,'Process Store\'s Graphics','CFG_PROCESS_GRAPHICS','False','If this is set to true, ALL store graphics will be processed and cached, including buttons, clip art etc. The default, recommended setting for this is False',333,6,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'True\', \'False\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3209,'Auto Clean Cache','CFG_CACHE_AUTO_CLEAN','True','If selected, the cache will automatically be cleared of un-needed items. Set to true if you want to sacrifice a small amount of performance for server disk space saving',333,9,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'True\', \'False\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3210,'Encrypt Image Filenames','CFG_ENCRYPT_FILENAMES','False','If you select this option all of your filenames will be encrypted. This option will prevent visitors from discovering your image filenames. Use it in combination with image watermarking to prevent theft of your images.',333,12,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'True\', \'False\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3211,'Filename Encryption Key','CFG_ENCRYPTION_KEY','changeme','If you have switched on image filename encryption, then enter a string here to be used as the encryption key',333,15,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3212,'Apply Internet Explorer PNG Transparency work-around?','CFG_PNG_BUG','False','This option will switch on a work-around so that PNG alpha transparency images will display correctly in Internet Explorer<br><b>Note:</b> Two files need to be modified to enable this - See readme.',333,18,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'True\', \'False\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3213,'Use Resampling','CFG_USE_RESAMPLING','True','If selected, thumbnails will be resampled rather than resized. Resampling creates much higher quality thumbnails.',333,21,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'True\', \'False\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3214,'Create Truecolour Thumbnails','CFG_CREATE_TRUECOLOR','True','Create True color Thumbnails? Better quality overall but set to false if you have GD version < 2.01 or if creating transparent thumbnails.',333,24,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'True\', \'False\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3215,'Output GIFs as JPEGs','CFG_GIFS_AS_JPEGS','False','Set this option true if you have GD version > 1.6 and want to output GIFs as JPGs. Note that transparencies will not be retained (set matte colour below). If you have GD Library < 1.6 with GIF create support, GIFs will be output as GIFs.',333,27,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'True\', \'False\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3220,'\'GIF as JPEG\' Matte colour (HEX)','CFG_MATTE_COLOR','FFFFFF','Enter the HEX colour value that transparent backgrounds will be converted to if GIFs output as JPGs',333,28,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3216,'Cache Thumbnails on the Server','CFG_TN_SERVER_CACHE','True','Set to true if you want to cache previously processed thumbnails on disk. This will add to disk space but will save your processor from having to create a new thumbnail for every visitor. (recommended)',333,30,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'True\', \'False\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3219,'Cache Thumbnails in user\'s browser','CFG_TN_BROWSER_CACHE','True','Set to true if you want browsers to be able to cache viewed thumbnails in their own cache. This will save bandwidth for every visitor that views the same thumbnail again. (recommended)',333,31,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'True\', \'False\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3217,'Thumbnail Cache directory','CFG_TN_CACHE_DIRECTORY','/thumbnails','Directory where cached thumbnails will be stored. <br><b>Note:</b> This directory should be automatically created, if not, do so manually and chmod it to 777',333,33,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3218,'Use 404 Response if image not found?','CFG_USE_404','True','If set to true a 404 (not found) response will be sent (broken image), otherwise a small error picture will be shown',333,36,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'True\', \'False\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3221,'Allow thumbnails larger than original','CFG_ALLOW_LARGER','True','Set to true if you want to allow scaling UP of source image files.',333,45,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'True\', \'False\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3271,'Center if thumbnail larger than original','CFG_CENTER_THUMB','False','If your source is smaller than the thumbnail, should it be centered on the larger thumbnail rather than resized?<br><b>Note:</b> \'Allow thumbnails larger than original\' (above) must be set to true',333,46,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'True\', \'False\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3222,'JPEG Quality - Pop-up Images','POPUP_JPEG_QUALITY','100','The output quality of JPEG pop-up images.',333,48,NULL,'2005-01-06 20:24:30',NULL,NULL);
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3223,'JPEG Quality - Product Information Thumbnails','PRODUCT_JPEG_QUALITY','100','The output quality of JPEG thumbnails displayed on your product information page',333,51,NULL,'2005-01-06 20:24:30',NULL,NULL);
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3224,'JPEG Quality - Category Thumbnails','CATEGORY_JPEG_QUALITY','100','The output quality of category JPEG thumbnails',333,52,NULL,'2005-01-06 20:24:30',NULL,NULL);
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3265,'JPEG Quality - Heading Thumbnails','HEADING_JPEG_QUALITY','100','The output quality of heading JPEG thumbnails',333,53,NULL,'2005-01-06 20:24:30',NULL,NULL);
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3260,'JPEG Quality - Small Thumbnails','SMALL_JPEG_QUALITY','100','The output quality of your small sized JPEG thumbnails',333,55,NULL,'2005-01-06 20:24:30',NULL,NULL);
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3225,'Graphic Watermark in Pop-up Images','USE_WATERMARK_IMAGE_POPUP','No','Do you wish to use a watermark image in your pop-up product image?<br><b>Note:</b>Graphic Watermarks will NOT be added to GIF images',333,57,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3226,'Graphic Watermark in Product Information Thumbnails','USE_WATERMARK_IMAGE_PRODUCT','No','Do you wish to use a watermark image in your product information thumbnails?<br><b>Note:</b>Graphic Watermarks will NOT be added to GIF images',333,58,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3227,'Graphic Watermark in Category Thumbnails','USE_WATERMARK_IMAGE_CATEGORY','No','Do you wish to use a watermark image in your category thumbnails?<br><b>Note:</b>Graphic Watermarks will NOT be added to GIF images',333,59,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3266,'Graphic Watermark in Heading Thumbnails','USE_WATERMARK_IMAGE_HEADING','No','Do you wish to use a watermark image in your heading thumbnails?<br><b>Note:</b>Graphic Watermarks will NOT be added to GIF images',333,60,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3261,'Graphic Watermark in Small Thumbnails','USE_WATERMARK_IMAGE_SMALL','No','Do you wish to use a watermark image in your small thumbnails<br><b>Note:</b>Graphic Watermarks will NOT be added to GIF images?',333,61,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3228,'Watermark Image File','WATERMARK_IMAGE','','Select which watermark image you wish to use<br><br>New watermark images may be installed in your:<br><b>/catalog/includes/imagemagic/watermarks/</b><br>directory<br>',333,66,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_pull_down_installed_watermarks(');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3229,'Image Watermark Transparency','WATERMARK_IMAGE_OPACITY','20','Enter a value of 0 to 100 to set the opacity value of your watermark image (0=transparent, 100=opaque)',333,69,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3230,'Image Watermark Position','WATERMARK_IMAGE_POSITION','Top','Select where you would like your watermark image to be positioned on your thumbnail',333,71,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_pull_down_watermark_alignment(');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3231,'Image Watermark Margin','WATERMARK_IMAGE_MARGIN','0','Enter the offset in pixels where you would like your watermark image to be positioned',333,72,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3270,'Resize Watermark Image','CFG_RESIZE_WATERMARK','True','If selected, your watermark image will be resized in the same ratio as your source image, otherwise the watermark image will always be added full-sized',333,73,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'True\', \'False\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3232,'Text Watermark in Pop-up Images','USE_WATERMARK_TEXT_POPUP','No','Do you wish to use watermark text in your pop-up product images?<br><b>Note:</b>Text Watermarks do not work well with GIF images',333,75,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3233,'Text Watermark in Product Information Thumbnails','USE_WATERMARK_TEXT_PRODUCT','No','Do you wish to use watermark text in your product information thumbnails?<br><b>Note:</b>Text Watermarks do not work well with GIF images',333,76,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3234,'Text Watermark in Category Thumbnails','USE_WATERMARK_TEXT_CATEGORY','No','Do you wish to use watermark text in your category thumbnails?<br><b>Note:</b>Text Watermarks do not work well with GIF images',333,77,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3267,'Text Watermark in Heading Thumbnails','USE_WATERMARK_TEXT_HEADING','No','Do you wish to use watermark text in your heading thumbnails?<br><b>Note:</b>Text Watermarks do not work well with GIF images',333,78,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3262,'Text Watermark in Small Thumbnails','USE_WATERMARK_TEXT_SMALL','No','Do you wish to use watermark text in your small thumbnails?<br><b>Note:</b>Text Watermarks do not work well with GIF images',333,79,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3235,'Watermark Text','WATERMARK_TEXT','Sample','Enter the text you wish to appear in your thumbnails as a watermark',333,84,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3236,'Text Watermark Font Name','WATERMARK_TEXT_FONT','arial.ttf','Select the font filename you wish to use for watermark text<br><br>New TTF fonts may be installed in your:<br><b>/catalog/includes/imagemagic/fonts/</b><br>directory<br>',333,87,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_pull_down_installed_fonts(');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3237,'Text Watermark Size','WATERMARK_TEXT_SIZE','10','Enter the font point size of your text watermark',333,90,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3238,'Text Watermark Colour (HEX)','WATERMARK_TEXT_COLOR','000000','Enter the hex value for the colour of your text watermark',333,93,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3239,'Text Watermark Transparency','WATERMARK_TEXT_OPACITY','20','Enter a value of 0 to 100 to set the transparency value of your watermark text (0=transparent, 100=opaque)',333,96,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3240,'Text Watermark Position','WATERMARK_TEXT_POSITION','Top','Select where you would like your watermark text to be positioned on your thumbnails',333,99,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_pull_down_watermark_alignment(');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3241,'Text Watermark Margin','WATERMARK_TEXT_MARGIN','0','Enter the offset in pixels where you would like your watermark text to be positioned',333,102,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3242,'Text Watermark Angle','WATERMARK_TEXT_ANGLE','0','Enter the counter-clockwise angle of the text watermark',333,105,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3243,'Auto Adjust Brightness','BRIGHTNESS_ADJUST','0','Enter an amount between -255 and 255 which your thumbnail brightness will be adjusted by<br><b>Note:</b> This will not work with GIF images',333,108,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3244,'Auto Adjust Contrast','CONTRAST_ADJUST','0','Enter an amount between -255 and 255 which your thumbnail contrast will be adjusted by<br><b>Note:</b> This will not work with GIF images',333,111,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3245,'Frame Pop-up Images','FRAME_POPUP','No','Do you want to include a frame around your pop-up product images?',333,114,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3246,'Frame Product Information Thumbnails','FRAME_PRODUCT','No','Do you want to include a frame around your product information thumbnails?',333,115,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3247,'Frame Category Thumbnails','FRAME_CATEGORY','No','Do you want to include a frame around your category thumbnails?',333,116,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3268,'Frame Heading Thumbnails','FRAME_HEADING','No','Do you want to include a frame around your heading thumbnails?',333,117,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3263,'Frame Small Thumbnails','FRAME_SMALL','No','Do you want to include a frame around your small thumbnails?',333,118,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3248,'Frame Width','FRAME_WIDTH','4','Enter the width in pixels of the thumbnail frame',333,120,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3249,'Frame Depth','FRAME_EDGE_WIDTH','4','Enter the 3D depth of the frame in pixels',333,123,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3250,'Frame Colour (HEX)','FRAME_COLOR','CCCCCC','Enter the HEX colour of the thumbnail frame',333,126,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3251,'Frame Inside 3D Highlight Colour (HEX)','FRAME_INSIDE_COLOR1','FFFFFF','Enter the colour (in hex) you wish the frame\'s inside higlight colour to be',333,129,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3252,'Frame Inside 3D Shadow Colour (HEX)','FRAME_INSIDE_COLOR2','000000','Enter the colour (in hex) you wish the frame\'s inside shadow colour to be',333,132,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3253,'Buttonize Pop-up Images','BEVEL_POPUP','No','Do you want to add a 3D button effect to your pop-up images?',333,133,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3254,'Buttonize Product Information Thumbnails','BEVEL_PRODUCT','No','Do you want to add a 3D button effect to your product information thumbnails?',333,134,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3255,'Buttonize Category Thumbnails','BEVEL_CATEGORY','No','Do you want to add a 3D button effect to your category thumbnails?',333,135,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3269,'Buttonize Heading Thumbnails','BEVEL_HEADING','No','Do you want to add a 3D button effect to your heading thumbnails?',333,136,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3264,'Buttonize Small Thumbnails','BEVEL_SMALL','No','Do you want to add a 3D button effect to your small thumbnails?',333,137,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_select_option(array(\'Yes\', \'No\'),');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3256,'Button Height','BEVEL_HEIGHT','4','Enter the height in pixels of the 3D button effect',333,144,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3257,'Button Highlight Colour (HEX)','BEVEL_HIGHLIGHT','CCCCCC','Enter the colour (in hex) you wish the button\'s higlight colour to be',333,147,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3258,'Button Shadow Colour (HEX)','BEVEL_SHADOW','000000','Enter the colour (in hex) you wish the button\'s shadow colour to be',333,150,NULL,'2005-01-06 20:24:30',NULL,'');
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (3259,'Last Hash (System Use - Read Only)','LAST_HASH','','Stores the last hash value of the thumbnail configuration settings.  This will allow the script to detect when they have changed and maintain the cache.',333,153,NULL,'2005-01-06 20:24:30',NULL,'tep_cfg_readonly(');

 

Note: Please make sure that a fully working backup of your database exists before doing this step. This is very important

 

Step #4 - Add files

Copy the files contained in the zip archive to their respective directories on your server - Easy eh?

 

Step #5 - In:

catalog/admin/includes/functions/general.php

Just before the ?> at the very end of this file add the following:

 

 function tep_cfg_readonly($value){
  $single[]= array('id' => $value,
					'text' => $value);
  return tep_draw_pull_down_menu('configuration_value', $single, $value);
 }

 function tep_cfg_pull_down_installed_fonts($font_name) {
  if ($root=@opendir(DIR_FS_DOCUMENT_ROOT.'includes/imagemagic/fonts')){
		while ($file=readdir($root)){
			  if($file=="." || $file==".." || is_dir($dir."/".$file)) continue;
			  $files[]= array('id' => $file,
							 'text' => $file);
		}
  }
  return tep_draw_pull_down_menu('configuration_value', $files, $font_name);
}

 function tep_cfg_pull_down_installed_watermarks($watermark_name) {
  if ($root=@opendir(DIR_FS_DOCUMENT_ROOT.'includes/imagemagic/watermarks')){
		while ($file=readdir($root)){
			  if($file=="." || $file==".." || is_dir($dir."/".$file)) continue;
			  $files[]= array('id' => $file,
							 'text' => $file);
		}
  }
  return tep_draw_pull_down_menu('configuration_value', $files, $watermark_name);
}

 function tep_cfg_pull_down_watermark_alignment($watermark_alignment) {
  $align[]= array('id' => 'Tiled',
					'text' => 'Tiled');
  $align[]= array('id' => 'Top',
					'text' => 'Top');
  $align[]= array('id' => 'Top Left',
					'text' => 'Top Left');
  $align[]= array('id' => 'Top Right',
					'text' => 'Top Right');
  $align[]= array('id' => 'Center',
					'text' => 'Center');
  $align[]= array('id' => 'Bottom',
					'text' => 'Bottom');
  $align[]= array('id' => 'Bottom Left',
					'text' => 'Bottom Left');	 
  $align[]= array('id' => 'Bottom Right',
					'text' => 'Bottom Right');																																									 
  return tep_draw_pull_down_menu('configuration_value', $align, $watermark_alignment);
}

 

Step #6 - In :

/catalog/includes/functions/html_output.php

replace the entire tep_image() function with

 

// BOF Image Magic 
function tep_image($src, $alt = '', $width = '', $height = '', $params = '') {  
 global $product_info;

 //Allow for a new intermediate sized thumbnail size to be set 
 //without any changes having to be made to the product_info page itself. 
 //(see the lengths I go to to make your life easier :-)
 if (strstr($_SERVER['PHP_SELF'],"product_info.php")) {

	if (isset($product_info['products_image']) 
			   && $src == DIR_WS_IMAGES . $product_info['products_image']
			   && $product_info[products_id]==$_GET['products_id'])  {   //final check just to make sure that we don't interfere with other contribs
		$width = PRODUCT_INFO_IMAGE_WIDTH == 0?'':PRODUCT_INFO_IMAGE_WIDTH;
		$height = PRODUCT_INFO_IMAGE_HEIGHT == 0?'':PRODUCT_INFO_IMAGE_HEIGHT;
		$product_info_image=true;
		$page="prod_info"; 
	}
 }

 //Detect whether this is a pop-up image
 if (strstr($_SERVER['PHP_SELF'],"popup_image.php")) $page="popup";

 //do we apply the IE PNG alpha transparency fix?
 if  (strstr(strtolower($src),".png") && CFG_PNG_BUG=="True") $fix_png = true;

 //send the image for processing unless told otherwise
 $image = '<img src="' . $src . '"'; //set up the image tag just in case we don't want to process
 if (CFG_MASTER_SWITCH=="On") $calculate = true;
 else $calculate=false;

 // Don't calculate if the image is set to a "%" width
 if (strstr($width,'%') == true || strstr($height,'%') == true) $calculate = false; 

 // Dont calculate if a pixel image is being passed (hope you dont have pixels for sale)
 if (strstr($image, 'pixel')) $calculate = false;


 $image_size = @getimagesize($src);


 // Decide whether or not we want to process this image
 if (($width == '' && $height == '' && $page != 'popup' ) || ($width == $image_size[0] && $height == $image_size[0] && $page != 'popup')) {  
	if (CFG_PROCESS_GRAPHICS=="False") $calculate = false; //looks like this is a store graphic rather than product image
 }	

 // Is this image good to go?
 if (CONFIG_CALCULATE_IMAGE_SIZE && $calculate) { 

 if ($image_size) { 

  $ratio = $image_size[1] / $image_size[0];

  // Set the width and height to the proper ratio
  if (!$width && $height) { 
	$ratio = $height / $image_size[1]; 
	$width = intval($image_size[0] * $ratio); 
  } elseif ($width && !$height) { 
	$ratio = $width / $image_size[0]; 
	$height = intval($image_size[1] * $ratio); 
  } elseif (!$width && !$height && !$over_ride) { 
	$width = $image_size[0]; 
	$height = $image_size[1]; 
  } 

  //Encrypt the image filename if switched on
	if (CFG_ENCRYPT_FILENAMES == "True" && CFG_ENCRYPTION_KEY !="") {
		  $result = '';
		  $key=CFG_ENCRYPTION_KEY;
		  for($i=0; $i<strlen($src); $i++) {
			  $char = substr($src, $i, 1);
			  $keychar = substr($key, ($i % strlen($key))-1, 1);
			  $char = chr(ord($char)+ord($keychar));
			  $result.=$char;
		  }
		  $src=urlencode(base64_encode($result));
	}

   //Return the html
	$image = '<img src="imagemagic.php?img='.$src.'&w='.
	tep_output_string($width).'&h='.tep_output_string($height).'&page='.$page.'"';

} elseif (IMAGE_REQUIRED == 'false') { 
  return false; 
} 
 }  

//If the size asked for is greater than the image itself, we check the configs to see if this is allowed and if not over-ride
 if ($width > $image_size[0] || $height > $image_size[1]) {
	if (CFG_ALLOW_LARGER  != 'True'){
		  $width=$image_size[0];
		  $height=$image_size[1];
		  $over_ride = true;
	}
 }
 // Add remaining image parameters if they exist
 if ($width) { 
$image .= ' width="' . tep_output_string($width) . '"'; 
 } 

 if ($height) { 
$image .= ' height="' . tep_output_string($height) . '"'; 
 }	 

 if (tep_not_null($params)) $image .= ' ' . $params;

 $image .= ' border="0" alt="' . tep_output_string($alt) . '"';

 if (tep_not_null($alt)) {
$image .= ' title="' . tep_output_string($alt) . '"';
 }

 if ($fix_png && CFG_MASTER_SWITCH=="On") {
	$image .= ' onload="fixPNG(this)"'; 
 }

 $image .= '>';   
 return $image; 
}
//EOF Image Magic

 

Step #7 - Admin settings

Note: Before you change the settings, write down the current values so you can restore them in case of an error!

 

Go to the admin-section of your store (Configuration -> Images) and set:

 

images width and height values to a value greater than zero

calculate image sizes to true

the width or height of the new image type - product information images

Now go to the Configuration -> Image Magic and set the options in there as required:

Note: Don't forget that with this contribution comes a new thumbnail size - The size of the image shown on your product information page - The setting for this is grouped with the rest of the image size configuration values in your admin panel in Configuration -> Images - You should go in there and set it, otherwise these images will display with the default width of 100.

 

** It is very important to note, that if you want your images to always display with the correct aspect ratio (height to width ratio) then you should only ever supply either a maximum height or a maximum width - NEVER both in the Configuration -> Images section of your admin panel. If you already have both set, then go in and change one of them to 0.

 

 

 

That's It!

If you found the install easy and the instructions comprehensive, good quality and easy to folllow, you might consider rewarding my efforts and supporting the osc Image Magic project by making a donation

Now go try it out!

 

Optional Steps

 

Step #1 - Adding additional Truetype fonts and watermark imagesIf you want to add additional fonts which can be used in your text watermarks, these should be Truetype format and uploaded in binary mode to your server. The correct location to place your own Truetype fonts is:

/catalog/includes/imagemagic/fonts/

You can also install custom graphics files to be added to your thumbnails as watermarks - The should be of type GIF, PNG or JPG and uploaded in binary mode to:

/catalog/includes/imagemagic/watermarks/

 

Step #2 - Enabling the IE. PNG work-around

If you want to use 24-bit PNG images with alpha channel transparency., unfortunately Internet Explorer contains a well documented bug that messes up the transparency of these type of images. Image Magic contains a work-around fix for this issue, which can be switched on or off from your control panel.

 

Before switching this feature on, you need to add the following code to two different files:

/catalog/includes/header.php - At the very end of the file ( after the final ?> )

/catalog/popup_image.php - Just before the </head> (not <head> - notice the forward slash)

 

The snippet of code to add is:

 

<!--[if gte IE 5.5000]>
  <script language="JavaScript"> var ie55up = true </script>
<![endif]-->
<script language="JavaScript">
function fixPNG(myImage) // correctly handle PNG transparency in Win IE 5.5 or higher.
  {
if (window.ie55up)
 {
 var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
 var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
 var imgTitle = (myImage.title) ? "title='" + myImage.title + "' " : "title='" + myImage.alt + "' "
 var imgStyle = "display:inline-block;" + myImage.style.cssText 
 var strNewHTML = "<span " + imgID + imgClass + imgTitle
 strNewHTML += " style=\"" + "width:" + myImage.width + "px; height:" + myImage.height + "px;" + imgStyle + ";"
 strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
 strNewHTML += "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>" 
 myImage.outerHTML = strNewHTML
 }
  }
</script>

Share this post


Link to post
Share on other sites

Has anyone got this working without paying for it??

 

Maybe I'm just being sceptical but have been wondering if there is a bit missing that is 'fixed' during the paid for install.....

Share this post


Link to post
Share on other sites
Has anyone got this working without paying for it??

 

Maybe I'm just being sceptical but have been wondering if there is a bit missing that is 'fixed' during the paid for install.....

I have it working just fine. From the latest posts on this discussion board, I'd recommend that only those who are familiar with PHP and fairly technical utilize this contribution. It's a very good contribution and I'm disappointed that the author has taken a commercial approach, but it does work quite well even if you do not pay for it. I'd make a donation to the author but I'm uncomfortable with some of the things I've read here.

Share this post


Link to post
Share on other sites
My store is at Abdinor.net

 

I have been trying for 2 days to get Imagemagic to work and now I give up and ask for help. I followed instructions I think and everything seems to fine. The only problems I had was that I had to create my directories manually and I was not sure where imagemagic.php should be so I tried it in includes and in includes/imagemaker The result was the same in both.

 

I can get into the admin part fine and it seems to work. Also if I change the image sizes ther, the placeholders on the site change. But on the site, the image is broken. Properties shows imagemaker.php? in the url. What is on the site now is a fresh install after a restore. This is the third time I have done that. The sql file went in without error. Please can someone tell me what I am doing wrong. I am not new to computers but php, oscommerce, webdesign and all this I started working on about 2 weeks ago. So I need gentle guidence.

 

Thanks

Janet

abdinor.net

 

I had this problem when I first installed. For me, the problem was that I had output GIF as JPEG set to true in admin--configuration. this feature does not work for me, but as soon as I disabled it, the images all appeared.


----------------------------------------------------

Share this post


Link to post
Share on other sites

(Without wanting to tempt fate) it works fine for me. There's one bit in the instalation where you have to replace a large chunk of code, and it's not obvious which large chunk it is, but iirc someone talks through which one it is quite clearly earlier on in this thread. This is why good forums are great for this sort of thing - where would we be without the internet? :D

Share this post


Link to post
Share on other sites

--- almost a side question ---

 

am i to understand that the thumbnails in the smaller size do not exist (are not generated) till the p age with them is reqested?

Share this post


Link to post
Share on other sites

This is very useful contribution.

 

But i'm having some problems. When I get Admin panel, and try to set de Watermark image, y say's this:

 

Fatal error: Call to undefined function: tep_cfg_pull_down_installed_watermarks() in /home/eltatac/public_html/catalog/admin/configuration.php(125) : eval()'d code on line 1

 

That's over the table of configurations. And the left table (where you can click on "EDIT") doesn't appear.

 

:'(

Share this post


Link to post
Share on other sites

HELP NEEDED URGENTLY!!

 

I had image magic working on my workstation. But when I tried to move the entire website to a server the image magic stopped working. I know that my server supports it, as my old website is using image magic as well.

 

Does anyone know what I have to change?

 

I don't have a catalog folder anymore and it's just in my top folder... Thus I don't have a www.oscommerce.com/shop, but it's rather in my www.oscommerce.com. Will that make a difference? But it worked on my workstation though...

 

Can anyone please help me, as I've already put it on my server and my back up of the old one isn't working anymore :(. My website is on www.topecollection.com.

 

HOPE THAT ANYONE CAN HELP ME, THANK YOU!

Edited by nismox

Share this post


Link to post
Share on other sites
I had image magic working on my workstation. But when I tried to move the entire website to a server the image magic stopped working. I know that my server supports it, as my old website is using image magic as well.

 

Same here ^_^

 

No idea what could be the problem here as both installations are virtually identical.

I tried using 'On the Fly' Auto Thumbnailer using GD Library and it works without a hitch, so GD is not at fault.

Imagemagic interface in admin is working OK, it's just the images which won't show (and yes, thumbnails directory is set to 777).

 

I stumped. Any ideas what could be the cause of this?

Share this post


Link to post
Share on other sites

PS: When trying to access an image directly through Imagemagic the following error is on top of the list:

 

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/xxxxx/public_html/shop/imagemagic.php on line 21

 

Line 21 reads:

 

chdir (DIR_FS_CATALOG);

Share this post


Link to post
Share on other sites
PS: When trying to access an image directly through Imagemagic the following error is on top of the list:

 

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/xxxxx/public_html/shop/imagemagic.php on line 21

 

Line 21 reads:

 

chdir (DIR_FS_CATALOG);

 

 

I'm still trying to make this sh** to work, but in your case it looks simple. just go to your admin and look for the configure.php file, your FS "real file system path" like /home/whatever/public_html seems to be wrong.

 

it isn't /home/xxxxx/public_html/shop/ right ??

 

hope it helps, if not you should pay for this crap or try another contribution, because there's no support on it anymore :/

 

Fabio

Share this post


Link to post
Share on other sites
I'm still trying to make this sh** to work, but in your case it looks simple. just go to your admin and look for the configure.php file, your FS "real file system path" like /home/whatever/public_html seems to be wrong.

 

it isn't /home/xxxxx/public_html/shop/ right ??

 

hope it helps, if not you should pay for this crap or try another contribution, because there's no support on it anymore :/

 

Fabio

 

Fabio, you're a lifesaver.

Turns out I just had 1 wrong letter in that filepath...

Everything works now! Yes!

 

Thanks so much!

Share this post


Link to post
Share on other sites
I have this same problem with the specials box showing full size images on the product info page when the products are the same. I have not been able to identify the problem.

 

Anyone else?

 

In the box's .PHP file try changing (HEADING_IMAGE_WIDTH) to (SMALL_IMAGE_WIDTH/2) and (HEADING_IMAGE_HEIGHT) to (SMALL_IMAGE_HEIGHT/2).

Leave out the /2 if the images become too small.

 

It's not an elegant solution but it works for me.

Share this post


Link to post
Share on other sites
HELP NEEDED URGENTLY!!

 

I had image magic working on my workstation. But when I tried to move the entire website to a server the image magic stopped working. I know that my server supports it, as my old website is using image magic as well.

 

Does anyone know what I have to change?

 

I don't have a catalog folder anymore and it's just in my top folder... Thus I don't have a www.oscommerce.com/shop, but it's rather in my www.oscommerce.com. Will that make a difference? But it worked on my workstation though...

 

Can anyone please help me, as I've already put it on my server and my back up of the old one isn't working anymore :(. My website is on www.topecollection.com.

 

HOPE THAT ANYONE CAN HELP ME, THANK YOU!

 

nismox,

 

I'm having alof of troubles with directories that are different of /catalog in 2 oscommerce installs, i had to change it because "catalog" doesn't make sense in my local language, but i sugest you to use /catalog if u can or any other directory at least, insted root dir. It will be easier in the future installing another contributions if you don't know much php scripting.

 

btw your problem looks like the same of my site. :/

 

Sorry, can't help you more :(

 

Fabio

Share this post


Link to post
Share on other sites
In the box's .PHP file try changing (HEADING_IMAGE_WIDTH) to (SMALL_IMAGE_WIDTH/2) and (HEADING_IMAGE_HEIGHT) to (SMALL_IMAGE_HEIGHT/2).

Leave out the /2 if the images become too small.

 

It's not an elegant solution but it works for me.

 

Ack. I thought it worked but then it got messed up again...

 

Still trying to get this to work...

Share this post


Link to post
Share on other sites

itinerant baker, perhaps you could give us late comers a bit more help - in post #886 above you mention:

. . . There's one bit in the instalation where you have to replace a large chunk of code, and it's not obvious which large chunk it is, but iirc someone talks through which one it is quite clearly earlier on in this thread . . .
maybe you could stear us to the post number of the message you refer to
. . . This is why good forums are great for this sort of thing - where would we be without the internet? :D
i strongly concure ;) -- i'm currently exploring many of the image contribs - being that i come from a background of imaging, C++, HTML, Javascript, etc. - you can understand my new found thrill articulating php and mySQL - if i don't find an image contrib that satisfies soon i'll make my own and share - one that will be totally open to all that want to add to its flexibilty, stability, and ease of use - at first i thought tomjmul had a good idea trying to keep wraps on his contrib (so to speak), but on average i have found the group developed contribs much more satisfying (of higher quality)...

Share this post


Link to post
Share on other sites
In the box's .PHP file try changing (HEADING_IMAGE_WIDTH) to (SMALL_IMAGE_WIDTH/2) and (HEADING_IMAGE_HEIGHT) to (SMALL_IMAGE_HEIGHT/2).

Leave out the /2 if the images become too small.

 

It's not an elegant solution but it works for me.

 

Thanks for your suggestion on this persnickity problem. Sadly, the solution doesn't solve the problem and actually makes it worse. The problem only happens on the product_info page when the product is the same as the review or the special in the right column. On this page, the changes of width and height divided by 2 are not applied. But on different pages, the /2 code does apply and this makes the thumbnails in those boxes too small. The result then is too small on all pages except the product page where they remain too big.

 

Looking at the code made me realize that "small_image_width" and height are used on both the product_info.php page for the actual product image, as well as in the reviews.php and specials.php boxes for those images. It would seem then that image magic is incapable of dealing with the duplicate uses of "small_image_width" and height when the product info page is pulled and this string is used for the actual product image as well as reviews and specials boxes images for the same product. basically, it builds the first instance which is the bigger product image and then duplicates this for the specials and the reviews boxes:

 

http://vineswine.com/northstar-vineyard-st...-2002-p-28.html

 

It occured to me that perhaps the product_info.php image call should not be "small_image_width" and height but trying to change this didn't do anything for me.

 

This is a smallish issue but it's bugging me!


----------------------------------------------------

Share this post


Link to post
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
Sign in to follow this  

×