• Stars
    star
    212
  • Rank 185,057 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Convert images to colored cells in an Excel spreadsheet.

img2xls

Convert images to colored cells in an Excel spreadsheet.

screenshot

Install dependencies

pip3 install Pillow
pip3 install xlwt3

Usage

usage: img2xls.py [-h] [--grid GRID GRID] {libre,ms,mac} image

positional arguments:
  {libre,ms,mac}    Choose the office package to use. | libre -> LibreOffice
                    xls | ms -> Microsoft Office xls | mac -> Mac Office xls
  image             Image which should be converted intoa spreadsheet

optional arguments:
  -h, --help        show this help message and exit
  --grid GRID GRID  Adds a grid to the resulting spreadsheet. Numbers
                    represent the number of pixels between vertical and
                    horizontal grid lines, respectively. 0 (zero) means no
                    grid on this axis.

Example

python3 img2xls.py libre image.png

image.png.libre.xls will be created.


If you want a grid in the resulting spreadsheet, you can pass the --grid option, as follows:

python3 img2xls.py libre --grid vertical_gap_in_px horizontal_gap_in_px image.png

Both values have to be specified. If you don't want grid lines on an axis just set this value to 0. Negative values are ignored.

screenshot2

More Repositories

1

FunctionalPlus

Functional Programming Library for C++. Write concise and readable C++ code.
C++
2,071
star
2

articles

thoughts on programming
Python
1,576
star
3

frugally-deep

A lightweight header-only library for using Keras (TensorFlow) models in C++.
C++
1,059
star
4

programming-language-subreddits-and-their-choice-of-words

How do the different communities talk?
Python
819
star
5

undictify

Python library providing type-checked function calls at runtime
Python
98
star
6

Breakout

A clone of the classical game for your browser.
Elm
57
star
7

Maze

Test your mouse precision skills with this simple maze game.
Elm
40
star
8

treebomination

convert a scikit-learn decision tree into a Keras model
Python
39
star
9

enterprython

Python library providing type-based dependency-injection
Python
32
star
10

Demoscene-Concentration

The classical memory game with old school demoscene effects.
Elm
29
star
11

All-Colors

Create (hopefully beautiful) images from many different colors.
C++
23
star
12

RedditTimeMachine

Check out what was hot on reddit days/weeks/months ago.
Elm
22
star
13

Barcode-Generator

Generate EAN/UPC-A barcodes in your browser.
JavaScript
7
star
14

EditGym

Text editing training
Elm
6
star
15

divine-or-benign

The holy Turing test
Elm
4
star
16

yo_dawg_ml_model_architecture

decision trees with other model as nodes
Python
3
star
17

HackerRank-solutions

This repo is just a container for me to manage my solutions to the challenges on HackerRank.com
Haskell
3
star
18

bouncing-spheres

A very simplistic raytracer - implemented in Rust
Rust
3
star
19

rill

Python library providing simple text-stream processing functionality
Python
2
star
20

Multitouch-Transformation-Demo

small Demonstration of calculating and applying different transformation types by user input (1, 2, 3 and 4 fingers)
Elm
2
star
21

pick-and-gloat

Use your thinking and reaction to compete with friends.
Elm
1
star
22

Dron

Tron/Snake game
C++
1
star
23

Behagolit

a toy programming language experiment
Python
1
star