Compare commits

8 Commits
web-app ... cli

Author SHA1 Message Date
301421e29f Fix README to reflect correct text offset 2026-04-11 13:01:46 -04:00
e62fa8869f Add text inset for better adhesion
- Increase text thickness to 2.3mm (base 2.0mm + 0.3mm inset compensation)
- Adjust text Z offset to 2.7mm to inset text into background
- Total height remains at 5mm
- Update README to reflect new text thickness
2026-04-11 13:01:05 -04:00
444dd80a73 Add text inset logic for better 3D print adhesion
- Increase text thickness to 2.3mm (base 2.0mm + 0.3mm inset compensation)
- Adjust text Z offset to 2.7mm to inset text into background
- Total height remains at 5mm
- Update README to reflect new text thickness
2026-04-11 12:38:19 -04:00
ba7c039d26 Fix Link (From WebApp branch) 2026-02-14 20:09:37 -05:00
unfunny
71c6cc6266 Update README.md 2026-02-14 20:04:53 -05:00
unfunny
e5ec87cf3d Upload files to "/" 2026-02-14 20:04:31 -05:00
unfunny
862458d97e Update README.md 2026-02-14 19:56:51 -05:00
unfunny
b5df3a8e97 add readme.md n stuff 2026-02-14 19:53:13 -05:00
4 changed files with 30 additions and 3 deletions

3
.gitignore vendored
View File

@@ -1,2 +1,3 @@
.venv/
nametags/
stls/

24
README.md Normal file
View File

@@ -0,0 +1,24 @@
# svg2nametag-Ren
<p align="center">
<img src="/pwa-512x512.png" alt="Logo" width="128">
</p>
## Overview
**svg2nametag-Ren** converts 2D SVG designs into 3D printable nametags. It automatically splits your design into separate files for different colors, making it easy to print multi-color nametags on printers like the Bambu Lab series.
For detailed setup and usage guides, please check out the **[Wiki](https://git.randomhack.com/Retro/svg2NameTag-Ren.git)**.
## Physical Dimensions
The program automatically scales all designs to these specific measurements for a consistent, professional look:
- **Total Width**: 87.80 mm
- **Background Thickness**: 3.0 mm
- **Background Thickness**: 3.0 mm
- **Text/Detail Thickness**: 2.3 mm (includes 0.3mm inset compensation)
- **Text/Detail Offset**: 2.7 mm (Text is inset into background for better adhesion)
- **Total Height**: 5.0 mm
## Ways to Use
- **Web App**: The easiest way! Just open the web page, drag your files in, and download the results. No installation required.
- **Python Tool**: For advanced users who want to process hundreds of files at once using the command line. Requires Python 3.12 or higher and some basic knowledge of the command line.

View File

@@ -15,8 +15,8 @@ logger = logging.getLogger(__name__)
# Constants based on specs
BACKGROUND_THICKNESS = 3.0
TEXT_THICKNESS = 2.0
TEXT_Z_OFFSET = 3.0 # Starts on top of background
TEXT_THICKNESS = 2.0 + 0.3 # 2.3mm (base 2.0 + 0.3mm for inset compensation)
TEXT_Z_OFFSET = 3.0 - 0.3 # 2.7mm - starts inset into background
CURVE_RESOLUTION = 64 # number of segments per circle
# SVG Class mappings
@@ -205,6 +205,8 @@ def create_extrusion(paths, height, z_offset=0.0, scale=1.0):
else:
mesh = trimesh.util.concatenate(meshes)
mesh.apply_translation([0, 0, z_offset])
return mesh
except Exception as e:

BIN
pwa-512x512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB