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

Actually, got a bit of a weird one. Decided to check everything on my site was ok. All the picture are displaying fine appart from one

 

Any ideas what this means? I've deleted and uploaded the picture again to see if that made any difference, it didn't.

This is the output from when i put the popup pictures full URL in a new page

 

Cheers

 

Daz

 

OK, i found what the problem here was. Basically the name of the picture had a + sign in it, which image magic couldn't handle. I changed the name of the pic and it's now working.

 

Should I/M be able to handle this?

 

Daz

Link to comment
Share on other sites

Becki,

 

The default thumbnails directory is in the catalog directory.

 

Your URL's are no good as they are to your localhost and will not display foranyone here.

 

Daz,

I put the url's in just to show that some did have the i/m bit in and the others didn't?

 

so catalog\thumbnails is correct? It wasn't there - i created in but made no change?

 

Any ideas?

 

Thanks

Link to comment
Share on other sites

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="it">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Retrovisione Clarion CJ981E</title>
<base href="http://www.onoff-hifi.com/">

<script language="JavaScript">
<!--

function SymError()
{
 return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
 return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

<script language="javascript"><!--
var i=0;
function resize() {
 if (navigator.appName == 'Netscape') i=40;
 if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);
 self.focus();
}
//--></script>
</head>
<body onload="resize();">
<img src="imagemagic.php?img=n9rMz8%2Fcl9PO0Mzloahll6LO3dHZ15eys6OjoXpioKSd&w=250&h=250&page=popup" width="250" height="250" border="0" alt="Retrovisione Clarion CJ981E" title="Retrovisione Clarion CJ981E"></body>
</html>

<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;

function SymOnUnload()
{
 window.open = SymWinOpen;
 if(SymRealOnUnload != null)
 SymRealOnUnload();
}

function SymOnLoad()
{
 if(SymRealOnLoad != null)
 SymRealOnLoad();
 window.open = SymRealWinOpen;
 SymRealOnUnload = window.onunload;
 window.onunload = SymOnUnload;
}

SymRealOnLoad = window.onload;
window.onload = SymOnLoad;

//-->
</script>

 

Hello, I have a problem. My popup images won't show up. I have the imagemagic.php as source but nothing.

Everything works fine when I switch the contrib off. But no images when it's on. Any idea?

Thanks

Link to comment
Share on other sites

Sorry,

I think it was the Ultima SEO URLS messing up

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="it">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Retrovisione Clarion CJ981E</title>
<base href="http://xxx.xxxx.xxx/">

<script language="JavaScript">
<!--

function SymError()
{
 return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
 return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

<script language="javascript"><!--
var i=0;
function resize() {
 if (navigator.appName == 'Netscape') i=40;
 if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);
 self.focus();
}
//--></script>
</head>
<body onload="resize();">
<img src="imagemagic.php?img=n9rMz8%2Fcl9PO0Mzloahll6LO3dHZ15eys6OjoXpioKSd&w=250&h=250&page=popup" width="250" height="250" border="0" alt="Retrovisione Clarion CJ981E" title="Retrovisione Clarion CJ981E"></body>
</html>

<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;

function SymOnUnload()
{
 window.open = SymWinOpen;
 if(SymRealOnUnload != null)
 SymRealOnUnload();
}

function SymOnLoad()
{
 if(SymRealOnLoad != null)
 SymRealOnLoad();
 window.open = SymRealWinOpen;
 SymRealOnUnload = window.onunload;
 window.onunload = SymOnUnload;
}

SymRealOnLoad = window.onload;
window.onload = SymOnLoad;

//-->
</script>

 

Hello, I have a problem. My popup images won't show up. I have the imagemagic.php as source but nothing.

Everything works fine when I switch the contrib off. But no images when it's on. Any idea?

Thanks

Edited by wheeloftime
Link to comment
Share on other sites

Hi guys, i've installed the contribution as explained in the readme file and everything seems fine, except that the images are not showing now. The url however shows "imagemagic.php" in it, but no image. If I turn Imagemagic OFF, the images work.

 

Did I miss something while installing? I've checked the readme files again, but don't see anything wrong.....

 

I'd appreciate any help. I've seen this work on other sites and think it's a super cool contribution.

 

Thankx,

 

Rusty

"Sometimes doing the right thing isn't doing the right thing"

Link to comment
Share on other sites

Daz,

I put the url's in just to show that some did have the i/m bit in and the others didn't?

 

so catalog\thumbnails is correct? It wasn't there - i created in but made no change?

 

Any ideas?

 

Thanks

 

 

That's right, although you can change it in the admin section.

 

Did you change the permissions to 777 on the thumbnails directory?

 

webmaster - have you created the thumbnails directory and changed the permission of it?

Link to comment
Share on other sites

Hello,

make sure the thumbnails folder is chmod 777

then, unzip the html_output file to restore the original file of imagemagic

It may work. It worked for me.

 

Hi guys, i've installed the contribution as explained in the readme file and everything seems fine, except that the images are not showing now. The url however shows "imagemagic.php" in it, but no image. If I turn Imagemagic OFF, the images work.

 

Did I miss something while installing? I've checked the readme files again, but don't see anything wrong.....

 

I'd appreciate any help. I've seen this work on other sites and think it's a super cool contribution.

 

Thankx,

 

Rusty

Link to comment
Share on other sites

Great contribution!

I have few comments on it

 

It could be improved. I have made some changes on my own server.

 

1?) Performance could be improved. Each time an image is called by imagequick.php, it grabs some data from the database. That reduces massively the performance for the website. I have tested it.... you save definitely space but not time.

 

To fix this, do not use encrypt filename functionality + add some codes to load the image instead of calling imagequick.php. Of course, by doing this you lose some functionalities brought by image quick.

 

 

2?) Crop capability is missing. So when you do some thumbnails with a specified width and length, the image gets distorted. So definitely an alternative 'Crop' function should be proposed.

 

 

Anyway, great contrib! I am using it. Hope it's getting better.

 

 

To fix issue 1, add following to html_output.php

 

//ADDON DAVE
   if ($page=="prod_info" || $page =="popup"){

	$page_prefix=$page."prod_info_";
   }
	  $last_hash=LAST_HASH;
	$fileextension = strtolower(substr(trim($src), -3));
	$myfilename = CFG_TN_CACHE_DIRECTORY."/".$src.'.thumb_'.$page_prefix.$width."x".$height."_".$last_hash.'.'.$fileextension;
//	echo $myfilename;
	if (file_exists($myfilename))
		$image = '<img src="'.$myfilename.'" ';
	else
//EOF ADDON DAVE

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

 

NB: If you use configure cache, you will have to save twice in the config so 'LAST_HASH' get saved correctly

Edited by demoalt
Link to comment
Share on other sites

That's right, although you can change it in the admin section.

 

Did you change the permissions to 777 on the thumbnails directory?

 

webmaster - have you created the thumbnails directory and changed the permission of it?

 

I am developing on localhost so i presume I don't have to worry about the permissions - or do I?!

 

I understand that the permission numbers '777' are used to specify a level of access? As I have not uploaded before is this just something to worry about then? Sorry for my lack of knowledge!

Link to comment
Share on other sites

Hello,

make sure the thumbnails folder is chmod 777

then, unzip the html_output file to restore the original file of imagemagic

It may work. It worked for me.

 

 

LoLoL and Daz,

 

Thanx for the reply and help. I had to create the "thumbnail" folder. I thought it was automatically created, but I was wrong... :-"

 

It's not showing the default OSC pictures, which is cool (I'm deleting them anyways). New products do show though!! :thumbsup:

 

Thanx again guys!

"Sometimes doing the right thing isn't doing the right thing"

Link to comment
Share on other sites

I lost my alt tags contents ( $products_name) since I installed Image Magic. Similar issues anybody?

 

Thanks!

I am using IM on three different sites and still have alt tags on all three.

Link to comment
Share on other sites

I installed the default image part of this contribution. This ONLY calls images whose filenames don't exist within the images folder. If no image is specified (field left blank), then you still get the red X. Does anyone have a work-around for this?

Edited by pnkranger
Link to comment
Share on other sites

This is only my 3rd post in as many months since I've found that errors can be fixed by reading the posts on the forums. I have spent 3 weeks on this one issue alone. I've read and read and read. I've tried to implement the Ultra-pics hack (on page 3?, 4? of this thread...) to get I/M to work with More Pics 6.

 

I even made some code up. More Pics is not being fully processed by i/m.

 

In this post, http://www.oscommerce.com/forums/index.php?s=&...ndpost&p=810862, Mike25 asks:

 

i am experiencing problem depending on the More Pics contribution. do u use it too?

 

the fact is that i left original image in product info untouched and on the bottom of product info i show other pictures if they are available - those are not shown.

 

anybody had the same problem?

 

Yes, Mike25. Yes.

 

Here, http://www.oscommerce.com/forums/index.php?s=&...ndpost&p=802579, NeilS tells us that he has

....... installed this Contrib and the Mo Pics 6 contrib, so yes, it will work with multiple images

 

Neil

 

 

How, exactly. Please, a little hint.

 

And here, http://www.oscommerce.com/forums/index.php?s=&...ndpost&p=792139, is HallMarc getting verbose about what he needed to do to get More Pics to work as well:

 

Yes I remember the trouble you posted about the watermarking. You are a soldier my friend. Determination is definitely one of your stronger qualities. Read through this thread again, I know I found the instructions for getting the watermarking to work with more pics contribution. I also remember having to find the original contribution for more pics before WYSIWYG was added to it and I also remember having to remove a lot of the sections in the more pics contribution so that I only uploaded one image for each of the additional pics I wanted and let Image Magic do the rest. you can see a sample of this on my test site. PM me and I will send you the link.

 

 

And another teaser by HallMarc about the more pics hack always hinted at in this thread yet not to be found.

http://www.oscommerce.com/forums/index.php?s=&...ndpost&p=787353

 

 

I do have to say that I have the More Pics mod installed too and I rewrote the code to work like I want it to.

 

younameme got his more pics to work too!! Wow would you look at that. How'd he Do That??

http://www.oscommerce.com/forums/index.php?s=&...ndpost&p=768695

I found the problem at last. It turned out that in the javascript code the ending } of the popupwindow function was missing... Dunno why or how, but anyway.

 

Then I had a different problem, Image Magic didn't work on the popup image.

But it turned out, as I was afraid of, the contribution "More Pics 6" had faulty/bad coding. Just a quick fix, and it's working perfect!

 

At last I will thank the man/woman behind this contribution! It's great!

 

 

Regards,

 

Oyvind Eriksen

 

 

I've done extensive searches in the whole support forum(s) for this elusive and top secret work around to make more pics and i/m to work as friends and partners instead of rivaling siblings..... and have just found I've wasted a lot of my time.

 

Can someone help point me in the right direction so that this exquisite hell can come to an end?

 

thanks,

Zoe

Link to comment
Share on other sites

This is the support thread for the 'Image Magic' contribution.

If you are having difficulties installing or using this contribution, your first port of call should be the readme file contained within the package or available online in its most recent form:

here

 

Next, you should make sure you have the most up-to-date version of the contribution.

 

And lastly, read this thread to see if someone else has solved the issue.

 

If you are still having problems, then feel free to post here.

 

The store that I want to install Image Magic on is accessed by typing www.yourstore.com, not www.yourstore.com/catalog.

 

So my question is: Where must I change reference to my root directory in order to have this contribution work properly?

 

Help woud be appreciated.

Link to comment
Share on other sites

Currently, only one product has more than one image to display - out of the whole catalog. BUT, if More Pics and I/M can get working nicely together - more images will be displayed for each product.

 

