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.


Can't drag or resize in IE
Goto page Previous  1, 2
 
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
allthingschildren
Newbie


Joined: 05 Nov 2005
Posts: 10
Location: Austin, TX

PostPosted: Tue Nov 29, 2005 3:47 pm    Post subject: Reply with quote

yeah, googling everything is my MO Very Happy i've learned tons just by reading up online, and not just about web stuff... did you know that an octopus has a mini neural network and nervous system in each of its legs that allow it to issue them individual orders like "leg 4, grab that crab" and forget about it and move on to the next? the mini-brain in each leg takes over at that point... Very Happy anyway, glad you got it working... this tool does indeed rock, if you feel like toying with it some more, i was able to get mine to output the cropped image anywhere on the page that i wanted it by making it into a separate file and calling it as the image src, such as this:

<tr>
<td><?php echo '<img src="includes/makecrop.php?image=' . $imagename . '&sx=' . $_GET['sx'] . '&sy=' . $_GET['sy'] . '&ex=' . $_GET['ex'] . '&ey=' . $_GET['ey'] . '">'; ?></td>
</tr>

you get the idea Very Happy that way you don't have to worry about the outputting of any web page contents before the header that's required to generate that thumb image... the header is generated in a separate file, and the outputting image is then plugged into the calling file from anywhere in the page Smile

I used this code in my own store as well, along w/ some ebay auction template generating code i wrote, and the combination allows me to select a product, click the "edit thumbnails" button, crop out an area to use, which it then saves in a naming convention it can easily use to associate it w/ that product... i save as many as i want, click on the "create ebay auction template" button, and it extracts all the product data from the db, along w/ the images i just created, and pops them all into an html template i select from a dropdown box... all i have to do then is copy and paste the generated html into turbolister or something and it's ready to go Very Happy

Richard.
Back to top
View user's profile Send private message Visit poster's website
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
Goto page Previous  1, 2
Page 2 of 2

 
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