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.


GIFS not cropping

 
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
wardy
Newbie


Joined: 13 Jun 2006
Posts: 2

PostPosted: Tue Jun 13, 2006 6:09 am    Post subject: GIFS not cropping Reply with quote

Hi Andy (great script)

I just have a problem trying to crop gifs? Everytnhings cropping great with other image types but the image stays as the original when using a gif. My code is basically:

$newfilename=$dest_folder.$resolution.$territory."/".$filename['name'];
copy($filename['tmp_name'], $newfilename);
$cc1 = new canvasCrop();
$cc1->loadImage($newfilename);
$cc1->cropToSize($width,$height,ccCENTER);
$cc1->saveImage($newfilename);
$cc1->flushImages();

have also added these lines to class file:

if ($ext == 'png' || $ext == 'gif') $saved = $func($this->_imgFinal, $filename);

else if($type == 'gif')
{
echo @ImageGIF($this->_imgFinal);
return true;
}

Any ideas/workarounds would be great as I need the option of cropping gifs

Cheers
Back to top
View user's profile Send private message
amnuts
Site Admin


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

PostPosted: Tue Jun 13, 2006 3:59 pm    Post subject: Reply with quote

Hi Wardy, and welcome to the board!

The first thing that springs to mind is that your installation of GD doesn't allow for the saving of gif images only the reading. Check out your phpinfo() output and look at the GD portion - you're looking for:

GIF Read Support - enabled
GIF Create Support - enabled

in the output.

If you have that and it's still not working, then I can email you a copy of the new cropping class as I have gif support built in (providing GD supports it, of course).

Andy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
wardy
Newbie


Joined: 13 Jun 2006
Posts: 2

PostPosted: Wed Jun 14, 2006 5:32 am    Post subject: Reply with quote

Hi Andy

I looked at phpinfo() and it says that both are enabled so I would be grateful if you could email me the new classes that support gifs

Cheers mate
Back to top
View user's profile Send private message
amnuts
Site Admin


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

PostPosted: Wed Jun 14, 2006 2:08 pm    Post subject: Reply with quote

It's in the post, as it were. Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
wisnoe
Newbie


Joined: 17 Jun 2006
Posts: 3

PostPosted: Tue Jun 20, 2006 3:42 am    Post subject: Reply with quote

hi, i have the same problem too Sad
Back to top
View user's profile Send private message
amnuts
Site Admin


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

PostPosted: Tue Jun 20, 2006 5:27 am    Post subject: Reply with quote

New version of the crop canvas is on its way to your email box!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
amnuts
Site Admin


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

PostPosted: Wed Jul 05, 2006 4:56 am    Post subject: Reply with quote

That version I emailed you still had a little issue with gifs. The version that's now available on the website is fully fixed and successfully tested to work with gifs. so if you haven't already, go and download a fresh copy.

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