Jump to content
Sign in to follow this  
tomjmul

Support thread for the Image Magic contribution

Recommended Posts

i wanna thanks tomjules , because it s really an incredible work , and i ca nonly be thanksfull .

rigadin has my best regard because is my case , his sub version worked for me this time .

 

For osc , it s true that i cant understand why the project is handle this way, we got not way to filter any new version , even the forum doesnt allows to paste code without begin altered, dont mention the search function , not even an alert when a contribution is upgraded ...

They could have even used a oscommerce base code for the contribution aera with reviews , download etc

 

i m thanksfull to hpdl and osc team , but i hope they accept help from other to improve the whole project and use the latest web technologies to help contibutors with the right tools to make it evolve .

 

liek we say in french " chapeau bas" i love Image magic and that make me the 3001's :rolleyes:


MS2

Share this post


Link to post
Share on other sites

I've been running imagemagic for about 2 years now, and have recently changed server. Now when I cache thumbnails to the server (as I have always done), I get the broken image and when I right click on the image I get the following info:

 

Warning: imagejpeg() [function.imagejpeg]: Unable to open 'thumbnails/images/coming_soon.jpg.thumb_prod_infoprod_info_100x100_8faa1627ae5eb160887eae0ef74dd16
1.jpg' for writing in xxxxxxxx/imagemagic.php on line 292

Warning: Cannot modify header information - headers already sent by (output started at xxxxxxxx/imagemagic.php:292) in xxxxxxxx/imagemagic.php on line 463

 

I have not found this problem on this thread. I have checked the CHMOD on the thumbnails directory and its subdirectories and this is set to 777.

 

Can anyone enlighten me? I have turned off the server cache for now so it caches only to the browser.

Many thanks! Luke

Share this post


Link to post
Share on other sites
I've been running imagemagic for about 2 years now, and have recently changed server. Now when I cache thumbnails to the server (as I have always done), I get the broken image and when I right click on the image I get the following info:

 

Warning: imagejpeg() [function.imagejpeg]: Unable to open 'thumbnails/images/coming_soon.jpg.thumb_prod_infoprod_info_100x100_8faa1627ae5eb160887eae0ef74dd16
1.jpg' for writing in xxxxxxxx/imagemagic.php on line 292

Warning: Cannot modify header information - headers already sent by (output started at xxxxxxxx/imagemagic.php:292) in xxxxxxxx/imagemagic.php on line 463

 

I have not found this problem on this thread. I have checked the CHMOD on the thumbnails directory and its subdirectories and this is set to 777.

 

Can anyone enlighten me? I have turned off the server cache for now so it caches only to the browser.

Many thanks! Luke

 

I've got the same issue.

 

I do just get this error message:

error.gif

 

I've also tried to put the hole path to the thumbnails directory.

 

I have made sure that the CHMOD is set to 777!

 

Anyone that can help me!!!

 

If I turn off server cache the pictures show up as normal.

 

Thanks in advance,

 

Thomas

Edited by slopface

Share this post


Link to post
Share on other sites

OK guys,

 

I've been asked a noumerus of times via PM to provide a downloadspot for the download of the latest version of Image Magic (1.16).

Up until today it was still availlible at tomjul's website but as I just discoverred it is not anymore.

As this is not my contribution I'm reluctand to just put it up somewhere as I do not want to intervent with the intentions of tomjul.

I've send him a PM and hope he will reply as soon as he can.

 

All I'm asking you all is to have a little patiënt for now.

 

Regards, Norman


Norman in 't Veldt

 

Moderator

osCommerce The Netherlands

Share this post


Link to post
Share on other sites

Norman, sorry for not replying to your pm's sooner, I have been quite busy.

 

Obviously I do not want to spite all of the users of image magic, just because the osc developers decided to. However, I am reviewing in what licence to distribute image magic under from my own site. As I included no GPL'ed or otherwise code and never officially distributed it under GPL, this is something that requires some thought. Again, the precipitating reason for this is so that I can keep development and version control of my own code.

 

As I've said, I am very busy and it will be after christmas before I finally decide. I would suggest either patience, the guaranteed install option or another thumbnailer in the meantime.

 

Also, you could try asking hpdl why he removed it. He didn't even have the decency to answer me when I asked. But then again, I wasn't overly surprised as this seems the the devs general way of dealing with ANY emails.

 

On a side-note, I have noticed that the install counter on my home page is still rising, so people must be getting it from somewhere :D

 

 

Tom

Edited by tomjmul

OSC Image Magic

On-the-fly thumbnails, watermarks and image processing

Share this post


Link to post
Share on other sites
Norman, sorry for not replying to your pm's sooner, I have been quite busy.

 

Obviously I do not want to spite all of the users of image magic, just because the osc developers decided to. However, I am reviewing in what licence to distribute image magic under from my own site. As I included no GPL'ed or otherwise code and never officially distributed it under GPL, this is something that requires some thought. Again, the precipitating reason for this is so that I can keep development and version control of my own code.

 

As I've said, I am very busy and it will be after christmas before I finally decide. I would suggest either patience, the guaranteed install option or another thumbnailer in the meantime.

 

Also, you could try asking hpdl why he removed it. He didn't even have the decency to answer me when I asked. But then again, I wasn't overly surprised as this seems the the devs general way of dealing with ANY emails.

 

On a side-note, I have noticed that the install counter on my home page is still rising, so people must be getting it from somewhere :D

Tom

 

Hi Tom,

 

Would it be possible that you could upload one of your "older" version for download on your website?

 

Thnaks in advence,

 

Thomas

Share this post


Link to post
Share on other sites

Have been using imagemagic for good 2 years also and recently move to new server. Come here to look for solution for the same problem as the above post. I'm suprised that they removed it from oscommerce site? Why? :'( I just can't believe it.. BTW, if anyone found the solution please post here.

 

EDIT: CHMOD thumbnail and it sub directory to 777 solved my problem but still why did they remove it.. Hope Tom can make it available for new user soon.

 

Thanks.

Edited by adx

Share this post


Link to post
Share on other sites
#3: In html_output.php,

- Find the following code:

if (strstr($_SERVER['PHP_SELF'],"product_info.php")) {

- Change it for

if (strstr($_SERVER['PHP_SELF'],"product_info.php") && isset($in_product_info_block) & $in_product_info_block) {

 

Alex

 

 

This did the trick - to get my pictures bigger on the product_info.php page - and no where else!

 

I also put this in the product_info.php page

 

SMALL_IMAGE_WIDTH*1.5, SMALL_IMAGE_HEIGHT*1.5

 

Seems to be ALL fine now

 

Thanks

Share this post


Link to post
Share on other sites
This did the trick - to get my pictures bigger on the product_info.php page - and no where else!

 

I also put this in the product_info.php page

 

SMALL_IMAGE_WIDTH*1.5, SMALL_IMAGE_HEIGHT*1.5

 

Seems to be ALL fine now

 

Thanks

 

 

Helle,

 

Did you try changing the product info image width and height in your admin panel? Image magic installs a new image size for the products page.

 

Tom


OSC Image Magic

On-the-fly thumbnails, watermarks and image processing

Share this post


Link to post
Share on other sites
Norman, sorry for not replying to your pm's sooner, I have been quite busy.

 

Obviously I do not want to spite all of the users of image magic, just because the osc developers decided to. However, I am reviewing in what licence to distribute image magic under from my own site. As I included no GPL'ed or otherwise code and never officially distributed it under GPL, this is something that requires some thought. Again, the precipitating reason for this is so that I can keep development and version control of my own code.

 

As I've said, I am very busy and it will be after christmas before I finally decide. I would suggest either patience, the guaranteed install option or another thumbnailer in the meantime.

 

Also, you could try asking hpdl why he removed it. He didn't even have the decency to answer me when I asked. But then again, I wasn't overly surprised as this seems the the devs general way of dealing with ANY emails.

 

A man could always ask :-"

But I think I will also be left without an answer as the Dutch osC support site and forum has the "unofficial" status

 

On a side-note, I have noticed that the install counter on my home page is still rising, so people must be getting it from somewhere :D

Tom

 

:-"

 

Seriously, I'm not redistributing it becaus I did not hear from you and no answer means to me that I'm not allowed to.

 

The question still remains that I get great demands from this forum and the Ducth forum for mailing the 1.16 zip I'm still having.

On the other hand, I did install 3 website's in the last 2 day's running your latest version.


Norman in 't Veldt

 

Moderator

osCommerce The Netherlands

Share this post


Link to post
Share on other sites

Great Contribution. I used it for about 5 months without problems. Now, after installing another contribution (Fancier Invoice & Packing Slip by PopTheTop) my images are all broken.

 

When I paste the image URL into my browser I get the following PhP errors:

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/shena7/public_html/catalog/imagemagic.php on line 21

 

Warning: Cannot modify header information - headers already sent by (output started at /home/shena7/public_html/catalog/imagemagic.php:21) in /home/shena7/public_html/catalog/imagemagic.php on line 492

 

Warning: Cannot modify header information - headers already sent by (output started at /home/shena7/public_html/catalog/imagemagic.php:21) in /home/shena7/public_html/catalog/imagemagic.php on line 493

 

Warning: Cannot modify header information - headers already sent by (output started at /home/shena7/public_html/catalog/imagemagic.php:21) in /home/shena7/public_html/catalog/imagemagic.php on line 494

 

Warning: Cannot modify header information - headers already sent by (output started at /home/shena7/public_html/catalog/imagemagic.php:21) in /home/shena7/public_html/catalog/imagemagic.php on line 495

 

Warning: Cannot modify header information - headers already sent by (output started at /home/shena7/public_html/catalog/imagemagic.php:21) in /home/shena7/public_html/catalog/imagemagic.php on line 496

 

Warning: Cannot modify header information - headers already sent by (output started at /home/shena7/public_html/catalog/imagemagic.php:21) in /home/shena7/public_html/catalog/imagemagic.php on line 497

 

Warning: imagecreate() [function.imagecreate]: Invalid image dimensions in /home/shena7/public_html/catalog/imagemagic.php on line 499

 

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/shena7/public_html/catalog/imagemagic.php on line 500

 

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/shena7/public_html/catalog/imagemagic.php on line 501

 

Warning: imagefilledrectangle(): supplied argument is not a valid Image resource in /home/shena7/public_html/catalog/imagemagic.php on line 503

 

Warning: imagestring(): supplied argument is not a valid Image resource in /home/shena7/public_html/catalog/imagemagic.php on line 505

 

Warning: imagestring(): supplied argument is not a valid Image resource in /home/shena7/public_html/catalog/imagemagic.php on line 505

 

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/shena7/public_html/catalog/imagemagic.php on line 508

 

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/shena7/public_html/catalog/imagemagic.php on line 509

 

I discovered the file that is causing this problem. I can get Image Magic working again by removing the configure.php file from my catalog/includes/local folder (this file was added for functionality of the Fancier Invoice & Packing Slip contribution).

 

However, removing that file causes the checkout process to fail.

 

Does anyone have any idea why this file would cause problems with ImageMagic, and any possible solutions? Here are the full contents of the configure.php in question:

 

<?php

/*

$Id: configure.php,v 6.1 2005/06/05 00:37:30 PopTheTop Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Folder Definitions

define('DIR_FS_ADMIN', '/home/shena7/public_html/catalog/admin/'); // absolute path required

define('EMAIL_INVOICE_DIR', 'email_invoice/');

define('INVOICE_TEMPLATE_DIR', 'templates/');

 

// Email Invoice File Definitions

define('FILENAME_EMAIL_INVOICE', 'email_invoice.php');

define('FILENAME_EMAIL_CACHE_FILE', 'temp_cache.php');

define('FILENAME_ORDERS_INVOICE', 'invoice.php');

 

?>

 

Thank you! I very much appreciate any help.

Share this post


Link to post
Share on other sites
Helle,

 

Did you try changing the product info image width and height in your admin panel? Image magic installs a new image size for the products page.

 

Tom

 

Hi Tom - sorry for the late answer....

 

I tried that, but then the images in the colunm under reviews also were bigger....

 

Helle :-)

Share this post


Link to post
Share on other sites

has this contribution been deleted?

 

I'm buggered if i can find a working link to download it :)

 

*** edit - just found answer in post above...***

Edited by stubbsy

Share this post


Link to post
Share on other sites

About Fancier Invoice & Packing Slip and the configure.php file needed in the includes/local folder:

 

imagemagic.php is using a different logic than application_top.php to include the configure.php files(s), and that gives the problem. The proper code is:

 

// Set the local configuration parameters - mainly for developers
 if (file_exists('includes/local/configure.php')) include('includes/local/configure.php');

// include server parameters
 require('includes/configure.php');

 

- Rigadin


STS v4.5 SP5 is out, and check the STS Power Pack contribution too!

New thumbnailer using phpThumb: oscThumb. Works great.

Share this post


Link to post
Share on other sites
About Fancier Invoice & Packing Slip and the configure.php file needed in the includes/local folder:

 

imagemagic.php is using a different logic than application_top.php to include the configure.php files(s), and that gives the problem. The proper code is:

 

// Set the local configuration parameters - mainly for developers
 if (file_exists('includes/local/configure.php')) include('includes/local/configure.php');

// include server parameters
 require('includes/configure.php');

 

- Rigadin

 

Thank you so much Rigadin!! I substituted the code you provided in imagemagic.php and that did the trick.

Share this post


Link to post
Share on other sites

Would it be possible to tweak imagemagic.php to only allow images be dynamically made if and only if its being asked by parent server? I tried making a link outside, and it succeeded. Eg:

<img src="http://www.yoursite.com/imagemagic.php?img=images/yourimage123.jpg&w=275&h=275&page=">
<img src="http://www.yoursite.com/imagemagic.php?img=images/yourimage123.jpg&w=123&h=123&page=">
<img src="http://www.yoursite.com/imagemagic.php?img=images/yourimage123.jpg&w=555&h=555&page=">

As you can imagine this would have dramatic impact on storage and especially server load.


Yaptown.com

Easy mobile gadget specs

Share this post


Link to post
Share on other sites

I can't find the contribution on www.oscommerce.com can anyone get me the link for the download of this contribution..

 

thanks

Share this post


Link to post
Share on other sites

hI:

 

I need to knwo about the tep_image() in the html_output file. I just dont quite understand how much of this file I am to replace with the code given in the instructions.

 

any help would be great.

 

thanks,

shawn


If it was easy, anyone could do it!

Share this post


Link to post
Share on other sites
hI:

 

I need to knwo about the tep_image() in the html_output file. I just dont quite understand how much of this file I am to replace with the code given in the instructions.

 

any help would be great.

 

thanks,

shawn

 

 

on a fresh install the code to replace is the section below -

 

////
// The HTML image wrapper function
 function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {
  return false;
}

// 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 = intval($image_size[0] * $ratio);
	} elseif (tep_not_null($width) && empty($height)) {
	  $ratio = $width / $image_size[0];
	  $height = intval($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 current install instructions are not very clear for this bit. Which is a shame because the rest of the install file is very detailed...odd ?

Share this post


Link to post
Share on other sites

where can i download the contribution now.. it is not wvailable on www.celtware.com anymore either.. please help.. I want his :)

Share this post


Link to post
Share on other sites
where can i download the contribution now.. it is not wvailable on www.celtware.com anymore either.. please help.. I want his :)

 

It is not there anymore. If you do a search at Google you will be able to find it in its cache. Please only use tomjuls versions.

 

I have not heard from tomjul and I'm not sure what's going to happen with his contribution.


Norman in 't Veldt

 

Moderator

osCommerce The Netherlands

Share this post


Link to post
Share on other sites

I haven't used this contrib, so can't comment on how good it is or not - but users seem to like it. However, all contributions listed on this forum have to be available as GPL licenced, that's a cardinal rule of the forums. That appears to be why it was removed.

 

However, just because it can't be in the Contributions section here without being GPL licenced it does not mean that the author cannot make it available elsewhere with a different licencing arrangement.

 

The Netherlands forum is 'independent' because the osCommerce project does not own the .nl domain.

 

Vger

Share this post


Link to post
Share on other sites
I haven't used this contrib, so can't comment on how good it is or not - but users seem to like it. However, all contributions listed on this forum have to be available as GPL licenced, that's a cardinal rule of the forums. That appears to be why it was removed.

 

Strange that it took the moderators such a long time to came up with that "reason" for removing it.....

 

However, just because it can't be in the Contributions section here without being GPL licenced it does not mean that the author cannot make it available elsewhere with a different licencing arrangement.

 

It looks like this contribution is lost to the osCommerce community as tomjul has disapered, like many other contributors after beeing moderated :(

 

The Netherlands forum is 'independent' because the osCommerce project does not own the .nl domain.

 

Vger

 

Lucky for us ;)


Norman in 't Veldt

 

Moderator

osCommerce The Netherlands

Share this post


Link to post
Share on other sites

A "simple" question after these clarifications:

I took the code of this contribution when it was available on this site. The code was not GPL, and in fact it had no mention of any kind of copyright. Can I still use it to build new stores?


STS v4.5 SP5 is out, and check the STS Power Pack contribution too!

New thumbnailer using phpThumb: oscThumb. Works great.

Share this post


Link to post
Share on other sites
A "simple" question after these clarifications:

I took the code of this contribution when it was available on this site. The code was not GPL, and in fact it had no mention of any kind of copyright. Can I still use it to build new stores?

 

I've build my shop when it was still available, I'm "giving" my shop-source (inlcuding Image Magic) to anyone who wants is. I think you can just use it to build your shops. I do not know how long the install-instrcutions well be available on the Internet...


Norman in 't Veldt

 

Moderator

osCommerce The Netherlands

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  

×