Module to assist in preparing photos for Netgear's Meural Canvas
Project description
Netgear Meural Photo Preparation
Python Package to prepare photos for use with Netgear Meural Picture Frames.
This package is not affiliated with Netgear in any way.
Netgear Meural Picture Frames require photos to be formatted in a specific way.
This package will prepare photos for use with Netgear Meural Picture Frames.
For more information on the Netgear Meural Picture Frames formatting need please visit
Netgear
Table of Contents
External Dependencies
Installation
Requirements
- Python 3.9+
PIP
pip install meural-photo-prep
Poetry
[tool.poetry]
name = "example-package"
version = "0.1.0"
description = ""
authors = ["Example developer <dev@example.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
meural-photo-prep = "^1.0.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Usage
Description
- Prepares photos for use with Netgear Meural Picture Frames.
- Copies photos from the input path to the output path.
- Removes special characters from the file name.
- Creates a thumbnail for each photo using the
Thumbnail()
method from Pillow.
- The thumbnail is created using the dimensions specified in the documentation above.
- The thumbnail is saved with the same name as the original photo with the addition of the .thumb extension.
- Function uses threading to process photos in parallel.
- NOTE: This may cause issues with memory usage as thread limits are not implemented in this version
be careful how many photos you give it!
- NOTE: This may cause issues with memory usage as thread limits are not implemented in this version
Example
import meural_photo_prep as mpp
mpp.prep_photos("<INPUT_PATH>", "<OUTPUT_PATH>")
Output
<OUTPUT_PATH>
|__ meural1
|__ img1.jpg # All names have special characters removed
|__ img1.jpg.thumb # Rendered by Pillow using Thumbnail() method
|__ img2.jpg
|__ img2.jpg.thumb
|__ img3.jpg
|__ img3.jpg.thumb
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file meural_photo_prep-1.0.1.tar.gz
.
File metadata
- Download URL: meural_photo_prep-1.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1036-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2be48f29c9e5ccf0e303cca80d194c5a0772e8239543d078c4ef353143312d2 |
|
MD5 | 94e8a15c1816dcbcabe6d96f02db71eb |
|
BLAKE2b-256 | 6e7cf3178c7c6f43a7666b7c99892e5e61b30d2db435277917827ac471d68784 |
File details
Details for the file meural_photo_prep-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: meural_photo_prep-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-1036-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38f06810c992c401708c8c027165bbaa67b59c7bec9cacc1f74ccd23e07a2537 |
|
MD5 | 7af7d75d31f2e74544df2f558d913309 |
|
BLAKE2b-256 | efb1f93f6ed1ff5c8c086535b2de5cd03f24826d5f8ad2dbd1a9fdaa42036d4c |