Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Reduce file size of images (bulk)?

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! 🤝
[align=center][Image: 0zjTiqk.png]
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.
[Image: 9noGpJD.jpg?1]
- 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.
Web Designer / Developer & SEO Expert.

View Work
Earn 10% of the job you refer me to!

Skype aerox.design


Thanks guys, however I used this method. http://stackoverflow.com/a/20020267/6715805
[align=center][Image: 0zjTiqk.png]
(Feb 12, 2017 02:46 AM)N1l0c 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 🙂
In case anyone is interested in doing it offline, consider Image resizer for windows. Select, right click, pick options, and that's it.
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.
You see, Doctor, God didn't kill that little girl. Fate didn't butcher her and destiny didn't feed her to those dogs.
If God saw what any of us did that night he didn't seem to mind. From then on I knew... God doesn't make the world this way.
We do.
You could use Automate Tasks in Photoshop to cycle through all the images and batch-process their posterization individually.
http://morris-photographics.com/photosho...tions.html

Might take a while, but it would work.
[Image: bustabyte-hf-signature-box.png]
Read the topic Guys. Talking about resizing them in Linux and Like 25k at the Same time.
[align=center][Image: 0zjTiqk.png]


Possibly Related Threads...
Thread / Author Replies Views Last Post
by SkidyAug 26, 2016 02:45 AM 4 199 Aug 26, 2016 02:45 AM
Last Post: DJW09
by Wide AwakeDec 20, 2015 02:02 AM 0 85 Dec 20, 2015 02:02 AM
Last Post: Wide Awake
by CyberneticTitanSep 11, 2014 06:15 PM 3 105 Sep 11, 2014 06:15 PM
Last Post: Wired‌