Sign in Join
Wiki copytemporary

LazPaint Command line: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: LazPaint Command line

OldNewLine
1+[[LazPaint|Go back]]
2+
3+### Command line
4+
5+General use :
6+
7+`lazpaint inputfile [/command1 [/command2...]] [outputfile]`
8+
9+Or
10+
11+`lazpaint inputfile [-command1 [-command2...]] [outputfile]`
12+
13+On Linux, the command prefix is "-".
14+
15+On Windows, the command prefix can be "-" or "/".
16+
17+#### Line without command
18+
19+You can omit commands to convert an image to another file format. For example :
20+
21+`lazpaint image.pdn image.png`
22+
23+will flatten and save a Paint.NET image into a PNG.
24+
25+#### Line without output file
26+
27+If you do not specify an output file, the application is opened with the resulting image. For example:
28+
29+`lazpaint image.png /RotateCW`
30+
31+will open the image with a 90° rotation.
32+
33+#### Line without input file
34+
35+You can also create an image out of nothing. For example :
36+
37+`lazpaint /New(800,600) /Gradient(255,255,255,255,0,0,0,255,Linear,0,0,800,600) blackwhite.png`
38+
39+will create an image with a black and white gradient and save it into blackwhite.png.
40+
41+#### General commands
42+
43+Here is the list of supported commands :
44+
45+- /HorizontalFlip : flips image horizontally
46+- /VerticalFlip : flips image vertically
47+- /SwapRedBlue : swaps red and blue channels
48+- /RotateCW : rotates image clockwise
49+- /RotateCCW : rotates image counterclockwise
50+- /Resample(Width,Height: Integer) : resample image to Width x Height
51+- /Opacity(Value: Byte) : applies a global factor to opacity
52+- /Gradient(red1,green1,blue1,alpha1,red2,green2,blue2,alpha2: Byte; type; x1,y1,x2,y2: Single) : draws a gradient. Type can be Linear, Reflected, Diamond or Radial.
53+- /New(Width,Height) : creates a new empty image of Width x Height
54+
55+For example :
56+
57+`lazpaint bigimage.bmp /Resample(320,200) smallimage.png`
58+
59+will save a small copy of bigimage.bmp into smallimage.png
60+
61+#### Filter commands
62+
63+You can apply filters with default values. Here is the list of filter commands:
64+
65+**Blur filters :** BlurPrecise, BlurRadial, BlurFast, BlurCorona, BlurDisk, BlurMotion, BlurCustom
66+
67+**Pixel filters :** Sharpen, Smooth, Median, ClearType, ClearTypeInverse, Emboss, Contour, Grayscale, Negative, LinearNegative, ComplementaryColor, Normalize, SmartZoom3
68+
69+**Deformation filters :** Sphere, Twirl, Cylinder, Plane
70+
71+**Rendering filters :** PerlinNoise, CyclicPerlinNoise, Clouds, CustomWater, Water, Wood, WoodVertical, Plastik, MetalFloor, Camouflage, SnowPrint, Stone, RoundStone, Marble
72+
73+For example :
74+
75+`lazpaint photo.jpg /Contour /Emboss /Normalize`
76+
77+will transform the image into a carved stone.
78+
79+---
80+*From the Free Pascal wiki, page "LazPaint Command line", as it stood on 2015-07-10 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
81+Category: LazPaint

Back to history