Skip to content

This PHP script resizes and compress all png/jpg images in a folder, keeping the same aspect ratio.

License

Notifications You must be signed in to change notification settings

shirshak007/Bulk-Image-Resize-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bulk-Image-Resize-PHP

This PHP script resizes and does compress all png/jpg images in a folder, keeping the same aspect ratio.

All you need is PHP installed in your PC.

For Debian 10/11: apt -y install php php-common php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath Or check this https://www.php.net/downloads.php

If all are set, then follow the below steps :

  • Open Terminal
  • cd Bulk-Image-Resize-PHP
  • chmod -R 777 . (. means current directory)
  • php resize.php

Check the resized folder which will be created automatically.

You are done !!

About

This PHP script resizes and compress all png/jpg images in a folder, keeping the same aspect ratio.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages