Project Help Wanted
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherProject Help Wanted

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 12th, 2002, 01:06 AM
scream scream is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 456 scream User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 7 m 3 sec
Reputation Power: 13
Send a message via ICQ to scream
make a quick buck: php function needed

I have a script that does some image manipulation with the GD library. It does almost everything I need, but I am stuck on how to crop an image. So... a quick $20 for anyone who can write me a function that does the following:

Accepts 5 parameters:
- image identifer
in this example $im is identifier: $im = imagecreatefromjpeg($logosource)
- upper left x pos
- upper left y pos
- lower right x pos
- lower right y pos

Based on that it should crop the image down to the rectangular area bound by the upper left and lower right position specified.

imagecopyresized() may be the function you'll need. If you can't actually crop $im, rather you have to copy the specified portion of $im to a new image, sized the same as the part being cropped (I think that is a good approach), this is fine.

Any takers? Please email rmckillen@screamingv.com

Reply With Quote
  #2  
Old August 16th, 2002, 09:58 PM
Dingle Dingle is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 452 Dingle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 12 sec
Reputation Power: 13
you still need this?

sent you an email

Reply With Quote
  #3  
Old September 6th, 2002, 08:46 AM
bulanov bulanov is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Ukraine
Posts: 16 bulanov User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to bulanov
Sent detailed data to me. (see signature)

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherProject Help Wanted > make a quick buck: php function needed

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap