Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,14 +1,64 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SVG Maker
|
| 2 |
+
|
| 3 |
+
This application converts raster images to SVG format and allows for basic styling of the resulting SVGs.
|
| 4 |
+
|
| 5 |
+
## Installation and Setup
|
| 6 |
+
|
| 7 |
+
1. Navigate to the SVGmaker directory:
|
| 8 |
+
```bash
|
| 9 |
+
cd flux_icon_generator/SVGmaker
|
| 10 |
+
```
|
| 11 |
+
|
| 12 |
+
2. Create and activate a virtual environment:
|
| 13 |
+
```bash
|
| 14 |
+
python -m venv venv
|
| 15 |
+
venv\Scripts\activate # On Windows
|
| 16 |
+
source venv/bin/activate # On macOS/Linux
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
3. Install the required Python packages:
|
| 20 |
+
```bash
|
| 21 |
+
pip install -r requirements.txt
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
4. Install Node.js if not already installed (https://nodejs.org/)
|
| 25 |
+
|
| 26 |
+
5. Install potrace globally using npm:
|
| 27 |
+
```bash
|
| 28 |
+
npm install -g potrace
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
6. Install SVGO for SVG optimization:
|
| 32 |
+
```bash
|
| 33 |
+
npm install svgo
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## Usage
|
| 37 |
+
|
| 38 |
+
1. Run the application:
|
| 39 |
+
```bash
|
| 40 |
+
python app.py
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
2. Upload one or more image files.
|
| 44 |
+
3. Adjust the stroke width, fill color, stroke color, and opacity as desired.
|
| 45 |
+
4. Set the desired output size.
|
| 46 |
+
5. Specify the output directory where you want the SVG files to be saved.
|
| 47 |
+
6. Click "Vectorize" to convert the images to SVG format.
|
| 48 |
+
7. The SVG files will be saved in the specified output directory, and you can also download them directly from the interface.
|
| 49 |
+
|
| 50 |
+
## Troubleshooting
|
| 51 |
+
|
| 52 |
+
If you encounter any issues:
|
| 53 |
+
1. Ensure Node.js and potrace are correctly installed.
|
| 54 |
+
2. Check that all Python dependencies are installed.
|
| 55 |
+
3. Make sure you're running the app from the correct directory.
|
| 56 |
+
4. Check the `svgmaker.log` file for error messages and debugging information.
|
| 57 |
+
|
| 58 |
+
## Log File
|
| 59 |
+
|
| 60 |
+
The application generates a log file (`svgmaker.log`) in the project directory. This file contains important information about the app's operation, including any errors that occur. If you encounter issues, please check this log file for more details.
|
| 61 |
+
|
| 62 |
+
## License
|
| 63 |
+
|
| 64 |
+
[Add your license information here]
|