tonythomas01 / gdrive-to-commons

Tool to upload pictures from Google Drive to Wikimedia Commons ⚠️ Moved to Wikimedia Gerrit, so this repo is read only.
https://gdrive-to-commons.toolforge.org/
Apache License 2.0
9 stars 10 forks source link

Add: Image Compression #30

Open abbasidaniyal opened 4 years ago

abbasidaniyal commented 4 years ago

I have implemented a basic resizing function. It resizes the image to a fixed max-width and then resizes the height accordingly. Let me know you thoughts on this @tonythomas01 @srish fixes #18

tonythomas01 commented 4 years ago

To be honest, I would want to make this optional actually. Most people would not want to do this as Wikimedia Commons welcome images in total size.

abbasidaniyal commented 4 years ago

To be honest, I would want to make this optional actually. Most people would not want to do this as Wikimedia Commons welcome images in total size.

I have added a checkbox field before the upload button. If checked, we will be resizing the image, else original image will be uploaded!

abbasidaniyal commented 4 years ago

@tonythomas01 Should I try some other approach for this?

tonythomas01 commented 4 years ago

Sorry for the late reply, but now that we have the setup in place, lets make sure to add this to a future user study or something like that. We have to evaluate if people really like this.