Jump to content
Sign in to follow this  
tomjmul

Support thread for the Image Magic contribution

Recommended Posts

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.

 

Doing some further digging into include/functions/html_output.php, it is clear that this is the code that writes the image size on the product_info.php page, and for whatever reason, this code predominates over the boxes code. Basically, this is a "feature" and not a "bug." The problem will only occur on the product_info.php page when the product_id is the same for the product page as well as either of the reviews or specials boxes.

 

Interestingly, if the boxes are on the left, then the bug doesn't appear. I can switch my boxes using infobox admin. I'm guessing that this behavior would be due to the sequential build of the page and that the boxes on the left are "built" prior to the product box in the main column. It seams to me that there should be an easy enough fix to make the html_output code work exclusively on one instance of the image and not on subsequent calls. . but this is beyond my ability.

 

  //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"; 
	}
 }


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

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:maybe you could stear us to the post number of the message you refer toi 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)...

 

I also wondered about that post. I have tried most of the image management contribs and I settled on this one. It installed pretty easily and it works well enough despite a few bugs. I haven't been able to piece the backstory together as I've just been using OSC for a few weeks, but I guess the original producer of this contrib has disappeared. Despite his disappearance and the bugs, it's a great contrib when it's working.

 

Rather than start a whole new project, isn't it possible to pick up on Image Magic where the original producer left off? Why recreate the wheel, assuming the core functionality and system with this contrib is sound? I may be treading on proprietary or open source etiquette, but I thought the whole point of open source was that anyone can modify or change the base code. Maybe a group could pick Image Magic back up? Call it a "fork."

Edited by Vines

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

Share this post


Link to post
Share on other sites

Vines,

 

here's an odd idea for a workaround...

 

SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT are both stored in the database -- however you can bypass them or merely use them as is and apply a different method to retrive width and height for other desired dimensions...

 

note how and where BOX_WIDTH is stored (BOX_WIDTH is used for the side boxes of course) - in /includes/application_top.php:

// customization for the design layout
 define('BOX_WIDTH', 140); // how wide the boxes should be in pixels (default: 125)

i actually added a new definition here so i could have different sized boxes on the left:

// edited customization for the design layout - column left
 define('BOX_WIDTH_LEFT', 180); // how wide the boxes on the left should be in pixels

then i performed a serach on all the files in my catalog and changed 'BOX_WIDTH' to 'BOX_WIDTH_LEFT' where applicatable...

 

this means that there would be no need to modify the database to add extra image sizes you speak of - instead you could ...........

 

nevermind (ignore above) here's the trouble...

 

in imagemagic.php:

// Get the type of thumbnail we are dealing with
if ( $_GET['w']== SMALL_IMAGE_WIDTH || $_GET['h'] == SMALL_IMAGE_HEIGHT) $thumbnail_size=1;
elseif ($_GET['w'] == HEADING_IMAGE_WIDTH || $_GET['h'] == HEADING_IMAGE_HEIGHT) $thumbnail_size=2;
elseif ($_GET['w'] == SUBCATEGORY_IMAGE_WIDTH || $_GET['h'] == SUBCATEGORY_IMAGE_HEIGHT) $thumbnail_size=3;

if ($_GET['page'] == "prod_info") {
  $thumbnail_size=4;
  $page_prefix = $page ."prod_info_";
}
if ($_GET['page'] == "popup") {
  $thumbnail_size=5;
  $page_prefix = $page ."prod_info_";
}

then $thumbnail_size gets processed in the code that follows - note how the latter "if statements" change the value of $thumbnail_size -- such as if $_GET['w'] equals SMALL_IMAGE_WIDTH then $thumbnail_size equals the value of 1 --- but later if $_GET['page'] equals prod_info the value of $thumbnail_size gets changed to 4 tossing out the previous value of 1 that indicated SMALL_IMAGE_WIDTH...

 

let me look into this....

Share this post


Link to post
Share on other sites

hmmm - maybe my whole last post is a nevermind - i gotta look into this thing more...

 

let me read your last posts (Vine) - they were posted while i wasn't looking :)

Edited by squeekit

Share this post


Link to post
Share on other sites

(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.....

Share this post


Link to post
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...

Share this post


Link to post
Share on other sites
Interestingly, if the boxes are on the left, then the bug doesn't appear.

 

Interesting, I'll give that a try ^_^

 

Cheers!

Share this post


Link to post
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).

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

 

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);
 }
?>

Share this post


Link to post
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 :-)


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

Share this post


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

Share this post


Link to post
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!

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: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.

Share this post


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

Share this post


Link to post
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.

Share this post


Link to post
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)

Share this post


Link to post
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...

Share this post


Link to post
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!

Share this post


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

Share this post


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

Share this post


Link to post
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!!!

Share this post


Link to post
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?

Share this post


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

Share this post


Link to post
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.

Share this post


Link to post
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 :-)

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  

×