Metadata-Version: 2.1
Name: Img2STL
Version: 1.3.0rc2
Summary: Application for converting images to STL (3D model for printing)
Home-page: https://github.com/baskiton/Img2STL
Author: Alexander Baskikh
Author-email: baskiton@gmail.com
License: MIT
Project-URL: Bug Tracker, https://github.com/baskiton/Img2STL/issues
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# Img2STL
[![PyPI](https://img.shields.io/pypi/v/Img2STL)](https://pypi.org/project/Img2STL/)
[![PyPI - Status](https://img.shields.io/pypi/status/Img2STL)](https://pypi.org/project/Img2STL/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/Img2STL)](https://pypi.org/project/Img2STL/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/Img2STL)](https://pypi.org/project/Img2STL/)
[![PyPI - License](https://img.shields.io/pypi/l/Img2STL)](https://github.com/baskiton/Img2STL/blob/main_py/LICENSE)

Application for converting images to STL (3D-model for printing)

## Installing
Before installing, make sure you have Python version 3.7 or higher installed.\
Otherwise, install it from [python site][python_site]

Then type to console:\
`pip install Img2STL`

###### For Linux users:
You need to manually install the wxPython package following the [instructions here][wx_site]

## Usage
After install, you may launch this app with next command:\
`python -m Img2STL`

The program window is as follows:
![img](docs/main_frame.png)

###### Open Image
 * `Open Image(s)` Opens one or more images
 * `Auto Crop` Automatic cropping of opened files
 if there are transparent areas

###### Property
 * `Density` Pixel size on a real model in mm
 * `Max/Min Height` Max/Min thickness of the model in mm
 * `Mask Mode`: `Transparency` `Color` Choose a base color that will not be
 used when creating the model (mask)
 * `Height Mode`: `Black` `White` During image processing, a copy of it in
 grayscale will be created. If the "Black" mode is selected, the darker the
 pixel, the greater the thickness of the final model in the place corresponding
 to this pixel, and vice versa, if the "White" mode is selected

###### Exit File
 * Choose a place to save files.
 * `STL Format`: `ASCII` / `BIN` Choose a method to save the destination file.
ASCII is a plain text file. BIN is a binary format. It is recommended to use
a binary format, as large models in text format can have a very large size

###### Execute
 * `Execete` Begin the process of converting
 * This shows the progress of execution of conversion

###### Palette
 * The color palette of the selected file is displayed here. The "amount" field
 shows the number of pixels of the corresponding color in the "color" field

###### Image field
All open files are displayed here. Access to them is carried out on tabs with
file names

#### Exit file
In the end, a stl file with a 3D model will be created, which can be viewed 
using the appropriate application (for example, the 3DView plugin for Google
Chrome browser):
![img](docs/example.png)


[python_site]: https://www.python.org/
[wx_site]: https://wxpython.org/pages/downloads/


