Skip to content

eliehanna0/WP-Compress-Then-Upload

Repository files navigation

Compress Then Upload

A WordPress plugin that allows uploading images that are resized and compressed client side before getting sent to the WordPress.

Demo

wpctu_demo

Installation

  • Unzip the plugin in /wp-content/plugins/
  • Install and activate the plugin by browsing /wp-admin/plugins.php

Usage

  • Navigate to Media -> Compress then Upload
  • Upload some files
  • Enjoy!

Development

  • cd to wp-content/plugins/compress-then-upload/front/
  • Run npm install
  • Enable dev environment by setting define( 'WPCTU_DEV_ENV', true ); in wp-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

Todo

  • Sequencial image upload
  • Add proper error handling for uploading images

Feel free to contribute to this plugin!

About

WordPress plugin that allows resizing and compressing images before uploading them to the media library.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published