More Pics creates a variable ($mopics_images) that is counted ($mo_item++) to create the array for the (more pics) module.

 

I/M recognises both images and processes the image(s) into thumbnails but I/M is applying the PROD_INFO params to only one of the product info thumbnails. The second thumbnail is applied the SMALL_IMAGE params, as though it were listed on the products page - instead of the product info page.

 

Product Seen Here

Link to comment
Share on other sites

Hiya

 

Guess what...I have a problem where the images are not being displayed. Read all 26 pages of this and still can't fix it :-(

 

Details are as follows:

 

It's a windows 2000 server running iis

 

When I/M is turned off the images are displayed ok. Turn it on and i get the Broken Images thingy. Look at the propertys and it is pointing to:

 

http://shop.compwise.co.uk/catalog/imagema...&page=prod_info

 

Also nothing is created in the thumbnail folder.

 

I HAVE A THUMBNAILS folder in the catalog folder and it is set to read/write

 

I have set small image height = 100 and small image width = 0 in admin\images

 

I have tried this with and without server caching

 

I have a trailing slash at the end of my DIR_FS_CATALOG however im not 100% sure that i have the correct value specified in there. I have the complete path c:/....../oscommerce/catalog/ . Is that correct?

 

the site can be found at http://shop.compwise.co.uk (simply click yes to the ssl warnings)

 

Also, not everything has an image. Try going into the COMMS\NETWORKING - PRINT SERVER\SHARING category as these should all have images.

 

please help............................................................................

....... ;-)

Link to comment
Share on other sites

What would be the reason that image watermarking works just fine, but text watermarking doesn't? Can't figure out.

 

thank you for your suggestions!

 

By the way, for these who have problems with the MorePics MOD popip image not displaying watermarking, you have to change in catalog/popup_image.php:

 

Look for:

 

 

$img = DIR_WS_IMAGES . $insert;
echo '<tr><td align="center"><img src="' . $img . '"></td>';

 

 

and replace by;

 

$img = DIR_WS_IMAGES . $insert;
echo '<tr><td align="center">' . tep_image ($img) . '</td>';

Edited by pixclinic
Link to comment
Share on other sites

Hi Guys out there, hi Tom,

 

have a question.

A friend of mine had a look at my site and he did not see an image.

In my own browser I can see all, and all is working well.

We figured out, that he has a contrib installed for his firefox browser, that disable all Scriptfunctions.

 

The result was, that all images were directly accessable, although I have encryption enabled to hide my path.

 

Do you know a workaround to this problem ?

 

Regards

Andreas

Link to comment
Share on other sites

Hi,

 

I installed this contribution. I have a red X when I try to enable the ImageMagic. I have a thumbnails folder in my root since my catalog files are in my root with chmod 777. Does anybody have any ideas what's wrong?

 

Thanks!

Link to comment
Share on other sites

Hi,

 

I installed this contribution. I have a red X when I try to enable the ImageMagic. I have a thumbnails folder in my root since my catalog files are in my root with chmod 777. Does anybody have any ideas what's wrong?

 

Thanks!

 

Question: If the images are in different folders, do I have to change any code? Most people have their images in images/ but I have mine in images/images/folder1.

 

If this is the problem, I would appreciate if somebody could direct me to the solution. Thanks!

Link to comment
Share on other sites

Since support for this mod seems to be non-existent, I removed the more pics mod and installed ultra-pics instead.

 

(w00t) What a bloody waste of valuable time. (w00t)

Link to comment
Share on other sites

Since support for this mod seems to be non-existent, I removed the more pics mod and installed ultra-pics instead.

 

(w00t) What a bloody waste of valuable time. (w00t)

 

This is not true and correct !! :angry:

I dont know, if Tom is supporting his contrib any further (I hope), but I know, that Ultra-Pics is totally different to Image magic.

 

I have both working parallel; UP is for displaying more pics and Image magic is for thumbnailing.

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