Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Support thread for the Image Magic contribution


tomjmul

Recommended Posts

I have read all the threads over and over. I have seen similar problems but none of the fixes seem to work for me. My images do not appear. The image properties indicate imagemagic.php, but when I copy the link to the browser i get the following line and then some.

 

Notice: Undefined variable: config_values in C:\Accounts\accountname\wwwRoot\storename\imagemagic.php on line 29

 

I am using the windows platform.

Any suggestions? Anyone? Thanks.

 

Website address

http://von-e.com/mujer

Link to comment
Share on other sites

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

I have read all the threads over and over. I have seen similar problems but none of the fixes seem to work for me. My images do not appear. The image properties indicate imagemagic.php, but when I copy the link to the browser i get the following line and then some.

 

Notice: Undefined variable: config_values in C:\Accounts\accountname\wwwRoot\storename\imagemagic.php on line 29

 

I am using the windows platform.

Any suggestions? Anyone? Thanks.

 

Website address

http://von-e.com/mujer

 

By the way the picture properties shows the type and size as not available. My thumbnails folder got created automatially and it contains the created thumbnails. They look great, they just do not show up on the site.

Edited by mexiace
Link to comment
Share on other sites

One thing, that is niggling me a bit.

 

In the readme, I asked that if you find the contribution useful to please consider giving a link to a new site of mine so as to help with the google back-links and try to increase my page ranking a little bit.

 

It was of course a request and not a requirement or anything like that and I know that some people's sites would not be suitable to carry the link. I did not ask for donations or anything else of that nature, I just thought at least a few people might be kind enough to link me in what might be called the 'community spirit'.

 

I reckon image magic's downloads are now in the thousands and in addition to the many hours developing it, I have spent countless more supporting it in this thread, including going to people's sites and fixing the problems myself.

 

Now, if you want to see something really funny, click this link:

 

http://www.google.co.uk/search?hl=en&safe=...www.kitwear.com

 

I did not write this contribution for any reason other than to give something back to the osc community and that is what I've done and have no regrets. However, I will say that my impetus to break my back helping people out with it has certainly waned.

OSC Image Magic

On-the-fly thumbnails, watermarks and image processing

Link to comment
Share on other sites

One thing, that is niggling me a bit.

 

In the readme, I asked that if you find the contribution useful to please consider giving a link to a new site of mine so as to help with the google back-links and try to increase my page ranking a little bit.

 

It was of course a request and not a requirement or anything like that and I know that some people's sites would not be suitable to carry the link. I did not ask for donations or anything else of that nature, I just thought at least a few people might be kind enough to link me in what might be called the 'community spirit'.

 

I reckon image magic's downloads are now in the thousands and in addition to the many hours developing it, I have spent countless more supporting it in this thread, including going to people's sites and fixing the problems myself.

 

Now, if you want to see something really funny, click this link:

 

http://www.google.co.uk/search?hl=en&safe=...www.kitwear.com

 

I did not write this contribution for any reason other than to give something back to the osc community and that is what I've done and have no regrets. However, I will say that my impetus to break my back helping people out with it has certainly waned.

 

 

Not to defend anyone, If I may,

 

I am sure there are people out there that have your contribution working and have honored your request in placing a link to your site. I have noticed lately, I have been trying to get my new site in google and it does not seem to get listed. It has been months. I do not think your links are going to show if our sites do not show. If you want to see something really funny try this:

 

http://www.google.com/search?hl=en&q=mujerdehogar.com

 

Just FYI

Link to comment
Share on other sites

One thing, that is niggling me a bit.

 

In the readme, I asked that if you find the contribution useful to please consider giving a link to a new site of mine so as to help with the google back-links and try to increase my page ranking a little bit.

 

It was of course a request and not a requirement or anything like that and I know that some people's sites would not be suitable to carry the link. I did not ask for donations or anything else of that nature, I just thought at least a few people might be kind enough to link me in what might be called the 'community spirit'.

 

I reckon image magic's downloads are now in the thousands and in addition to the many hours developing it, I have spent countless more supporting it in this thread, including going to people's sites and fixing the problems myself.

 

Now, if you want to see something really funny, click this link:

 

http://www.google.co.uk/search?hl=en&safe=...www.kitwear.com

 

I did not write this contribution for any reason other than to give something back to the osc community and that is what I've done and have no regrets. However, I will say that my impetus to break my back helping people out with it has certainly waned.

 

 

I found this with a link to your site since October 2005. Why is it that it is not listed in google links?

 

http://www.oscommerce.com/forums/index.php?showtopic=178211

Link to comment
Share on other sites

I've just installed Image Magic and have one problem. The "Click to enlarge" function on the pictures has stopped working. IE says that "Object expected". I've checked the code and everything looks alright, so I'm kinda lost... Can anyone help? TIA!

 

Regards,

 

Oyvind Eriksen

Link to comment
Share on other sites

I could have provided a link for yahoo, msn, altavista etc, etc all with the same result.

 

Anyway, never mind me, I'm just in a bit of a bad mood today and thought I'd get it off my chest.

OSC Image Magic

On-the-fly thumbnails, watermarks and image processing

Link to comment
Share on other sites

Hi,

 

first thanks for you contribution to OSC.

 

I tried to install your product today but without success. The install process went through without a problem, but I really cannot make it work in the shop.

 

Here's the URL : http://www.marvelous.ch/store/

(yes I have decided to rename the "catalog" folder to "store")

 

 

When I switch the Magic Image Master Switch to Off, everything goes like before, very well. But when it is on, all my categories/products images are down.

 

For now, during the insrtallation, I kept the demo products in the shop. So here is one of the "img" tag that I get on one of the pages :

<img src="imagemagic.php?img=images/matrox/mg400-32mb.gif&w=100&h=80&page=" width="100" height="80" border="0" alt="Matrox G400 32MB" title="Matrox G400 32MB">

 

I've created by myself the thumbnails directory (in several places because I didn't know where the reference was, the domain or the "store" folder (="catalog" folder in standard install).

 

Here's also the config of the Admin -> Configuration -> Image Magic :

Image Magic Master Switch = Off ; Process Store's Graphics = False ; Auto Clean Cache = True ; Encrypt Image Filenames = False ; 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 = Center ; Image Watermark Margin = 0 ; Resize Watermark Image = True ; Text Watermark in Pop-up Images = No ; Text Watermark in Product Information Thumbnails = No ; Text Watermark in Category Thumbnails = No ; Text Watermark in Heading Thumbnails = No ; Text Watermark in Small Thumbnails = No ; Watermark Text = Sample ; Text Watermark Font Name = betsy.ttf ; Text Watermark Size = 13 ; Text Watermark Colour (HEX) = 000000 ; Text Watermark Transparency = 15 ; Text Watermark Position = Center ; 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) = 220c46f8b9d027f4fde2863cd49e3238

 

And the config of the Admin -> Configuration -> Images :

Small Image Width = 100; Small Image Height = 80; Heading Image Width = 57; Heading Image Height = 40; Subcategory Image Width = 100; Subcategory Image Height = 57; Calculate Image Size = true; Image Required = true; Product Information Image Width = 101; Product Information Image Height = 0

 

Thanks in advance for help.

 

Best regards,

 

Pascal Rosse

Link to comment
Share on other sites

Hi,

 

first thanks for you contribution to OSC.

 

I tried to install your product today but without success. The install process went through without a problem, but I really cannot make it work in the shop.

 

Here's the URL : http://www.marvelous.ch/store/

(yes I have decided to rename the "catalog" folder to "store")

When I switch the Magic Image Master Switch to Off, everything goes like before, very well. But when it is on, all my categories/products images are down.

 

For now, during the insrtallation, I kept the demo products in the shop. So here is one of the "img" tag that I get on one of the pages :

<img src="imagemagic.php?img=images/matrox/mg400-32mb.gif&w=100&h=80&page=" width="100" height="80" border="0" alt="Matrox G400 32MB" title="Matrox G400 32MB">

 

I've created by myself the thumbnails directory (in several places because I didn't know where the reference was, the domain or the "store" folder (="catalog" folder in standard install).

 

Here's also the config of the Admin -> Configuration -> Image Magic :

Image Magic Master Switch = Off ; Process Store's Graphics = False ; Auto Clean Cache = True ; Encrypt Image Filenames = False ; 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 = Center ; Image Watermark Margin = 0 ; Resize Watermark Image = True ; Text Watermark in Pop-up Images = No ; Text Watermark in Product Information Thumbnails = No ; Text Watermark in Category Thumbnails = No ; Text Watermark in Heading Thumbnails = No ; Text Watermark in Small Thumbnails = No ; Watermark Text = Sample ; Text Watermark Font Name = betsy.ttf ; Text Watermark Size = 13 ; Text Watermark Colour (HEX) = 000000 ; Text Watermark Transparency = 15 ; Text Watermark Position = Center ; 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) = 220c46f8b9d027f4fde2863cd49e3238

 

And the config of the Admin -> Configuration -> Images :

Small Image Width = 100; Small Image Height = 80; Heading Image Width = 57; Heading Image Height = 40; Subcategory Image Width = 100; Subcategory Image Height = 57; Calculate Image Size = true; Image Required = true; Product Information Image Width = 101; Product Information Image Height = 0

 

Thanks in advance for help.

 

Best regards,

 

Pascal Rosse

 

I have the same problem. I renamed everything to the original catalog directory. Still did not work. I am about to give up on it. Anyone else know another similar contribution? I am only looking for better thumbnail quality. Thanks.

Link to comment
Share on other sites

Now, if you want to see something really funny, click this link:

 

http://www.google.co.uk/search?hl=en&safe=...www.kitwear.com

 

hey tom, i don't know if it'll make ya feel better or not, but i have never seen the "links:" command on google show up if the link is from anything less than a pr4 page, and it seems to be generally accepted as fact, if this thread: http://www.frontpagewebmaster.com/m-206033/tm.htm is any indication.

 

i'm linked to you here:

http://www.paganality.com/faq-About_the_co...edits_.html#125 because your contribution to my site (when it worked :) ... is much greater than those who get "links".

-dd

Link to comment
Share on other sites

hi tom, this is chris from sports cards zone and i was wondering if you could help me with this error i seem to have .

 

Fatal error: Call to undefined function: imagettfbbox() in /mnt/web_e/d29/s07/b025f8b6/www/SportsCardsZone/nfoscomm/catalog/imagemagic.php on line 526

 

and about the google thing they suk anyways cus ive been trying to get in their for months and the only way i get in it with adwords but with yahoo (which i recommend) indexed me within a few weeks. try using IBP (internet business promoter) sends your site and meta tages to search engins around the world. thanks tome i hope to hear from you soon. i onlyget this error when trying to use a text watermark and i cant seem to get the graphic ones to work either. www.sportscardszone.com

Link to comment
Share on other sites

Hi Tom,

 

Just spent an hour or so reading through this thread because I'm working on an osC site and I am planning on using this contrib.

 

I'm amazed at the quality of the contrib and support. Just wanted to say that in all of my sites, the referrer logs paint a much different picture than the google "link:" query.

 

I'd imagine if you looked in your logs you'd find a lot of linking sites. I'm planning on trying out the (relatively) new "Google Analytics" service as it looks like a great analysis service. If you haven't seen it you can read more about it here. Looks really nice, and it's *free*.

 

Cheers,

Chris

Link to comment
Share on other sites

allrighty...

rewound all the way to my oldest backup.

(i figure i need to get this working first)

 

it looks to me like the problem is that my html_output was changed sometime in the past and does not do what it's supposed to do.

 

i went and downloaded osc, pulled the html_output.php file out of it, and it doesn't work on my site.

the version numbers are identical, but the code has differences.

 

when i try to run the new file i downloaded i get:

(PHP Fatal error: Call to undefined function: tep_prod_thumb()

in /usr/home/paganality/web/catalog/product_info.php on line 110, referer:

http://www.paganality.com/catalog/household-c-213.html )

 

and it in fact doesn't contain tep_prod_thumb at all.

 

here's the paerts of my file i think are changed/broken/whatever:

(if someone can e mail me their file i would be especially greatful)

 

//EOF Image Magic

 

function tep_prod_thumb($model, $alt = '', $width = '', $height = '', $parameters = '') {

$src="/i/p/t/".strtolower($model).".jpg";

if(!file_exists("..$src"))

$src="/i/p/t/nothumb.jpg";

 

// alt is added to the img tag even if it is null to prevent browsers from outputting

// the image filename as default

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

 

if (tep_not_null($alt)) {

$image .= ' title=" ' . tep_output_string($alt) . ' "';

}

 

if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) {

if ($image_size = @getimagesize("..$src")) {

if (empty($width) && tep_not_null($height)) {

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

$width = $image_size[0] * $ratio;

} elseif (tep_not_null($width) && empty($height)) {

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

$height = $image_size[1] * $ratio;

} elseif (empty($width) && empty($height)) {

$width = $image_size[0];

$height = $image_size[1];

}

} elseif (IMAGE_REQUIRED == 'false') {

return false;

}

}

 

if (tep_not_null($width) && tep_not_null($height)) {

$image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"';

}

 

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

 

$image .= '>';

 

return $image;

}

 

 

////

// 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('/i/c/c/' . $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;

}

 

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

 

anyone have any suggestions? :/

(there are tons of changes to this site to make it interface with postnuke, so i can't just "upgrade", but none of those chages are in this file, these look like they were to put the catalog images in /i/p/* instead of where they are)

 

admin says it's 2.2-ms2, but i can't find any build number?

 

help :'(

-dd

Link to comment
Share on other sites

(PHP Fatal error: Call to undefined function: tep_prod_thumb()

in /usr/home/paganality/web/catalog/product_info.php on line 110, referer:

http://www.paganality.com/catalog/household-c-213.html )

 

okay, i replaced both product_info.php and html_output.php from the install files i found online,

then i added the image magic code, and it seems to be working! :)

 

well, except that i apparently can no longer buy anything. (no options to do so)

*sigh*

-dd

Link to comment
Share on other sites

okay, i replaced both product_info.php and html_output.php from the install files i found online,

then i added the image magic code, and it seems to be working! :)

 

well, except that i apparently can no longer buy anything. (no options to do so)

*sigh*

-dd

 

interesting...

apparrently if a button is missing, i.e. just doesn't show anything at all.

(had to copy my button directory to the new path, and as soon as i did the missing "add to cart" button appeared).

 

thanks for all the help guys!

 

(and special thanks to tom, love the contribution, and i'm linking all my other sites to you also)

-dd

Link to comment
Share on other sites

I've just installed Image Magic and have one problem. The "Click to enlarge" function on the pictures has stopped working. IE says that "Object expected". I've checked the code and everything looks alright, so I'm kinda lost... Can anyone help? TIA!

 

Regards,

 

Oyvind Eriksen

 

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

Link to comment
Share on other sites

Hi,

 

first thanks for you contribution to OSC.

 

I tried to install your product today but without success. The install process went through without a problem, but I really cannot make it work in the shop.

 

Here's the URL : http://www.marvelous.ch/store/

(yes I have decided to rename the "catalog" folder to "store")

When I switch the Magic Image Master Switch to Off, everything goes like before, very well. But when it is on, all my categories/products images are down.

 

For now, during the insrtallation, I kept the demo products in the shop. So here is one of the "img" tag that I get on one of the pages :

<img src="imagemagic.php?img=images/matrox/mg400-32mb.gif&w=100&h=80&page=" width="100" height="80" border="0" alt="Matrox G400 32MB" title="Matrox G400 32MB">

 

I've created by myself the thumbnails directory (in several places because I didn't know where the reference was, the domain or the "store" folder (="catalog" folder in standard install).

 

Thanks in advance for help.

 

Best regards,

 

Pascal Rosse

 

try uploading some JPG files, instead of GIF. My shop contains both, however there is no problem with JPGs, but GIFs seem like yours.

Link to comment
Share on other sites

try uploading some JPG files, instead of GIF. My shop contains both, however there is no problem with JPGs, but GIFs seem like yours.

 

Hi Expert,

 

unfortunately it doesn't work. If I cannot find the reason why it's not working, I'll have to reinstall all my old stuff.

 

It's working in a way, because all the thumbnails are created in the thumbnail folder.

But I still have 2 problems :

1) images not working on the site

2) all the thumbnails created cannot be removed or chmod with FTP. It says I do not have permission to do that in my FTP account. What does that mean ?

 

Pascal

Link to comment
Share on other sites

1) images not working on the site

2) all the thumbnails created cannot be removed or chmod with FTP. It says I do not have permission to do that in my FTP account. What does that mean ?

 

 

For Case 2, I was able to delete the thumbnail directory directly from OSC Admin. It was impossible with my usual FTP Client.

 

For Cas 1, I have news. Everything seems to work correctly except the fact that the images files are not created correctly. Here's what is written in the beginning of my gif file (before the image information) if I open it in a text editor :

 

<br />

<b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/www/4fa0adc1e7a0ee460744f85f9b4fbc0a/web/store/imagemagic.php</b> on line <b>269</b><br />

<br />

<b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/www/4fa0adc1e7a0ee460744f85f9b4fbc0a/web/store/imagemagic.php</b> on line <b>270</b><br />

<br />

<b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/www/4fa0adc1e7a0ee460744f85f9b4fbc0a/web/store/imagemagic.php</b> on line <b>271</b><br />

<br />

<b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/www/4fa0adc1e7a0ee460744f85f9b4fbc0a/web/store/imagemagic.php</b> on line <b>272</b><br />

<br />

<b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/www/4fa0adc1e7a0ee460744f85f9b4fbc0a/web/store/imagemagic.php</b> on line <b>273</b><br />

<br />

<b>Warning</b>: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in <b>/home/www/4fa0adc1e7a0ee460744f85f9b4fbc0a/web/store/imagemagic.php</b> on line <b>274</b><br />

 

 

 

So it looks like that the deprecated warnings are directly stored in the image file. That's a big problem. How can I resolve this warning problem. I don't want it to be displayed.

 

Best regards,

 

Pascal

Link to comment
Share on other sites

I've resolved the problem temporarily by removing (via comments) the lines number 269 to 274. For now I'm not using these functions but it would be appreciated to find a way for this to work without these warnings.

 

If someone can help, it would really be appreciated.

 

Best regards,

 

Pascal

Link to comment
Share on other sites

Hi,

 

thanks for this great contrib, I'm trying it now and it seems to work like a charm.

 

However, I'm puzzled as to why you didn't include the little code snipet that can make it behave when both width *and* height are given for thumbnails. It is present in the original 'On the fly' contrib (at least version 1.7.* , I haven't tested the newer ones) and worked fine.

 

Have you found any incompatibility ?

 

The code comes in html_output.php, right after the following block :

 

// 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];

}

 

Add this :

 

// Scale the image if not the original size

