1internet Posted December 10, 2012 Share Posted December 10, 2012 So I have a folder of images e.g. /images/ and I want to run a script that goes into all the images, and creates new images into /images/thumbs/, which resizes the images into thumbnails. Any ideas on the best way to to achieve this? Quote Link to comment https://forums.phpfreaks.com/topic/271837-creating-a-function-to-convert-existing-images-to-thumbnails/ Share on other sites More sharing options...
devilsvein Posted December 10, 2012 Share Posted December 10, 2012 (edited) function resize_image($image) { width: 50px; height: 50px; } something like that? Edited December 10, 2012 by devilsvein Quote Link to comment https://forums.phpfreaks.com/topic/271837-creating-a-function-to-convert-existing-images-to-thumbnails/#findComment-1398610 Share on other sites More sharing options...
1internet Posted December 10, 2012 Author Share Posted December 10, 2012 No, that would be too easy. I want to actually create thumbnails. More like imagejpeg() Quote Link to comment https://forums.phpfreaks.com/topic/271837-creating-a-function-to-convert-existing-images-to-thumbnails/#findComment-1398620 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.