A WordPress plugin that allows uploading images that are resized and compressed client side before getting sent to the WordPress.
- Unzip the plugin in
/wp-content/plugins/
- Install and activate the plugin by browsing
/wp-admin/plugins.php
- Navigate to
Media -> Compress then Upload
- Upload some files
- Enjoy!
- cd to
wp-content/plugins/compress-then-upload/front/
- Run
npm install
- Enable dev environment by setting
define( 'WPCTU_DEV_ENV', true );
inwp-config.php
- Run
npm run start:craco
to watch for changes and navigate to/wp-admin/upload.php?page=wpctu
- Run
npm run build:craco
to create production build
- Sequencial image upload
- Add proper error handling for uploading images
Feel free to contribute to this plugin!