Problem:How to crop a specified region from DWG/DXF and convert it to BMP via command line?
Current command:
./dwg2bmp -platform offscreen -zoom-all -width=6000 -height=6000 -window 2000000,-573237.78,3552109.93,643795.06 -flat -f B.dwg
Issue:
Cropping by coordinates to BMP does not work.
Environment
Linux Centos7
Qcad 3.23.3
Expected output:
How to crop a specified region from DWG/DXF and convert it to BMP via command line?
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
-
dreamskyer
- Newbie Member
- Posts: 6
- Joined: Tue Jun 10, 2025 12:10 pm
How to crop a specified region from DWG/DXF and convert it to BMP via command line?
- Attachments
-
- Expected output.png (25.33 KiB) Viewed 28142 times
-
- B.dwg
- (6.3 MiB) Downloaded 302 times
- andrew
- Site Admin
- Posts: 8816
- Joined: Fri Mar 30, 2007 6:07 am
Re: How to crop a specified region from DWG/DXF and convert it to BMP via command line?
Try:
./dwg2bmp -platform offscreen -zoom-all -width=6000 -height=6000 -window=2000000,-573237.78,3552109.93,643795.06 -flat -f B.dwg
Note the = after -window.
Note that your window has a different format than your bitmap size. QCAD will center your window on the bitmap format.
./dwg2bmp -platform offscreen -zoom-all -width=6000 -height=6000 -window=2000000,-573237.78,3552109.93,643795.06 -flat -f B.dwg
Note the = after -window.
Note that your window has a different format than your bitmap size. QCAD will center your window on the bitmap format.