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.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
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
File details
Details for the file gphotosalbum_jpegcompression-1.4.2.tar.gz
.
File metadata
- Download URL: gphotosalbum_jpegcompression-1.4.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20a223f00710d6c5849b3eb3c92b59d24b0f8af1d0db07ceccf2061266cde24e |
|
MD5 | 939e02fde7caf106501eb6160971445b |
|
BLAKE2b-256 | e143a6c7908d2928faa4b0e4d047c060cc9c8a312378dc0f9ab475e7e0f3db37 |