Fedora Project

Image manipulation with python

Bulk Images can sometimes be a lot time consuming if they need a marginal edit or a change in size, thus we want a help from you...
Create a python script that that scales images by 400 by 400 or less pixels and make sure they images won't exceed 64 kilobytes after the edit. for that you should mess with jpeg quality settings. The script should ask for the directory of the files, do the edit and finally save it in the same directory in a new folder. You are allowed to use pip packages. We are looking at high amounts here, so your code should ask for folder, and not the file, one by one.
The aspect ratio shouldn't change.(one of the side should be 400 while the other can be 400 or less)

Task tags

  • python
  • image

Students who completed this task

DefinitelyNotAshnxious, synnek, sp2956, ujik, Ruan, Minecraftian14, QueueHuo, m1m3, Antagon, cfalas, weakit, Abtaha, Trzyq, Sash713, paraxor, Shuhui, Shadowblade, JYu07, Eric Chen, geek123, simon7l7, strawberryshaker2005, EmperorAj, VH-tech, DeltaDeveloper, Blue112, Mukundan314, Ayush19, Suhas

Task type

  • code Code
close

2019