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:
- The photo you specify is first pixelated into 64x64 pixel format. (or any other size you specify)
- Colours are extracted from each of the pixels.
- 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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
417eeacbef1c893de0515128762baa72603a478dfca064145375c603765b310f
|
|
| MD5 |
a8b4c784c1aac34fc053b93ee327473a
|
|
| BLAKE2b-256 |
65280be73bfae63b6a66065d4b257c70ad8808ecb990c89a19d863b83155af26
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
photo_to_excel-1.0.0.tar.gz -
Subject digest:
417eeacbef1c893de0515128762baa72603a478dfca064145375c603765b310f - Sigstore transparency entry: 177364961
- Sigstore integration time:
-
Permalink:
juliam98/photo_to_excel@d308bd009a00cc9a4748eb8de17800f7ecbe0038 -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/juliam98
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d308bd009a00cc9a4748eb8de17800f7ecbe0038 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c24528ba09ea4571bcecbc486dd41d8781e1cc8e872c901ee06819d8a473684
|
|
| MD5 |
247f68b4a2db8a8036d20d6ec2348fa6
|
|
| BLAKE2b-256 |
30792dcc3ce4416adc2035666dafd11a0f5d85fef5bde99217f846fa3d937695
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
photo_to_excel-1.0.0-py3-none-any.whl -
Subject digest:
2c24528ba09ea4571bcecbc486dd41d8781e1cc8e872c901ee06819d8a473684 - Sigstore transparency entry: 177364965
- Sigstore integration time:
-
Permalink:
juliam98/photo_to_excel@d308bd009a00cc9a4748eb8de17800f7ecbe0038 -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/juliam98
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d308bd009a00cc9a4748eb8de17800f7ecbe0038 -
Trigger Event:
release
-
Statement type: