1EZDXF-PILLOW(1) User Commands EZDXF-PILLOW(1)
2
3
4
6
8 ezdxf pillow [-h] [-o OUT] [-l LAYOUT] [-i IMAGE_SIZE] [-b BACKGROUND]
9 [-r OVERSAMPLING] [-m MARGIN] [-t {0,1,2,3}] [--dpi DPI] [-v] [FILE]
10
12 An advantage over the ezdxf-draw(1) command is the speed and much less
13 memory usage; a disadvantage is the lower text rendering quality. The
14 speed advantage is lost for the text modes OUTLINE and FILLED, because
15 the text-path rendering is done by Matplotlib, but the advantage of the
16 lower memory consumption remains.
17
19 POSITIONAL ARGUMENTS
20 FILE DXF file to draw
21
22 OPTIONAL ARGUMENTS
23 -h, --help
24 show a help message and exit
25
26 -o OUT, --out OUT
27 output filename, the filename extension defines the image format
28 (.png, .jpg, .tif, .bmp, ...)
29
30 -l LAYOUT, --layout LAYOUT
31 name of the layout to draw, default is “Model”
32
33 -i IMAGE_SIZE, --image_size IMAGE_SIZE
34 image size in pixels as “width,height”, default is "1920,1080",
35 “1920,1080”, supports also “x” as delimiter like “1920x1080”. A
36 single integer is used for both directions e.g. “2000” defines
37 an image size of 2000x2000. The image is centered for the
38 smaller DXF drawing extent.
39
40 -b BACKGROUND, --background BACKGROUND
41 override background color in hex format “RRGGBB” “RRGGBBAA”,
42 e.g. use “FFFFFF00” to get a white transparent background and a
43 black foreground color (ACI=7), because a light background gets
44 a black foreground color or vice versa “00000000” for a black
45 transparent background and a white foreground color.
46
47 -r OVERSAMPLING, --oversampling OVERSAMPLING
48 oversampling factor, default is 2, use 0 or 1 to disable over‐
49 sampling
50
51 -m MARGIN, --margin MARGIN
52 minimal margin around the image in pixels, default is 10
53
54 -t {0,1,2,3}, --text-mode {0,1,2,3}
55 text mode: 0=ignore, 1=placeholder, 2=outline, 3=filled, default
56 is 2
57
58 --dpi DPI
59 output resolution in pixels/inch which is significant for the
60 linewidth, default is 300
61
62 -v, --verbose
63 give more output
64
66 See ezdxf(1).
67
69 See ezdxf(1).
70
72 Convert the DXF file “gear.dxf” into a PNG file by the Pillow backend:
73
74 $ ezdxf pillow -o gear.png gear.dxf
75
77 ezdxf(1)
78
79 ezdxf-pp(1), ezdxf-audit(1), ezdxf-draw(1), ezdxf-view(1),
80 ezdxf-browse(1), ezdxf-browse-acis(1), ezdxf-strip(1), ezdxf-config(1),
81 ezdxf-info(1)
82
83
84
85 September 2022 EZDXF-PILLOW(1)