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? 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 function resize_image($image) { width: 50px; height: 50px; } something like that? 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() 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
Archived
This topic is now archived and is closed to further replies.