Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compress images before upload #18

Open
igeligel opened this issue Jun 16, 2019 · 3 comments · May be fixed by #30
Open

Compress images before upload #18

igeligel opened this issue Jun 16, 2019 · 3 comments · May be fixed by #30
Labels
enhancement New feature or request

Comments

@igeligel
Copy link

igeligel commented Jun 16, 2019

Description

Caring about file size on internet pages it might be a good idea to compress images lossless when uploading them to Wikimedia Commons. As described on this Google site: https://web.dev/use-imagemin-to-compress-images it is fine to compress images losslessly.

Current State

Images are not uploaded compressed.

Expected State

Images should be uploaded compressed. This can be achieved with imagemin (https://github.com/imagemin/) for example. I do not know if there is a Python solution/wrapper which could be applied here.

The process would be:

  1. Selection of files
  2. Retrieve files from Google Drive
  3. Compressing of images
  4. Upload to Wikimedia Commons
@tonythomas01 tonythomas01 added the enhancement New feature or request label Jun 18, 2019
@abbasidaniyal
Copy link
Contributor

abbasidaniyal commented Mar 7, 2020

I would like to take this issue up. Should I try to strip the metadata or compress the image itself?

@NdibeRaymond
Copy link

NdibeRaymond commented Mar 8, 2020

Hello, I am an outreachy aspirant and I would love to take up this task @tonythomas01

@abbasidaniyal
Copy link
Contributor

@tonythomas01 I was planning to use picopt package. It is similar to imagemin. Or else, I can use Pillow to reduce the quality of the image. Which approach should I take?

@abbasidaniyal abbasidaniyal linked a pull request Mar 8, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants