Skip to main content

Covert your photos to Excel file

Project description

photo_to_excel

This code allows you to convert your photo to excel format.

The Photo-to-Excel converter works in the following way:

  1. The photo you specify is first pixelated into 64x64 pixel format. (or any other size you specify)
  2. Colours are extracted from each of the pixels.
  3. Excel workbook is created, and the extracted colours are used to colour a grid of 64x64 cells in excel.

Instructions:

Create a PhotoToExcel object with the image path as the inpput. Then call the rgb_to_excel method to convert the photo to excel. The xlsx file will be saved in the same direcory and have the same name as the original image provided.

Example:

If you wanted to comemorate the Bush shoeing incident by converting the photo to excel, you would do the following:

from photo_to_excel import PhotoToExcel

test_img_path = "tests/test_photos/bush_shoeing_incident.jpg"

test_img = PhotoToExcel(test_img_path, save_pixelated=True)
test_img.rgb_to_excel()

By selecting save_pixelated=True, you can save the pixelated image that is used in the process of creating the excel file.

And here is your finished result:

Future releases will include adjustment for image dimention ratio, for now, you either have to calculate if yourself or use the default 64x64 pixel format and your photos will be a bit distorted.

Installation

You can install the package using pip:

pip install photo-to-excel

Issues

If you encounter any issues, please let me know by creating an issue on this repository. Sugestions are welcome too.

The purpose of the project:

You might ask 'why would I convert my photos to Excel?'. My response is: 'why not?'.

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

photo_to_excel-1.0.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

photo_to_excel-1.0.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file photo_to_excel-1.0.0.tar.gz.

File metadata

  • Download URL: photo_to_excel-1.0.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for photo_to_excel-1.0.0.tar.gz
Algorithm Hash digest
SHA256 417eeacbef1c893de0515128762baa72603a478dfca064145375c603765b310f
MD5 a8b4c784c1aac34fc053b93ee327473a
BLAKE2b-256 65280be73bfae63b6a66065d4b257c70ad8808ecb990c89a19d863b83155af26

See more details on using hashes here.

Provenance

The following attestation bundles were made for photo_to_excel-1.0.0.tar.gz:

Publisher: python-publish.yml on juliam98/photo_to_excel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file photo_to_excel-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: photo_to_excel-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for photo_to_excel-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c24528ba09ea4571bcecbc486dd41d8781e1cc8e872c901ee06819d8a473684
MD5 247f68b4a2db8a8036d20d6ec2348fa6
BLAKE2b-256 30792dcc3ce4416adc2035666dafd11a0f5d85fef5bde99217f846fa3d937695

See more details on using hashes here.

Provenance

The following attestation bundles were made for photo_to_excel-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on juliam98/photo_to_excel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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