How I reduce conversion time using dwg2bmp

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
hwjeon
Registered Member
Posts: 2
Joined: Thu Jan 03, 2019 1:34 am

How I reduce conversion time using dwg2bmp

Post by hwjeon » Thu Jan 03, 2019 2:53 am

QCAD version : Professional 3.21.3
OS : centos 7 64bit

I need convert dwg file to image file programmatically, so tried using dwg2bmp

I tried below command. caffile.dwg size is 1.2Mb
./dwg2bmp -a -f -q 0 -x 5000 -y 5000 -o ./cadfile.png ./cadfile.dwg

for test, use my notebook installed windows 10 pro, run command. result take 15 sec

but, run on server takes very long time 45 sec which installed centos 7

changed -x and -y options 5000 to 500 and retry, but it take 35 sec...

My notebook`s CPU is i7-7700hq 2.8 ghz and has 16Gb RAM
Server`s CPU is Xeon E5-4620 2.20GHz and has 16Gb RAM

I think two CPUs Performance diffrence is little, but dwg2bmp result time show me very diffrent

How I reduce time convert dwg to image using dwg2bmp?

I want convertion time more faster should be in 10sec

dwg2bmp has more option for time? or did you know another way?

User avatar
andrew
Site Admin
Posts: 9059
Joined: Fri Mar 30, 2007 6:07 am

Re: How I reduce conversion time using dwg2bmp

Post by andrew » Thu Jan 03, 2019 11:55 am

You might want to try with an empty or minimal DXF or DWG file to check if the delay is caused by loading the application / creating the bitmap or by loading the DXF/DWG file. If an empty file is slow to convert as well, the disk on the server might be slower.

hwjeon
Registered Member
Posts: 2
Joined: Thu Jan 03, 2019 1:34 am

Re: How I reduce conversion time using dwg2bmp

Post by hwjeon » Fri Jan 04, 2019 1:36 am

I tried 17kb DWG file, it take 8sec. Changed -x -y options 5000 to 500 take 1 sec

Guess delay caused not disk, depend on cpu performance

CPU usage via TOP command show me converting process used only 1 core, but CPU has 8 core

Have any option or command for convert using multiple core?

And if you know average time convert DWG to image by dwg2bmp, please tell me that

Post Reply

Return to “QCAD 'How Do I' Questions”