aveeva Posted April 30, 2019 Share Posted April 30, 2019 I have folder with 100's images, how to find Height and width as Excel sheet? Quote Link to comment https://forums.phpfreaks.com/topic/308654-how-to-find-image-height-and-width-using-php-saved-as-excel/ Share on other sites More sharing options...
chhorn Posted April 30, 2019 Share Posted April 30, 2019 Directory traversal https://php.net/glob Image functions https://php.net/image Excel writers: https://duckduckgo.com/?q=php+excel Quote Link to comment https://forums.phpfreaks.com/topic/308654-how-to-find-image-height-and-width-using-php-saved-as-excel/#findComment-1566372 Share on other sites More sharing options...
requinix Posted April 30, 2019 Share Posted April 30, 2019 You say Excel but creating a CSV file will be very easy. You can always open with Excel and then re-save in whatever format. Quote Link to comment https://forums.phpfreaks.com/topic/308654-how-to-find-image-height-and-width-using-php-saved-as-excel/#findComment-1566373 Share on other sites More sharing options...
aveeva Posted April 30, 2019 Author Share Posted April 30, 2019 (edited) @requinix I have a folder with 100's images, how to find Height and width programmatically and output saved in Excel sheet? eg: folder name: img EXPECTED EXCEL SHEET: name height Width one.jpg 10 10 Edited April 30, 2019 by aveeva Quote Link to comment https://forums.phpfreaks.com/topic/308654-how-to-find-image-height-and-width-using-php-saved-as-excel/#findComment-1566374 Share on other sites More sharing options...
ginerjm Posted April 30, 2019 Share Posted April 30, 2019 height and width of a folder? Whatever does that mean? Quote Link to comment https://forums.phpfreaks.com/topic/308654-how-to-find-image-height-and-width-using-php-saved-as-excel/#findComment-1566376 Share on other sites More sharing options...
cyberRobot Posted April 30, 2019 Share Posted April 30, 2019 4 hours ago, aveeva said: I have a folder with 100's images, how to find Height and width programmatically and output saved in Excel sheet? @aveeva - Have you done any of these steps before? If not, try starting with something small. Instead of worrying about the entire folder of images, try using PHP to figure out the dimensions of a single image using the image functions suggested by chhorn earlier. Note that you can use your browser's search feature (Ctrl + F if you're using Windows) to easily locate the function that deals with image "width". Once you're comfortable with that, you could move to the next step. Quote Link to comment https://forums.phpfreaks.com/topic/308654-how-to-find-image-height-and-width-using-php-saved-as-excel/#findComment-1566378 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.