Skip to main content

Takes Google Photos Album (visible to anyone with url) and produces a zip file with compressed JPEGS.

Project description

For more information about the author, visit LinkedIn.

Python Package - gPhotosAlbum_JPEGcompression

Overview

Short Description: Takes Google Photos Album (visible to anyone with url) and produces a zip file with compressed JPEGS.

USP:

  • The JPEGS retain the metadata.
  • 1.5x to 15x reduction in file size depending on the JPEG.
  • Larger files with higher megapixel undergo very good compression.
  • Almost perfect image clarity up to 250% magnification.

Release Notes

version 1.4.3

  • Some fixes (as always).

version 1.4.2

  • First public release of gPhotosAlbum_JPEGcompression.
  • JPEGS retain metadata.

Installation

You can install the package using pip:

pip install gPhotosAlbum_JPEGcompression

Methods

compress_GoogleAlbum_jpeg

Takes the Google Photos Album url as Input. Ensure that the Photos are set to "Accesible by anyone with the url".

Returns: A zip file of the compressed images (JPEGs).

from gPhotosAlbum_JPEGcompression import compress_GoogleAlbum_jpeg


googleAlbumURL = "https://photos.app.goo.gl/loremimpsunm56"

compress_GoogleAlbum_jpeg(googleAlbumURL)

Parameters:

  • googleAlbumURL (str): Photos album Url.
  • stats (Boolean, Optional, default="True"): Progress bar and stats.
  • output_path (str, Optional, default=current directorty): The output path for the zip file, Kindly ensure the directories exist..
  • imageXpath (str, Optional, default=xpath): Xpath for webscrpaing purposes, only provided as optional to use if Google changes the xpath.
  • url_prefix (str, Optional , default="https://photos.google.com/"): Url prefix used for Webscraping, setting as an optional variable for future proofing and handling changes.

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

gphotosalbum_jpegcompression-1.4.3.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file gphotosalbum_jpegcompression-1.4.3.tar.gz.

File metadata

File hashes

Hashes for gphotosalbum_jpegcompression-1.4.3.tar.gz
Algorithm Hash digest
SHA256 98b6ed57c0e37a25f832a2f1186c866b228f122a3991228cc3a55dd26b155f5d
MD5 365eb940cad7d84c0115172bf0137fc9
BLAKE2b-256 f7dfb773170ffb2d7b8f82bd84613dfbc9930af136ab22a686cd530227b47eda

See more details on using hashes here.

File details

Details for the file gPhotosAlbum_JPEGcompression-1.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for gPhotosAlbum_JPEGcompression-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8d77cff9efd24f2d6631f527cb723486a1827477b347896a5287aa2df6cd02e5
MD5 03031d3b00e5af33359e3a133f31035c
BLAKE2b-256 e66ad73ce7bcae3cb925aad10e408aceb3d8bbeb4ffdad4e3eb30c5674ddf7f8

See more details on using hashes here.

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