@@ -72,29 +72,27 @@ def image( # noqa: PLR0913
72
72
{perspective}
73
73
{transparency}
74
74
"""
75
- kwargs = self ._preprocess (** kwargs )
76
-
77
- kwdict = (
78
- AliasSystem (
79
- R = Alias (region , separator = "/" ),
80
- J = Alias (projection ),
81
- D = [
82
- Alias (position , separator = "/" , prefix = position_type ),
83
- Alias (dimension , prefix = "+w" , separator = "/" ),
84
- Alias (repeat , prefix = "+n" , separator = "/" ),
85
- Alias (offset , prefix = "+o" , separator = "/" ),
86
- Alias (dpi , prefix = "+r" ),
87
- ],
88
- F = Alias (box ),
89
- G = Alias (bitcolor ),
90
- M = Alias (monochrome ),
91
- V = Alias (verbose ),
92
- c = Alias (panel , separator = "," ),
93
- p = Alias (perspective , separator = "/" ),
94
- t = Alias (transparency ),
95
- ).kwdict
96
- | kwargs
75
+ alias = AliasSystem (
76
+ R = Alias (region , separator = "/" ),
77
+ J = Alias (projection ),
78
+ D = [
79
+ Alias (position , separator = "/" , prefix = position_type ),
80
+ Alias (dimension , prefix = "+w" , separator = "/" ),
81
+ Alias (repeat , prefix = "+n" , separator = "/" ),
82
+ Alias (offset , prefix = "+o" , separator = "/" ),
83
+ Alias (dpi , prefix = "+r" ),
84
+ ],
85
+ F = Alias (box ),
86
+ G = Alias (bitcolor ),
87
+ M = Alias (monochrome ),
88
+ V = Alias (verbose ),
89
+ c = Alias (panel , separator = "," ),
90
+ p = Alias (perspective , separator = "/" ),
91
+ t = Alias (transparency ),
97
92
)
98
93
94
+ kwargs = self ._preprocess (** kwargs )
99
95
with Session () as lib :
100
- lib .call_module (module = "image" , args = build_arg_list (kwdict , infile = imagefile ))
96
+ lib .call_module (
97
+ module = "image" , args = build_arg_list (alias .kwdict | kwargs , infile = imagefile )
98
+ )
0 commit comments