phpvolution Posted June 15, 2006 Share Posted June 15, 2006 I just lately got back into PHP and am extremely rusty, so bare with me. I need to create a script that will go through a folder of images and crop each one to a certain dimension.More specifically, these are all scanned images that are all the same dimensions and need to all be cropped the same size. So instead of going through hundreds or thousands of images manually I thought this would save me a bunch of time if I automated it. [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]I'm not sure where to start as I haven't dealt with cropping yet, and I'm not sure how I can cycle through all the images in a folder. If anyone could provide some direction on how to do this, it would be greatly helpful!And for the record the image dimensions are:1276 x 1754 pixelsand need to be cropped to:915 x 1560 pixelsI'd also like to resize them after cropping but I figure that'd be asking a little much, are there any great tutorials out there on this? Quote Link to comment Share on other sites More sharing options...
Barand Posted June 15, 2006 Share Posted June 15, 2006 see[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=95778\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=95778[/a] Quote Link to comment Share on other sites More sharing options...
phpvolution Posted June 15, 2006 Author Share Posted June 15, 2006 Thanks Barand, always great info. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.