s3pt1k Posted February 10, 2006 Share Posted February 10, 2006 Hello all, I'm having some issues with the install. I have added everything (twice) and am getting the following issue when trying to load images: Warning: main(includes/imagemagic/imagemagic.functions.php): failed to open stream: No such file or directory in /usr/home/jdf/public_html/oscommerce/catalog/imagemagic.php on line 14 Fatal error: main(): Failed opening required 'includes/imagemagic/imagemagic.functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/local/lib/php/20020429') in /usr/home/jdf/public_html/oscommerce/catalog/imagemagic.php on line 14 Which include is this trying to access? Site is in testing at http://oscommerce.jcf-inc.com Any help would be appreciated. Regards, </Jared> Quote Link to comment Share on other sites More sharing options...
s3pt1k Posted February 10, 2006 Share Posted February 10, 2006 I'm an idiot, and it's late, I fixed the problem. Thumbnails directory. Doh! Hello all, I'm having some issues with the install. I have added everything (twice) and am getting the following issue when trying to load images: Warning: main(includes/imagemagic/imagemagic.functions.php): failed to open stream: No such file or directory in /usr/home/jdf/public_html/oscommerce/catalog/imagemagic.php on line 14 Fatal error: main(): Failed opening required 'includes/imagemagic/imagemagic.functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/local/lib/php/20020429') in /usr/home/jdf/public_html/oscommerce/catalog/imagemagic.php on line 14 Which include is this trying to access? Site is in testing at http://oscommerce.jcf-inc.com Any help would be appreciated. Regards, </Jared> Quote Link to comment Share on other sites More sharing options...
dreampho Posted February 10, 2006 Share Posted February 10, 2006 Right I have read and read and read some more. And I still cant find anything. Can someone please help, my site is live and has no watermarked images my business relies on photographers selling there photographs with my company securely. I am getting these errors in 'imagemagic.php', I guess this means that it isnt working... Warning: Division by zero in /home/qeanrknr/public_html/estore/imagemagic.php on line 136 Warning: Cannot modify header information - headers already sent by (output started at /home/qeanrknr/public_html/estore/imagemagic.php:136) in /home/qeanrknr/public_html/estore/imagemagic.php on line 477 Warning: Cannot modify header information - headers already sent by (output started at /home/qeanrknr/public_html/estore/imagemagic.php:136) in /home/qeanrknr/public_html/estore/imagemagic.php on line 478 Warning: Cannot modify header information - headers already sent by (output started at /home/qeanrknr/public_html/estore/imagemagic.php:136) in /home/qeanrknr/public_html/estore/imagemagic.php on line 479 My website URL is: http://www.dream-store.co.uk/estore Thankyou Chris I still have not sorted this. Anybody know what I can do!! Please Thanks Chris Quote Link to comment Share on other sites More sharing options...
tomjmul Posted February 10, 2006 Author Share Posted February 10, 2006 (edited) I still have not sorted this. Anybody know what I can do!! Please Thanks Chris Chris, I sent you a PM asking you for your server/auth details and explained that I would go ahead and fix the problem. If you were reluctant to provide these, which incidentally is entirely understandable and to which I would certainly take no offence, you should have just said. I can tell you however, that in the absence of these, I can be of no further help. That is not to say that someone else who has solved a similar problem can't Tom Edited February 10, 2006 by tomjmul Quote OSC Image Magic On-the-fly thumbnails, watermarks and image processing Link to comment Share on other sites More sharing options...
Roaddoctor Posted February 10, 2006 Share Posted February 10, 2006 Hello, Thanks for the great contribution. I've got it 99.9% working (I think). I just have one glitch. I have read this forum and have seen the question asked 2 times, but without a solution. My problem is simple (I hope :) ) The little cartoon icon [ table_background_default.gif ] is a blue square in ie, and not visible in ff. and this is the link in the properties http://www.pavepatch.com/imagemagic.php?im...w=57&h=40&page= here is the site. you can see the blue square Any advice is appreciated. Thanks. Quote -Dave Link to comment Share on other sites More sharing options...
Roaddoctor Posted February 10, 2006 Share Posted February 10, 2006 Ok I enabled Output GIFs as JPEGs true and now the blue box is gone. but so is the image. well it is there, but invisible. Really not a big deal as the icon is nothing that matters, but it would still be nice to know whats not quite right... GD Version bundled (2.0.12 compatible) Quote -Dave Link to comment Share on other sites More sharing options...
tomjmul Posted February 10, 2006 Author Share Posted February 10, 2006 Hi David, I did manage to take a look earlier this evening but couldn't figure out what you meant. To be honet, I still can't Tom Quote OSC Image Magic On-the-fly thumbnails, watermarks and image processing Link to comment Share on other sites More sharing options...
Roaddoctor Posted February 10, 2006 Share Posted February 10, 2006 Tom, Thanks for the reply. I have set it back to Output GIFs as JPEGs false Take a look now. All pages where the header icon gif is supposed to display will be broken. I appreciate the help. feel free to icq Dave Quote -Dave Link to comment Share on other sites More sharing options...
tomjmul Posted February 11, 2006 Author Share Posted February 11, 2006 David, Yes I see now. This does seem to be a GD version problem, as earlier versions of GD don't handle gifs due to some sort of licensing wrangle. Besides that, try this solution. In your admin menu, select configuration -> images. Set both the width and height or category images to 0% and in configuration -> image magic, make sure that the process store graphics is set to false. See if that solves the problem and if not, let me know Tom Quote OSC Image Magic On-the-fly thumbnails, watermarks and image processing Link to comment Share on other sites More sharing options...
Roaddoctor Posted February 11, 2006 Share Posted February 11, 2006 Tom, I already had process store graphics to false. Setting the image to 0% 0% completely prevents the image (or red x) from appearing so its a fine temporary solution. Setting Output Gif's as jpegs has the same effect of hiding the broken image from view. Wouldnt the best solution be to upgrade the gd library? or is that a pain given that its bundled and tweaked to the php version... any recommended version of GD suggested? Looks like I need 2.028 or higher. 2.033 is the latest version server is Linux 2.4.21-37.EL MySQL 3.23.58 HTTP Server: Apache/2.0.46 (Red Hat) PHP Version: 4.3.2 (Zend: 1.3.0) Quote -Dave Link to comment Share on other sites More sharing options...
Guest Posted February 11, 2006 Share Posted February 11, 2006 I installed Imagamagic, but I don't think it's functioning. I think I installed the sql file correctly, how can I tell? It just seems nothing is working in it. watermark font selection is blank, image watermark selection is blank. If I have it on or off there is no difference. I'm confused. dave Please help Quote Link to comment Share on other sites More sharing options...
s3pt1k Posted February 11, 2006 Share Posted February 11, 2006 (edited) Does anyone know how, utilizing imagemagic, to get the product image in on the product_info.php page to be larger? I particularly hate the "click to enlarge" function on that page. Specfically, I'd simply like imagemagic to not handle that image at all, and just have the image be the default size. Since I take my own pics of my products, I'm very much in control of the image size. So far, I've edited product_info.php, line 109 on, with the following: <script language="javascript"><!-- document.write('<?php echo '' . tep_image(DIR_WS_IMAGES . $product_info['products_image']) . ''; ?>'); //--></script> <noscript> <?php echo '' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name']); ?> </noscript> But the thing is, the image dimensions are STILL pulled in and it's annoying the hell out of me. Test server at: http://oscommerce.jcf-inc.com/catalog/index.php Any help would be appreciated. </Jared> Edited February 11, 2006 by s3pt1k Quote Link to comment Share on other sites More sharing options...
s3pt1k Posted February 11, 2006 Share Posted February 11, 2006 (edited) Does anyone know how, utilizing imagemagic, to get the product image in on the product_info.php page to be larger? I particularly hate the "click to enlarge" function on that page. Specfically, I'd simply like imagemagic to not handle that image at all, and just have the image be the default size. Since I take my own pics of my products, I'm very much in control of the image size. So far, I've edited product_info.php, line 109 on, with the following: <script language="javascript"><!-- document.write('<?php echo '' . tep_image(DIR_WS_IMAGES . $product_info['products_image']) . ''; ?>'); //--></script> <noscript> <?php echo '' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name']); ?> </noscript> But the thing is, the image dimensions are STILL pulled in and it's annoying the hell out of me. Test server at: http://oscommerce.jcf-inc.com/catalog/index.php Any help would be appreciated. </Jared> Update: Ugly hack, but it works (for now, still open to other ideas): <script language="javascript"><!-- document.write('<img src="/catalog/images/<?php echo $product_info['products_image']; ?>" />'); //--></script> <noscript> <img src="/catalog/images/<?php echo $product_info['products_image']; ?>" /> </noscript> Edited February 11, 2006 by s3pt1k Quote Link to comment Share on other sites More sharing options...
tomjmul Posted February 11, 2006 Author Share Posted February 11, 2006 (edited) Please help Dave, If you have the configuration options in your admin for imagemagic, then you have installed the script correctly. There was a post a few pages ago on how to fix the problem when no items are appearing in the drop down boxes. Give that a go. Jared, There is no need to do any editing of the scripts to achieve this. Image magic already contains the functionality to adjust the size of these images in your admin menu Tom Edited February 11, 2006 by tomjmul Quote OSC Image Magic On-the-fly thumbnails, watermarks and image processing Link to comment Share on other sites More sharing options...
webbqt Posted February 12, 2006 Share Posted February 12, 2006 Right I have read and read and read some more. And I still cant find anything. Can someone please help, my site is live and has no watermarked images my business relies on photographers selling there photographs with my company securely. I am getting these errors in 'imagemagic.php', I guess this means that it isnt working... Warning: Division by zero in /home/qeanrknr/public_html/estore/imagemagic.php on line 136 Warning: Cannot modify header information - headers already sent by (output started at /home/qeanrknr/public_html/estore/imagemagic.php:136) in /home/qeanrknr/public_html/estore/imagemagic.php on line 477 Warning: Cannot modify header information - headers already sent by (output started at /home/qeanrknr/public_html/estore/imagemagic.php:136) in /home/qeanrknr/public_html/estore/imagemagic.php on line 478 Warning: Cannot modify header information - headers already sent by (output started at /home/qeanrknr/public_html/estore/imagemagic.php:136) in /home/qeanrknr/public_html/estore/imagemagic.php on line 479 My website URL is: http://www.dream-store.co.uk/estore Thankyou Chris I've just read all of this support thread and can't figure this out either....is it really a problem? I didn't even know I had this going on because when I go to my site every thing works (webbsgraphics.com/decal)...I only found this error message when I was checking the statistics for my site and saw a lot of people entered at www.webbsgraphics.com/decals/imagemagic.php. For them to get all the errors can't be a good thing...should I just redirect that page? or is there a fix (what should be there?). When I was reading this thread, I read to check configure.php...but the slash was there. As far as I know there are no problems any where else...I just don't want to loose customers that for some reason go to that page first (I don't even know why they would end up on that page first). Your help is appreciated. :) Quote Link to comment Share on other sites More sharing options...
webbqt Posted February 12, 2006 Share Posted February 12, 2006 I've just read all of this support thread and can't figure this out either....is it really a problem? I didn't even know I had this going on because when I go to my site every thing works (webbsgraphics.com/decal)...I only found this error message when I was checking the statistics for my site and saw a lot of people entered at www.webbsgraphics.com/decals/imagemagic.php. For them to get all the errors can't be a good thing...should I just redirect that page? or is there a fix (what should be there?). When I was reading this thread, I read to check configure.php...but the slash was there. As far as I know there are no problems any where else...I just don't want to loose customers that for some reason go to that page first (I don't even know why they would end up on that page first). Your help is appreciated. :) Did I mention I have no clue what I'm doing? I was looking at my files again, and (this may be wrong) but when I click on an image (on my site) and look at the properties I see the address webbsgraphics.com/decals/imagemagic.php...since I have it encrypted...is this correct? Because if it is...then it doesn't matter (all the above errors that is) because the image works on the site or does it matter? This is also why that "page" shows up so much in my statistics - since the idea of my site is to sell the decals that are pictured, and they are going to enlarge to see it before they buy it...but then again, it does say in my statistics that this page is an entry page.....maybe the big question is" What should actually show up if you type in www.webbsgraphics.com/decals/imagemagic.php?" Quote Link to comment Share on other sites More sharing options...
threeb Posted February 13, 2006 Share Posted February 13, 2006 I was able to install Image Magic with no problems on a new install of OSC. This is a great contribution!! Thanks very much for making it so good and easy to install! Has anyone had an experience using Image Magic with another contribution, Customer Add Product? I've been able to get both to work together with one small issue. When a customer submits the product image, instead of the store admin, the image is pixilated and the watermark is scaled funny. If I reload the image using the admin it works fine. Seems like it's going to be a small fix but I haven't found anything helpful in any forum yet. Any help is appreciated. Thanks Quote Link to comment Share on other sites More sharing options...
tomjmul Posted February 13, 2006 Author Share Posted February 13, 2006 Did I mention I have no clue what I'm doing? I was looking at my files again, and (this may be wrong) but when I click on an image (on my site) and look at the properties I see the address webbsgraphics.com/decals/imagemagic.php...since I have it encrypted...is this correct? Because if it is...then it doesn't matter (all the above errors that is) because the image works on the site or does it matter? This is also why that "page" shows up so much in my statistics - since the idea of my site is to sell the decals that are pictured, and they are going to enlarge to see it before they buy it...but then again, it does say in my statistics that this page is an entry page.....maybe the big question is" What should actually show up if you type in www.webbsgraphics.com/decals/imagemagic.php?" Denise, I had a look. Your site and image magic are working perfectly. Those error messages, I suspect, are being caused by search engine robots calling the imagemagic.php script directly without the parameters it expects. Your users will never see these and you do not need to change anything. However, to avoid this message possibly appearing in your search results (which I doubt anyway), here is a small fix. In imagemagic.php just BEFORE this bit: // Get the size of the image: $image = @getimagesize($_GET['img']); Add This: if ($_GET['img'] =="" || !isset($_GET['img'])) http_headers('','No Image'); Sorted!! Tom Quote OSC Image Magic On-the-fly thumbnails, watermarks and image processing Link to comment Share on other sites More sharing options...
webbqt Posted February 13, 2006 Share Posted February 13, 2006 Denise, I had a look. Your site and image magic are working perfectly. Those error messages, I suspect, are being caused by search engine robots calling the imagemagic.php script directly without the parameters it expects. Your users will never see these and you do not need to change anything. However, to avoid this message possibly appearing in your search results (which I doubt anyway), here is a small fix. In imagemagic.php just BEFORE this bit: // Get the size of the image: $image = @getimagesize($_GET['img']); Add This: if ($_GET['img'] =="" || !isset($_GET['img'])) http_headers('','No Image'); Sorted!! Tom Thanks Tom, I did your fix and now I get this.... <br /> <b>Warning</b>: imagecreate(): Invalid image dimensions in <b>/home/webbsgra/public_html/decals/imagemagic.php</b> on line <b>495</b><br /> <br /> <b>Warning</b>: imagecolorallocate(): supplied argument is not a valid Image resource in <b>/home/webbsgra/public_html/decals/imagemagic.php</b> on line <b>496</b><br /> <br /> <b>Warning</b>: imagecolorallocate(): supplied argument is not a valid Image resource in <b>/home/webbsgra/public_html/decals/imagemagic.php</b> on line <b>497</b><br /> <br /> <b>Warning</b>: imagefilledrectangle(): supplied argument is not a valid Image resource in <b>/home/webbsgra/public_html/decals/imagemagic.php</b> on line <b>499</b><br /> <br /> <b>Warning</b>: imagestring(): supplied argument is not a valid Image resource in <b>/home/webbsgra/public_html/decals/imagemagic.php</b> on line <b>501</b><br /> <br /> <b>Warning</b>: imagejpeg(): supplied argument is not a valid Image resource in <b>/home/webbsgra/public_html/decals/imagemagic.php</b> on line <b>504</b><br /> <br /> <b>Warning</b>: imagedestroy(): supplied argument is not a valid Image resource in <b>/home/webbsgra/public_html/decals/imagemagic.php</b> on line <b>505</b><br /> Is this ok to show up? Am I right that it's not really a page that a customer would end up seeing without typing the imagemagic.php address in directly? Thank you for answering so quickly! Denise Quote Link to comment Share on other sites More sharing options...
wirre Posted February 14, 2006 Share Posted February 14, 2006 I got the IM finaly working, but the images ends up in greyscale, or strange looking colors. I had to compile php and GD with jpeg support from scratch, the GD version is 'bundled (2.0.28 compatible)'. I did install the plugin on another server, with jpeg suport for gd allready installed, and it worked like a charm. Please help! Quote Link to comment Share on other sites More sharing options...
wirre Posted February 14, 2006 Share Posted February 14, 2006 Sorry.. my fault.. i turned the "Truecolor" switch off.... Now it's working nicely! TNX for great contribution! even the Textwatermaring is working, after compiling pHp again with som mere switches!! :D Quote Link to comment Share on other sites More sharing options...
Julie_22 Posted February 14, 2006 Share Posted February 14, 2006 No Control of Product Information Image Hi this is my first post, I'm usually able to figure stuff out if I read enough posts, but this has me stumped. I installed the image magic contrib in my "dev store" to see if it would work, when it worked flawlessly I went ahead and installed it in my live store. Everything works except I am unable to manipulate the size of the product info image, it is the same size as the small image. My dev store is http://www.shopwilkinsons.com/devstore/ My real store is http://www.shopwilkinsons.com/catalog/ Thanks in advance for any help :-) Quote Link to comment Share on other sites More sharing options...
JEWbacca Posted February 14, 2006 Share Posted February 14, 2006 Tom. Thaks for the great contribution, seems to work great with keeping file size for the end user down and the bandwith under control. Like the majority of the people here, the watermark directory issue is somthing that to this day I can't resolve 100% -- changing the paths and such seems to upset other elements of the site. Its not the end of the world. My question is in regards to the animated gif detection code which you posted about a few pages back, I too think this would be useful. Is there any type of news/ update on this? Thanks, Nate Quote Link to comment Share on other sites More sharing options...
doc_uk Posted February 16, 2006 Share Posted February 16, 2006 Hi Tom I posted before about how ImageMagic slowed down my site, but you were AWOL on exams I believe. There was nothing glaring in the server logs as to the problem. Speed of the site is slowed down by 75-125% of the original, which somewhat defeats the object of the contrib. Got any ideas? Thanks, Doc Quote Link to comment Share on other sites More sharing options...
tomjmul Posted February 16, 2006 Author Share Posted February 16, 2006 Hi Doc, Can't really think why, sorry. I think the general consensus is that i/m greatly speeds up image serving. Tell me, are you on a shared server and if so how loaded up with hosting customers is it? Also what platform are you using? If you have skills in php, I could suggest the solution of checking the cache in the html_ouput function and if the file is there just outputing the <img src....> for it and quitting. Tom Quote OSC Image Magic On-the-fly thumbnails, watermarks and image processing Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.