Img2Length is a Python application that calculates the total length of images in a folder based on their widths. It supports various units of measurement, including miles, meters, yards, kilometers, centimeters, and millimeters.
- Select a folder containing image files (JPG, JPEG, PNG)
- Choose the desired unit of measurement (mile, meter, yard, km, cm, mm)
- Option to include or exclude subfolders in the calculation
- Display the total length of all images in the selected folder
- Show folder statistics (total number of images, total file size, unique dimensions, smallest and highest resolutions)
- Python 3.x
- PySide6 (Qt for Python)
- Pillow (Python Imaging Library)
Method 1:
- Download pre-compiled binary from Releases (Windows only currently)
- Run Img2Length.exe
Method 2:
- Clone the repository or download the source code.
- Install the required dependencies using pip:
pip install PySide6 Pillow
- Run the
img2length.py
script. - Click the "Browse" button to select the folder containing the images.
- Choose the desired unit of measurement from the dropdown menu.
- Check or uncheck the "Include subfolders?" checkbox to include or exclude subfolders in the calculation.
- The total length of all images in the selected folder will be displayed in the "Total Length:" label.
- Click the "Folder Info" menu item to view folder statistics in a separate dialog.
Performance can suffer reading folders with large quantities of sub-folders No icons Progress bar not functioning
- Error logging
- Optional Saving of Stats/Metadata
- Additional file formats
- Different modes including Length and Area
- UI Rework/Improvement
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the GNU General Public License v3.0 License.