You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-13Lines changed: 22 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
# What is pyxlimg
2
2
3
-
Pyxlimg is for extracting images from xlsx. It has a high affinity with other libraries. This is because you can treat the image as an instance of Pillow.Image. I hope it will be incorporated into openpyxl and pylightxl in the future.
3
+
Pyxlimg is for extracting images from xlsx. It has a high affinity with other libraries. This is because you can treat the image as an instance of Pillow.Image.
4
4
5
-
# Concept
5
+
##Concept
6
6
7
7
Images are difficult to handle with xlwings, openpyxl, and pylightxl. Especially linter and type annotation are difficult. Complement these. And the goal is to make it easier to do OCR etc. using xlsx in Python.
8
8
9
-
# Install
9
+
##Install
10
10
11
11
Recommended to install using pip.
12
12
13
13
```sh
14
14
pip install pyxlimg
15
15
```
16
16
17
-
# Usage
17
+
##Usage
18
18
19
19
```py
20
20
fromPILimport Image
@@ -40,32 +40,41 @@ In this way, you can easily assign images to variable.
40
40
DisplayImage.show() # Show you the Image too.
41
41
```
42
42
43
-
# FAQ
43
+
## FAQ
44
44
45
-
## What image format does this support?
46
-
If it is supported by [Pillow](https://pypi.org/project/Pillow/), it can be supported. If the original image isin a commonly used format such as png, jpg, bmp when pasted or inserted into xlsx.
45
+
### What image format does this support?
47
46
48
-
## What kind of library is this supposed to be used with?
49
-
For example, `Tesseract OCR`, `pylightxl`, `openpyxl`, `matplotlib`. It is also ideal for matching with other `pillow` related libraries.
47
+
If it is supported by [Pillow](https://pypi.org/project/Pillow/), it can be supported. If the original image isin a commonly used format such as png, jpg, bmp when pasted or inserted into xlsx.
50
48
51
-
# How to Contribute
49
+
### What kind of library is this supposed to be used with?
52
50
53
-
Please do a git clone and pull request. The version control tool used in this repository is poetry.
51
+
For example, `Tesseract OCR`, `pylightxl`, `openpyxl`, `matplotlib`. It is also ideal for matching with other `pillow` related libraries.
54
52
55
53
## Build
56
54
57
55
How to build package.
58
56
59
-
```
57
+
```bash
60
58
poetry install
61
59
poetry shell
62
60
poetry build
63
61
```
64
62
65
63
How to build sphinx docs.
66
64
67
-
```
65
+
```bash
68
66
poetry export --with dev -f requirements.txt > requirements.txt
0 commit comments