Skip to content

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

ImageOrganization

为满足个人日常图片管理需求而诞生的实用小工具库,非常简单,图片分类目前只能按照大小和数量分类,更多功能正在开发

一、基本用法

1、前提

已安装python,可直接在cmd下使用

2、执行方法

简单修改代码设置参数后,直接在cmd下执行.py文件即可,如python Image_management.py,可根据需要选择要执行的文件

二、工程简介

1、image_organizer_multilingual.py

需求背景

图片文件过多,需要简单整理

参数设置:

①指定要整理的文件夹路径

修改文件Image_management.py中的dir = r'E:\Paper' 请查看更新

②设置文件夹容量

修改文件Image_management.py中的max_files_per_folder=0,该参数指定每个文件夹下文件个数上限,0表示无限制

示例1:仅按大小分类(无数量限制)

python

organize_images_by_size(dir, size_threshold=100, max_files_per_folder=0)

示例2:按大小分类,每个文件夹最多20张

python

organize_images_by_size(dir, size_threshold=100, max_files_per_folder=20)

示例3:仅按数量分类(忽略大小差异)

python

organize_images_by_size(dir, size_threshold=1000000, max_files_per_folder=30)
# 设置很大的阈值,让大小差异条件基本不会触发

整理前:

屏幕截图 2025-09-05 151416

整理后:

屏幕截图 2025-09-05 151530

更新:

2025.9.7 重大更新: 1.新增了GUI界面,现在只需要在选择模式和地址即可 2.界面会根据计算机系统语言自动更改语言,也可在左上角自行选择

9.13 1.修复文字显示错误 2.新增删除重复

屏幕截图 2025-09-07 232646

About

A Python script that automatically organizes images in a directory into subfolders based on their file size and an optional limit on the number of files per folder. More features are under development.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages