LazPaint Command line: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | [[LazPaint|Go back]] | |
| 2 | 2 | ||
| 3 | 3 | ### Command line | |
| 4 | 4 | ||
| 5 | 5 | General use : | |
| 6 | 6 | ||
| 7 | - | ||
| 7 | + | ```text | |
| 8 | + | lazpaint inputfile [/command1 [/command2...]] [outputfile] | |
| 9 | + | ``` | |
| 8 | 10 | ||
| 9 | 11 | Or | |
| 10 | 12 | ||
| 11 | - | ||
| 13 | + | ```text | |
| 14 | + | lazpaint inputfile [-command1 [-command2...]] [outputfile] | |
| 15 | + | ``` | |
| 12 | 16 | ||
| 13 | 17 | On Linux, the command prefix is "-". | |
| 14 | 18 | ||
| 15 | 19 | On Windows, the command prefix can be "-" or "/". | |
| 16 | 20 | ||
| 17 | 21 | #### Line without command | |
| 18 | 22 | ||
| 19 | 23 | You can omit commands to convert an image to another file format. For example : | |
| 20 | 24 | ||
| 21 | - | ||
| 25 | + | ```text | |
| 26 | + | lazpaint image.pdn image.png | |
| 27 | + | ``` | |
| 22 | 28 | ||
| 23 | 29 | will flatten and save a Paint.NET image into a PNG. | |
| 24 | 30 | ||
| 25 | 31 | #### Line without output file | |
| 26 | 32 | ||
| 27 | 33 | If you do not specify an output file, the application is opened with the resulting image. For example: | |
| 28 | 34 | ||
| 29 | - | ||
| 35 | + | ```text | |
| 36 | + | lazpaint image.png /RotateCW | |
| 37 | + | ``` | |
| 30 | 38 | ||
| 31 | 39 | will open the image with a 90° rotation. | |
| 32 | 40 | ||
| 33 | 41 | #### Line without input file | |
| 34 | 42 | ||
| 35 | 43 | You can also create an image out of nothing. For example : | |
| 36 | 44 | ||
| 37 | - | ||
| 45 | + | ```text | |
| 46 | + | lazpaint /New(800,600) /Gradient(255,255,255,255,0,0,0,255,Linear,0,0,800,600) blackwhite.png | |
| 47 | + | ``` | |
| 38 | 48 | ||
| 39 | 49 | will create an image with a black and white gradient and save it into blackwhite.png. | |
| 40 | 50 | ||
| 41 | 51 | #### General commands | |
| 42 | 52 | ||
| 43 | 53 | Here is the list of supported commands : | |
| 44 | 54 | ||
| 45 | 55 | - /HorizontalFlip : flips image horizontally | |
| 46 | 56 | - /VerticalFlip : flips image vertically | |
| 47 | 57 | - /SwapRedBlue : swaps red and blue channels | |
| 48 | 58 | - /RotateCW : rotates image clockwise | |
| 49 | 59 | - /RotateCCW : rotates image counterclockwise | |
| 50 | 60 | - /Resample(Width,Height: Integer) : resample image to Width x Height | |
| 51 | 61 | - /Opacity(Value: Byte) : applies a global factor to opacity | |
| 52 | 62 | - /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 | 63 | - /New(Width,Height) : creates a new empty image of Width x Height | |
| 54 | 64 | ||
| 55 | 65 | For example : | |
| 56 | 66 | ||
| 57 | - | ||
| 67 | + | ```text | |
| 68 | + | lazpaint bigimage.bmp /Resample(320,200) smallimage.png | |
| 69 | + | ``` | |
| 58 | 70 | ||
| 59 | 71 | will save a small copy of bigimage.bmp into smallimage.png | |
| 60 | 72 | ||
| 61 | 73 | #### Filter commands | |
| 62 | 74 | ||
| 63 | 75 | You can apply filters with default values. Here is the list of filter commands: | |
| 64 | 76 | ||
| 65 | 77 | **Blur filters :** BlurPrecise, BlurRadial, BlurFast, BlurCorona, BlurDisk, BlurMotion, BlurCustom | |
| 66 | 78 | ||
| 67 | 79 | **Pixel filters :** Sharpen, Smooth, Median, ClearType, ClearTypeInverse, Emboss, Contour, Grayscale, Negative, LinearNegative, ComplementaryColor, Normalize, SmartZoom3 | |
| 68 | 80 | ||
| 69 | 81 | **Deformation filters :** Sphere, Twirl, Cylinder, Plane | |
| 70 | 82 | ||
| 71 | 83 | **Rendering filters :** PerlinNoise, CyclicPerlinNoise, Clouds, CustomWater, Water, Wood, WoodVertical, Plastik, MetalFloor, Camouflage, SnowPrint, Stone, RoundStone, Marble | |
| 72 | 84 | ||
| 73 | 85 | For example : | |
| 74 | 86 | ||
| 75 | - | ||
| 87 | + | ```text | |
| 88 | + | lazpaint photo.jpg /Contour /Emboss /Normalize | |
| 89 | + | ``` | |
| 76 | 90 | ||
| 77 | 91 | will transform the image into a carved stone. | |
| 78 | 92 | ||
| 79 | 93 | --- | |
| 80 | 94 | *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 | 95 | Category: LazPaint |
