Skip to content

DNYFZR/py-dwg-to-img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DWG to PNG Converter

A small program for converting a DWG file to a PNG image & saving it in the same directory.

  • The process will create a couple of temporary files in the directory, but they will be removed when the PNG has been saved.

  • Sample data source : ArcGIS

  • Run sync to install project dependencies locally

  • Testing requires Pytest (installed if sync is run)

  • External binaries :

    • ODA File Converter : used to convert DWG to open DXF format
    • Inkscape : used to convert SVG to PNG format

Run commands

Check pyproject for system requirements

# Setup local env
python -m venv .venv
./.venv/scripts/activate

# Install pyproject dependencies
python -m sync

# Run DWG conversion
python -m src.process_dwg "tests/data/CoL_WaterUtility_Sept25_2024.dwg"

About

📸 Convert CAD drawings to PNG images

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published