andy's php projects
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Script and site usage:
All of the scripts on this site are provided free for non-commerical, personal or non-profit use. If you find these scripts useful to you, appreciate the free support, or are just an all round nice person, then why not donate a little dosh? If you wish to use any of these in a commercial system, please refer to the payment plan.


help: cropToDimensions doesn't work

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Crop Canvas
View previous topic :: View next topic  
Author Message
tini
Newbie


Joined: 11 Jun 2004
Posts: 2

PostPosted: Fri Jun 11, 2004 8:36 am    Post subject: help: cropToDimensions doesn't work Reply with quote

hello.

i'd like to crop an image to a specific dimension, but it won't really work.

my code:

PHP:
<?php require 'class.cropcanvas.php';

$cc = new canvasCrop();

$cc->loadImage('test.png');
$cc->cropToDimensions(1010510);
$cc->saveImage('test.png');

$cc->flushImages(); ?>


then it gets me this and it won't crop the image:

Code:

Notice: Undefined variable: position in class.cropcanvas.php on line 270


the other methods work fine.
can you help me why this function doesn't work?

thank you

tini
Back to top
View user's profile Send private message
tini
Newbie


Joined: 11 Jun 2004
Posts: 2

PostPosted: Fri Jun 11, 2004 8:37 am    Post subject: oh,i forgot: Reply with quote

i use version 1.2.0, 26th November, 2003
Back to top
View user's profile Send private message
amnuts
Site Admin


Joined: 01 Sep 2002
Posts: 662
Location: East Sussex, England

PostPosted: Fri Jun 11, 2004 2:21 pm    Post subject: Reply with quote

Hi, and welcome to the board.

This has been asked/answered already. See: http://php.amnuts.com/forums/viewtopic.php?t=53

Andy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Crop Canvas All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group