CodeCanyon

ImageTools - Image Manipulation Class

  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 10 and 49 items
aroh says
Purchased

Hi, i’m having troubles, there are two errors :

Warning: main(../class/ImageTools.class.php) [function.main]: failed to open stream: No such file or directory in /homez.167/blobides/touchetlaurent/clients/ddv/dev/admin/edit_home_product.php on line 6

Warning: main() [function.include]: Failed opening ’../class/ImageTools.class.php’ for inclusion (include_path=’.:/usr/local/lib/php’) in /homez.167/blobides/touchetlaurent/clients/ddv/dev/admin/edit_home_product.php on line 6

The files are in the class folder ! My other files are loaded successfully but not the ImageTools.class.php

any issue ? oO

Thanks :)

4 months ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 10 and 49 items
aroh says
Purchased

I’m sorry, the error is :

Parse error: syntax error, unexpected T_STRING, expecting ‘{’ in /home/web/ponthierr_e3g5y/ponthierry-cave.fr/www/dev/class/ImageTools.class.php on line 34

4 months ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 10 and 49 items
aroh says
Purchased

Work fine, PHP5 error :)

Is it possible to resize the same picture for differents sizes ?

$img = new ImageTools(”../img/p/”.$product_picture); $img->resizeNewByWidth(150,150,150,”#fff”); $img->save(”../img/p/thumbs/”, ”$product_picture”, 85, true);

$img_medium = new ImageTools(”../img/p/”.$product_picture); $img_medium -> resizeNewByWidth(456,400,456,”#fff”); $img_medium -> save(”../img/p/”, ”$product_picture”, 85, true);

Is it the good way ?

Thanks :)

4 months ago
Author
arl1nd arl1nd replied

Hi aroh

I am sorry for the late response

Do you get “notice” warnings as errors or which type of error?

If there are notice warnings you may stop them showing by adding on the top of php file this line

error_reporting(E_ERROR);

and it will not appear anymore.

Thanks for purchase

4 months ago
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
movieprodw says
Purchased

Hello,

How do I fix this error?

Warning: imagedestroy(): 2721 is not a valid Image resource in /var/www/ ... /upload/src/ImageTools.class.php on line 336 o_3988 – o_3988Used_2008_GMC_Acadia_SLT1_439179_3160

Thanks, Matt

4 months ago
Author
arl1nd arl1nd replied

I’ve noticed that line is not appropriate so you can just go to line 336 (on ImageTools.class.php file) and just remove the line or add an ’@’ symbol before the function

@imagedestroy($this->im);

This should be work, and thanks for purchase

4 months ago
  • Has been a member for 4-5 years
  • Bought between 50 and 99 items
Jackola says
Purchased

Hi, I need to have a base graphic png, place a png logo on it, place up to 8 fields of text from a mysql db from worpress, place another png, place another png. I can do this with indesign, but I want to permit a user to build their own graphic. This is generally done with flash. Would I use this imagetools? Would it be better to build in wordpress or opencart or other manner? Thank you. J

3 months ago
  • Has been a member for 0-1 years
  • Bought between 10 and 49 items
  • Netherlands
Owni says

Hey Arl1nd,

This script is great, but i need it to work with amazon’s S3 urls.

1 month ago
Author
arl1nd arl1nd replied

Do you mean with external URL ’s? If so, you should enable PHP to open URL files.

1 month ago
by
by
by
by
by