Skip to main content

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!

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meural_photo_prep-1.0.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

meural_photo_prep-1.0.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page