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.


Save Zoomed Image

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


Joined: 22 Jun 2006
Posts: 1

PostPosted: Fri Jun 23, 2006 4:45 am    Post subject: Save Zoomed Image Reply with quote

Hello Andy,
Thanks for this great script ! Smile

Is it possible to save Image in a fixed dimensions when you have zoomed on the image ?
Sure, the quality will be altered but is it possible ?

For example : I upload an image ( 115x170) and I want obtain a image of 120x160.

I haven't see (or understand Wink) function which allow this.
If all is allright, I'll be giving a donation when this project is completed.

Thanks
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 23, 2006 6:10 am    Post subject: Reply with quote

Hi, and welcome to the board!

The cropping class wont do this, but the 'drop shadow' one will. Ignore the name, it's actually for resizing images with the ability to add a drop shadow to it (though I originally made it so I could do the drop shadow, hence the name).

This is the project page:

http://php.amnuts.com/index.php?do=view&id=9

You'll want to use the 'resizeToSize' method in that class. For example:

Code:
<?php

    require('class.dropshadow.php');
    $ds =& new dropShadow;
    $ds->loadImage('./images/test.jpg');
    $ds->resizeToSize(120, 160);
    $ds->showFinal('png');

?>


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