![]() |
|
Reduce file size of images (bulk)? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141) +---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50) +---- Thread: Reduce file size of images (bulk)? (/showthread.php?tid=5548908) |
Reduce file size of images (bulk)? - N1l0c - Feb 11, 2017 Hey HF, I'm going to host a website with about 25k images, and about 100 are being displayed at one time. Now I need to reduce their file size to minimize the load time. Do you have any suggestions on how to do so on every image automatically? (not one by one) I appreciate every help! 🤝 * - wanbetaaler - Feb 11, 2017 What do you mean with quote"NOT ONE BY ONE"end quote ? if you want to minimize each image you need to do that with a foreach loop or while loop for each image, you need to compress them, their are tons of php libarys that do this for you, just google it bro. * - Rushax - Feb 11, 2017 - TinyPNG has a drag & drop feature to let you do multiple. Without pro you can only upload below 5MB pictures. - If the site is on WordPress the WP-Smush It plugin can compress images for you. - PHP Librarys as suggested by wanbetaler - Implement a lazy load feature Depends whether the job is users uploading the images or you/admin. * - N1l0c - Feb 12, 2017 Thanks guys, however I used this method. http://stackoverflow.com/a/20020267/6715805 * - Nerdi - Feb 12, 2017 (Feb 12, 2017 02:46 AM)Int3rp0l Wrote: Thanks guys, however I used this method. http://stackoverflow.com/a/20020267/6715805 Nice, thanks for coming back and telling us what you chose to do 🙂 * - Deeled - Feb 12, 2017 In case anyone is interested in doing it offline, consider Image resizer for windows. Select, right click, pick options, and that's it. * - Squito - Feb 13, 2017 If you don't bother downloading and uploading, then IrfanView is also a good option. Also depending on the size and amount of images it may take longer to write the script and execute it. * - Riggs - Feb 13, 2017 You could use Automate Tasks in Photoshop to cycle through all the images and batch-process their posterization individually. http://morris-photographics.com/photoshop/tutorials/actions.html Might take a while, but it would work. * - N1l0c - Feb 14, 2017 Read the topic Guys. Talking about resizing them in Linux and Like 25k at the Same time. |