Jump to content


Photo

cropping an image?


  • Please log in to reply
7 replies to this topic

#1 echoninja

echoninja
  • Members
  • PipPip
  • Member
  • 16 posts

Posted 06 March 2006 - 12:39 AM

Ive looked on various forums and websites but cant find any results. I want to upload an image twice, 1st will be normal size, 2nd will be a cropped 100x100 image, now, I DONT want to resize it, i want a 100x100 area of the image displayed. Is it possible to do with php?

#2 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 06 March 2006 - 02:53 AM

There are loads of scripts to do what you desire.

Here is just one of them --- [a href=\"http://php.amnuts.com/index.php?do=view&id=12\" target=\"_blank\"]http://php.amnuts.com/index.php?do=view&id=12[/a]

Lite...

all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture

#3 echoninja

echoninja
  • Members
  • PipPip
  • Member
  • 16 posts

Posted 06 March 2006 - 04:23 AM

Ok ill explain a bit more
Im looking to learn how to do it on the fly so when I hit "upload" it uploads 2 images and one gets cropped by a defined variable of width and hieght

#4 echoninja

echoninja
  • Members
  • PipPip
  • Member
  • 16 posts

Posted 07 March 2006 - 10:48 AM

*ahem* page 4 i think not

#5 echoninja

echoninja
  • Members
  • PipPip
  • Member
  • 16 posts

Posted 08 March 2006 - 12:29 PM

:(

#6 AV1611

AV1611
  • Members
  • PipPipPip
  • Advanced Member
  • 997 posts

Posted 08 March 2006 - 12:34 PM

I'm no expert on this, but it seems to me you should be able to do this in PHP with the GD/GD2 extensions if they are installed on you PHP server.... You should read up on that for starters...

#7 echoninja

echoninja
  • Members
  • PipPip
  • Member
  • 16 posts

Posted 12 March 2006 - 04:42 AM

thanks ill give a shot looking up GD

#8 keeB

keeB
  • Staff Alumni
  • Advanced Member
  • 1,078 posts
  • LocationCalifornia

Posted 12 March 2006 - 08:25 AM

[!--quoteo(post=354082:date=Mar 12 2006, 04:42 AM:name=EchoNinja)--][div class=\'quotetop\']QUOTE(EchoNinja @ Mar 12 2006, 04:42 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
thanks ill give a shot looking up GD
[/quote]

easier would be to use imagemagick,,,

Come visit my site to see my latest projects
http://nick.stinemates.org/wordpress/





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users