Sign in Join
Wiki copytemporary

LazPaint Command line: what changed

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

OldNewLine
11[[LazPaint|Go back]]
22
33### Command line
44
55General use :
66
7-`lazpaint inputfile [/command1 [/command2...]] [outputfile]`
7+```text
8+lazpaint inputfile [/command1 [/command2...]] [outputfile]
9+```
810
911Or
1012
11-`lazpaint inputfile [-command1 [-command2...]] [outputfile]`
13+```text
14+lazpaint inputfile [-command1 [-command2...]] [outputfile]
15+```
1216
1317On Linux, the command prefix is "-".
1418
1519On Windows, the command prefix can be "-" or "/".
1620
1721#### Line without command
1822
1923You can omit commands to convert an image to another file format. For example :
2024
21-`lazpaint image.pdn image.png`
25+```text
26+lazpaint image.pdn image.png
27+```
2228
2329will flatten and save a Paint.NET image into a PNG.
2430
2531#### Line without output file
2632
2733If you do not specify an output file, the application is opened with the resulting image. For example:
2834
29-`lazpaint image.png /RotateCW`
35+```text
36+lazpaint image.png /RotateCW
37+```
3038
3139will open the image with a 90° rotation.
3240
3341#### Line without input file
3442
3543You can also create an image out of nothing. For example :
3644
37-`lazpaint /New(800,600) /Gradient(255,255,255,255,0,0,0,255,Linear,0,0,800,600) blackwhite.png`
45+```text
46+lazpaint /New(800,600) /Gradient(255,255,255,255,0,0,0,255,Linear,0,0,800,600) blackwhite.png
47+```
3848
3949will create an image with a black and white gradient and save it into blackwhite.png.
4050
4151#### General commands
4252
4353Here is the list of supported commands :
4454
4555- /HorizontalFlip : flips image horizontally
4656- /VerticalFlip : flips image vertically
4757- /SwapRedBlue : swaps red and blue channels
4858- /RotateCW : rotates image clockwise
4959- /RotateCCW : rotates image counterclockwise
5060- /Resample(Width,Height: Integer) : resample image to Width x Height
5161- /Opacity(Value: Byte) : applies a global factor to opacity
5262- /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.
5363- /New(Width,Height) : creates a new empty image of Width x Height
5464
5565For example :
5666
57-`lazpaint bigimage.bmp /Resample(320,200) smallimage.png`
67+```text
68+lazpaint bigimage.bmp /Resample(320,200) smallimage.png
69+```
5870
5971will save a small copy of bigimage.bmp into smallimage.png
6072
6173#### Filter commands
6274
6375You can apply filters with default values. Here is the list of filter commands:
6476
6577**Blur filters :** BlurPrecise, BlurRadial, BlurFast, BlurCorona, BlurDisk, BlurMotion, BlurCustom
6678
6779**Pixel filters :** Sharpen, Smooth, Median, ClearType, ClearTypeInverse, Emboss, Contour, Grayscale, Negative, LinearNegative, ComplementaryColor, Normalize, SmartZoom3
6880
6981**Deformation filters :** Sphere, Twirl, Cylinder, Plane
7082
7183**Rendering filters :** PerlinNoise, CyclicPerlinNoise, Clouds, CustomWater, Water, Wood, WoodVertical, Plastik, MetalFloor, Camouflage, SnowPrint, Stone, RoundStone, Marble
7284
7385For example :
7486
75-`lazpaint photo.jpg /Contour /Emboss /Normalize`
87+```text
88+lazpaint photo.jpg /Contour /Emboss /Normalize
89+```
7690
7791will transform the image into a carved stone.
7892
7993---
8094*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).*
8195Category: LazPaint

Back to history