if ($image_size[0] != $width || $image_size[1] != $height) {

$rx = $image_size[0] / $width;

$ry = $image_size[1] / $height;

 

if ($rx < $ry) {

$width = intval($height / $ratio);

} else {

$height = intval($width * $ratio);

}

}

 

With this, you can fix width and height, and the thumb will always be smaller and keep the right aspect ratio.

 

Any comment ?

 

Thanks,

--

R?mi

Link to comment
Share on other sites

Tom, thanks for the contribution.

 

I am seeing just one problem currently with my install. I really want to turn them off anyway, but you know those little GIF images that display in the upper right hand corner of al lot of the pages like My Account, Shopping Cart, Login etc. I always get the broken image link for them. Can you tell me why? I am testing on my own windows machine with the gd library that comes with php if that makes a difference.

 

Thanks

Link to comment
Share on other sites

Hi,

I'm just installing this amazing contribution. I like it... it's exactly what I was looking for.

To test the contributions I make a clean install on my local home computer and after testing the functions and if everything works fine, I upload the changed files to the online server.

I've done the same with this contribution after it seems to be fine local... what means that I didn't made any mistakes when copying and pasting the code into the files. :thumbsup:

 

.... but now I don't see any pictures. No thumbnails, no product images and no popups. Just the small image icon that normally appears for images not found. :angry:

 

Something is wrong! I cannot find it out, because the other identical version (local) works. :o

 

Here are more informations about the symptoms:

1) right click on the image icon and open image in a new window gives me the following errors:

Warning: Division by zero in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 136

Warning: Cannot modify header information - headers already sent by (output started at /home/b/my-homepage.com/public_html/catalog/imagemagic.php:136) in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 487

Warning: Cannot modify header information - headers already sent by (output started at /home/b/my-homepage.com/public_html/catalog/imagemagic.php:136) in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 488

Warning: Cannot modify header information - headers already sent by (output started at /home/b/my-homepage.com/public_html/catalog/imagemagic.php:136) in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 489

Warning: Cannot modify header information - headers already sent by (output started at /home/b/my-homepage.com/public_html/catalog/imagemagic.php:136) in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 490

Warning: Cannot modify header information - headers already sent by (output started at /home/b/my-homepage.com/public_html/catalog/imagemagic.php:136) in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 491

Warning: Cannot modify header information - headers already sent by (output started at /home/b/my-homepage.com/public_html/catalog/imagemagic.php:136) in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 492

Warning: imagecreate(): Invalid image dimensions in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 494

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 495

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 496

Warning: imagefilledrectangle(): supplied argument is not a valid Image resource in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 498

Warning: imagestring(): supplied argument is not a valid Image resource in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 500

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 503

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/b/my-homepage.com/public_html/catalog/imagemagic.php on line 504

2) If I take a look to the source of the printed catalog you can see, thet the source of the page is not correct

<tr class="tableRow">

<td class="main" align="center"><a href="http://www.boutique-monique.com/catalog/product_info.php?cPath=117&products_id=57&osCsid=205a338ce7163ccffa7dabc0bf78876c"><img src="imagemagic.php?img=zufYzNfalOLRqOrO5drOn5Pk58w%3D&w=66&h=80&page=" width="66" height="80" border="0" alt=""my-homepage.com" a description" title=""my-homepage.com" a description title">

3) in another forum post I heard that it could be a problem with the safe_mode of the PHP. So I changed the php.ini and switched it on. ---- nothing changed ---- still the small error-icons.

4) I activated the cache for Image Magic but no files were created in this folder. Different to my local installation.. There I get all cached files immediatly after clicking in a picture (could be that this information helps a little bit).

 

Again... There is probably no mistake in the code. I suppose the problems are in the rights settings. But I have not so much experiences in server settings.

 

Does anybody has an idea where these problems comes from?

If someone of you specialists needs more informations please let me know. I would appreciate any help!!!

 

Thanks a lot :)

 

Stefan

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