Jump to content

Archived

This topic is now archived and is closed to further replies.

echoninja

cropping an image?

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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...

Share this post


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

easier would be to use imagemagick,,,

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.