Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Support thread for the Image Magic contribution


tomjmul

Recommended Posts

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

(please excuse my recent ramblings)

Vine,

the whole point of open source was that anyone can modify or change the base code.
you are so very right and this point pretty much might leed me to disregard tom's attempt to monopolize and cash in on his contrib (cont help but wonder how much he donates to other contrbutors or osc itself) - however, i'll probably strike out with my own contrib merely because some of the things i desire are indeed fundumentally different from image magic - such as the ability to switch from "on demand" resizing during page request to resizing during upload (with added ability to "pre" resize images already uploaded) - i just don't like the "on demand" resizing -- and also to intergrate many other image features like a 'mor pics that's more sensative to screen resolution, etc. (my introduction into php was with a php image gallery) - i'm just stuned how osc handles images by default (rather nasty) - to cater to those with broadband at this time i can't help but feel is a big mistake - for osc by default to merely create its thumbnails via image attributes is a big minus i feel - etc.....
Link to comment
Share on other sites

What's wrong now ?

 

Site's working OK now with Imagemagic.

 

There is a small issue when using it with the More Pics contrib. If the product shown in product product_info.php and the specials or what's new infoboxes are the same, the page shows a huge image of the product in the infobox instead of a small image...

Link to comment
Share on other sites

My goodness, you're right! If I move the what's new infobox to the left the thumbnail stays small if the same item is shown in product_info.php!

 

This'll work for now, although I'd like to find a way to fix the bug (I think the layout would be nicer with the what's new infobox in the right column).

Link to comment
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

 

OK so am presuming you mean catalog/includes/functions/html_output.php, here's what I have in mine - have I put it in the wrong place?

 

<?php
/*
 $Id: html_output.php,v 1.56 2003/07/09 01:15:48 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

////
// The HTML href link wrapper function
 function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {
global $request_type, $session_started, $SID;

if (!tep_not_null($page)) {
  die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');
}

if ($connection == 'NONSSL') {
  $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG;
} elseif ($connection == 'SSL') {
  if (ENABLE_SSL == true) {
	$link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG;
  } else {
	$link = HTTP_SERVER . DIR_WS_HTTP_CATALOG;
  }
} else {
  die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>');
}

if (tep_not_null($parameters)) {
  $link .= $page . '?' . tep_output_string($parameters);
  $separator = '&';
} else {
  $link .= $page;
  $separator = '?';
}

while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);

// Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined
if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) {
  if (tep_not_null($SID)) {
	$_sid = $SID;
  } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {
	if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) {
	  $_sid = tep_session_name() . '=' . tep_session_id();
	}
  }
}

if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {
  while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);

  $link = str_replace('?', '/', $link);
  $link = str_replace('&', '/', $link);
  $link = str_replace('=', '/', $link);

  $separator = '?';
}

if (isset($_sid)) {
  $link .= $separator . $_sid;
}

return $link;
 }

////
// The HTML image wrapper function
// 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

////
// The HTML form submit button wrapper function
// Outputs a button in the selected language
 function tep_image_submit($image, $alt = '', $parameters = '') {
global $language;

$image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';

if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';

if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;

$image_submit .= '>';

return $image_submit;
 }

////
// Output a function button in the selected language
 function tep_image_button($image, $alt = '', $parameters = '') {
global $language;

return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters);
 }

////
// Output a separator either through whitespace, or with an image
 function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') {
return tep_image(DIR_WS_IMAGES . $image, '', $width, $height);
 }

////
// Output a form
 function tep_draw_form($name, $action, $method = 'post', $parameters = '') {
$form = '<form name="' . tep_output_string($name) . '" action="' . tep_output_string($action) . '" method="' . tep_output_string($method) . '"';

if (tep_not_null($parameters)) $form .= ' ' . $parameters;

$form .= '>';

return $form;
 }

////
// Output a form input field
 function tep_draw_input_field($name, $value = '', $parameters = '', $type = 'text', $reinsert_value = true) {
$field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';

if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {
  $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"';
} elseif (tep_not_null($value)) {
  $field .= ' value="' . tep_output_string($value) . '"';
}

if (tep_not_null($parameters)) $field .= ' ' . $parameters;

$field .= '>';

return $field;
 }

////
// Output a form password field
 function tep_draw_password_field($name, $value = '', $parameters = 'maxlength="40"') {
return tep_draw_input_field($name, $value, $parameters, 'password', false);
 }

////
// Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field()
 function tep_draw_selection_field($name, $type, $value = '', $checked = false, $parameters = '') {
$selection = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"';

if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"';

if ( ($checked == true) || ( isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ( ($GLOBALS[$name] == 'on') || (isset($value) && (stripslashes($GLOBALS[$name]) == $value)) ) ) ) {
  $selection .= ' CHECKED';
}

if (tep_not_null($parameters)) $selection .= ' ' . $parameters;

$selection .= '>';

return $selection;
 }

////
// Output a form checkbox field
 function tep_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '') {
return tep_draw_selection_field($name, 'checkbox', $value, $checked, $parameters);
 }

////
// Output a form radio field
 function tep_draw_radio_field($name, $value = '', $checked = false, $parameters = '') {
return tep_draw_selection_field($name, 'radio', $value, $checked, $parameters);
 }

////
// Output a form textarea field
 function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {
$field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"';

if (tep_not_null($parameters)) $field .= ' ' . $parameters;

$field .= '>';

if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {
  $field .= stripslashes($GLOBALS[$name]);
} elseif (tep_not_null($text)) {
  $field .= $text;
}

$field .= '</textarea>';

return $field;
 }

////
// Output a form hidden field
 function tep_draw_hidden_field($name, $value = '', $parameters = '') {
$field = '<input type="hidden" name="' . tep_output_string($name) . '"';

if (tep_not_null($value)) {
  $field .= ' value="' . tep_output_string($value) . '"';
} elseif (isset($GLOBALS[$name])) {
  $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"';
}

if (tep_not_null($parameters)) $field .= ' ' . $parameters;

$field .= '>';

return $field;
 }

////
// Hide form elements
 function tep_hide_session_id() {
global $session_started, $SID;

if (($session_started == true) && tep_not_null($SID)) {
  return tep_draw_hidden_field(tep_session_name(), tep_session_id());
}
 }

////
// Output a form pull down menu
 function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {
$field = '<select name="' . tep_output_string($name) . '"';

if (tep_not_null($parameters)) $field .= ' ' . $parameters;

$field .= '>';

if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]);

for ($i=0, $n=sizeof($values); $i<$n; $i++) {
  $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"';
  if ($default == $values[$i]['id']) {
	$field .= ' SELECTED';
  }

  $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>';
}
$field .= '</select>';

if ($required == true) $field .= TEXT_FIELD_REQUIRED;

return $field;
 }

////
// Creates a pull-down list of countries
 function tep_get_country_list($name, $selected = '', $parameters = '') {
$countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
$countries = tep_get_countries();

for ($i=0, $n=sizeof($countries); $i<$n; $i++) {
  $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);
}

return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters);
 }
?>

Link to comment
Share on other sites

(please excuse my recent ramblings)

Vine,

you are so very right and this point pretty much might leed me to disregard tom's attempt to monopolize and cash in on his contrib (cont help but wonder how much he donates to other contrbutors or osc itself) - however, i'll probably strike out with my own contrib merely because some of the things i desire are indeed fundumentally different from image magic - such as the ability to switch from "on demand" resizing during page request to resizing during upload (with added ability to "pre" resize images already uploaded) - i just don't like the "on demand" resizing -- and also to intergrate many other image features like a 'mor pics that's more sensative to screen resolution, etc. (my introduction into php was with a php image gallery) - i'm just stuned how osc handles images by default (rather nasty) - to cater to those with broadband at this time i can't help but feel is a big mistake - for osc by default to merely create its thumbnails via image attributes is a big minus i feel - etc.....

 

Thanks for taking a look at my posts and trying to come up with something. I agree with you on some of the other functionality that you'd like. I'm pretty familiar with gallery and coppermine and you are right about osc being weak on images. . . what about video???? We're planning on doing lots of video and let me tell you, the contribs for that are few and far between with very limited capability. I guess with time here on the boards, I am learning about osc and the history. . . osc is very focused on the transactions (as it should be) but it has neglected the full feature sets that are required by serious websites. Hence, you get all the great contribs, but there is no cohesion and lots of one-offs and lots of competing contribs. I guess this is what oscMax was trying to do with their fork, but that's a different topic. anyway, hoping that 3.0 will have a lot more standard features. Ease of customization is great but the requirement to heavily customize is a pain. . . more functionality out of the box please.

 

Good luck and let me know when you make that killer image contrib :-)

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

Link to comment
Share on other sites

I'm just noticing there is some activity with knowledgable people , I'm just re-submitting a request I posted a while ago, getting no answer. Is someone capable of installing in Image magic a resharpening capability working with an unsharp mask, configurable in the admin, with the code provided on this site:

 

http://vikjavev.no/computing/ump.php

 

Shopuldn;t be too difficult, but I have no idea where this truecolor image is generated

 

Thank you for your ideas

Link to comment
Share on other sites

OK so am presuming you mean catalog/includes/functions/html_output.php, here's what I have in mine - have I put it in the wrong place?

 

 

That's the file, not sure about you're version as I haven't had a chance to look through (and I'm no [hp expert unlike some here). I'll dig out the post I was refering to - but I may be some time!

Link to comment
Share on other sites

itinerant baker, perhaps you could give us late comers a bit more help - in post #886 above you mention:maybe you could stear us to the post number of the message you refer to

 

What did I let myself in for with that! :rolleyes:

 

After a long treck through the thread, trying from both ends, I think the one I was refering to was #812. Let me know if this works, I think it did for me - iirc it was the best explanation of replacing the tep_image () function. If it's working it might be worth incorporating it with the rest of the instructions as a (very large) find/replace section.

Link to comment
Share on other sites

Hi,

 

I installed the latest contrib. of image magic. There is no bug appear in my pages.

 

But the thing is that I'm not be able to put my own text in my images. I tried to configure the image magic admin. side but it doesn't work for me. Please help me !

 

I include a snapshot of the admin>image and admin>image magic:

 

 

Image Magic Master Switch On

Apply security features to registered customers Yes

Process Store's Graphics False

Auto Clean Cache True

Encrypt Image Filenames True

Filename Encryption Key changeme

Apply Internet Explorer PNG Transparency work-around? False

Use Resampling True

Create Truecolour Thumbnails True

Output GIFs as JPEGs False

'GIF as JPEG' Matte colour (HEX) FFFFFF

Cache Thumbnails on the Server True

Cache Thumbnails in user's browser True

Thumbnail Cache directory /thumbnails

Use 404 Response if image not found? True

Allow thumbnails larger than original True

Center if thumbnail larger than original False

JPEG Quality - Pop-up Images 100

JPEG Quality - Product Information Thumbnails 100

JPEG Quality - Category Thumbnails 100

JPEG Quality - Heading Thumbnails 100

JPEG Quality - Small Thumbnails 100

Graphic Watermark in Pop-up Images No

Graphic Watermark in Product Information Thumbnails No

Graphic Watermark in Category Thumbnails No

Graphic Watermark in Heading Thumbnails No

Graphic Watermark in Small Thumbnails No

Watermark Image File

Image Watermark Transparency 20

Image Watermark Position Top

Image Watermark Margin 0

Resize Watermark Image True

Text Watermark in Pop-up Images Yes

Text Watermark in Product Information Thumbnails Yes

Text Watermark in Category Thumbnails No

Text Watermark in Heading Thumbnails No

Text Watermark in Small Thumbnails No

Watermark Text pcmemory.co.il

Text Watermark Font Name arial.ttf

Text Watermark Size 30

Text Watermark Colour (HEX) 000000

Text Watermark Transparency 20

Text Watermark Position Top

Text Watermark Margin 0

Text Watermark Angle 0

Auto Adjust Brightness 0

Auto Adjust Contrast 0

Frame Pop-up Images No

Frame Product Information Thumbnails No

Frame Category Thumbnails No

Frame Heading Thumbnails No

Frame Small Thumbnails No

Frame Width 4

Frame Depth 4

Frame Colour (HEX) CCCCCC

Frame Inside 3D Highlight Colour (HEX) FFFFFF

Frame Inside 3D Shadow Colour (HEX) 000000

Buttonize Pop-up Images No

Buttonize Product Information Thumbnails No

Buttonize Category Thumbnails No

Buttonize Heading Thumbnails No

Buttonize Small Thumbnails No

Button Height 4

Button Highlight Colour (HEX) CCCCCC

Button Shadow Colour (HEX) 000000

Last Hash (System Use - Read Only) xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 

 

for the image:

 

Small Image Width 80

Small Image Height 60

Heading Image Width 60

Heading Image Height 60

Subcategory Image Width 60

Subcategory Image Height 60

Calculate Image Size true

Image Required false

Product Information Image Width 100

Product Information Image Height 0

 

 

I am new to oscommerce, please help :( Thank you !!!

 

Elazar

Link to comment
Share on other sites

But the thing is that I'm not be able to put my own text in my images. I tried to configure the image magic admin. side but it doesn't work for me. Please help me !

Text Watermark Size 30 - size 30 is too big to fit into the image. try 10 or 12.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Link to comment
Share on other sites

Text Watermark Size 30 - size 30 is too big to fit into the image. try 10 or 12.

 

Ken

 

some servers will just not work for the text watermarking. I tried everything, and nothing shows up. image WM works just fine, so I just designed a png text, that works just the same (and is resizable on top of that)

Link to comment
Share on other sites

Vines and baker, thanks and thanks...

 

baker - i had not known the post you spoke of had been so relatively recent - great to note it - i'll check it out first chance --

 

Vines - Oh yeah - you got me going now :) givin' my schedule i suspect i'll be finished the beta version late this year or early next -- i might even make an installer to automate it's installation - i'm all about being user freindly -- of course such would perform checks and also have a manul install option - my thinking is per haps adding a whole category to the admin > "Images & Media" > hehe - told you, you got me goin - hopfully my schedule will clear up so i can start in on it soon - i'll let you know...

Link to comment
Share on other sites

Has anyone tried using Image Magic on the main image (big image) on the product_info page? I have successfully installed IM and it works great! Now I would like to use IM on the main image on the product info page as some of my images are larger than what I want displayed. The main images (very large) are currently shrinked into the sizes that I have set but are not very clear and are distorted. I have combed this thread but does not look this has ever come up. Any help would be appreciated. Thanks!

Link to comment
Share on other sites

Has anyone tried using Image Magic on the main image (big image) on the product_info page? I have successfully installed IM and it works great! Now I would like to use IM on the main image on the product info page as some of my images are larger than what I want displayed. The main images (very large) are currently shrinked into the sizes that I have set but are not very clear and are distorted. I have combed this thread but does not look this has ever come up. Any help would be appreciated. Thanks!

 

just set ONE dimension: maximum width OR maximum height, but not both, it will work

Link to comment
Share on other sites

Thanks Frenchy - I should have mentioned that I am also using the Best PICS contrib. I set the width in the code of the products_info.php file and not in the admin. Anyway I set only the width and still doesnt work. Im thinking it may be because of the class that is associated with the main pic, class="picselectmain". Does the class have anything to do with IM knowing which images to work on?

 

Thanks again

Link to comment
Share on other sites

Will setting Process Store's Graphics to true do anything for you? If I understand this correctly this processes all the graphics that are part of the shop - though I'ld have thought that it was processing the product info page graphics anyway. Might be worth asking on the Best PICS support thread aswell.

 

baker - i had not known the post you spoke of had been so relatively recent - great to note it - i'll check it out first chance --

 

Neither did I, which was why I first started at the begining! :rolleyes: Even viewing in outline mode the thread is 10 pages long!!!

Link to comment
Share on other sites

Hi, i can't get image working properly, the server info matches the requirements, only no watermark is showing up

 

but there's something strange.

if i go to the admin -> watermark image file -> and i click on the collum change, the collum change dissapears, so i can't select any watermark....

 

The samething happens with text watermark font.

 

All the file are on the server..

 

any thoughts?

Link to comment
Share on other sites

but there's something strange.

if i go to the admin -> watermark image file -> and i click on the collum change, the collum change dissapears, so i can't select any watermark....

 

The samething happens with text watermark font.

 

All the file are on the server..

 

any thoughts?

 

columns disappearing generally means your configuration table may contain elements with the same IDs than some of existing mods, and you have a little contamination. To check this:

 

Check the sql file that you have in the image magic intall files, and take a look at its elements: they all belong to the configuration group 333, with configuration IDs between 3207 and 3259

 

Try to re-run the sql query after having removed all these elements, but double check that all of them belong to 333 first, if one element doesn't belong to 333 and has an ID between 3207 and 3259, this is the bad guy that need to be reassigned another configuration ID to avoid any fursther conflict

Link to comment
Share on other sites

Hi, all the elements in the 333 are in the sql file, there's not another group.

 

But i don't know how to remove the 333 group in phpmyadmin. or to find those elements...

i find mysql a bit difficult to understand.

 

Let me rephrase what I tried to explain (I know it's not easy)

 

all elements from the sql file that came with this install have a 333 configuration group, and this is the way it should be. What may happen is an ALREADY EXISTING mod, in your actual database (NOT IN THIS SQL file), with a parameter with a configuration ID between 3207 and 3259 and that does not have a configuration group id of 333.

 

if you know how to access myphpadmin, look what is in the table configuration (click on the table called "configuration" on the left, then on the tab "browse" at the top to see all teh values. Then sort by configuration_id by clicking on the title of the column.

 

Then, reach the series of values that belong to image magic (in my database, they start around page 4, but may depend on the number of mods you have in your store). Check that all the values between 3207 and 3259 belong to the group 333. If you see one or that is 9are) not assigned to 333, it is more likely that they don't belong to image magic, and their configuration_id must be changed to something which is not already taken (DON'T DELETE IT, just edit them by clicking on the pen icon and assign another number)

 

Then re run the sql statement that came with the installation

 

BACKUP your database before doing anything on it, I am not responsible of any data loss that may occur :-)

Link to comment
Share on other sites

Hi, i can't get image working properly, the server info matches the requirements, only no watermark is showing up

 

but there's something strange.

if i go to the admin -> watermark image file -> and i click on the collum change, the collum change dissapears, so i can't select any watermark....

 

The samething happens with text watermark font.

 

All the file are on the server..

 

any thoughts?

 

This sounds like the same problem I had in admin whenever I selected one of options that had to have a dropdown menu to select from ( watermark image, watermark position, text font and text position) when I would hit edit, the column would disappear. I also checked an checked the database for something that was off, but nada.

 

So it ended up being the code added (from readme/installation v1.14/1.15 step#5) for catalog/admin/includes/functions/general.php - thats what worked for me (because I am using a modified version for cre and everything worked except those functions and I was missing that bit of code added to general.php)

 

May not be the same problem as yours but it sounds similar so I thought I would throw in what worked for me. Hope it helps in some way!

 

And thanks Tom and everyone who has contributed to this contrib, its excellent!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...