jimp 1.1.5 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,10 +7,10 @@ export { JPEGOptions } from '@jimp/js-jpeg';
7
7
  import * as _jimp_js_bmp from '@jimp/js-bmp';
8
8
  import _jimp_js_bmp__default, { msBmp } from '@jimp/js-bmp';
9
9
  export { BmpColor, BmpCompression, EncodeOptions } from '@jimp/js-bmp';
10
- import * as _jimp_types from '@jimp/types';
11
- export { Bitmap, Edge, RGBAColor, RGBColor } from '@jimp/types';
12
10
  import * as _jimp_core from '@jimp/core';
13
11
  export { BlendMode, HorizontalAlign, JimpConstructorOptions, JimpSimpleConstructorOptions, RawImageData, VerticalAlign } from '@jimp/core';
12
+ import * as _jimp_types from '@jimp/types';
13
+ export { Bitmap, Edge, RGBAColor, RGBColor } from '@jimp/types';
14
14
  import gif from '@jimp/js-gif';
15
15
  import tiff from '@jimp/js-tiff';
16
16
  import * as blit from '@jimp/plugin-blit';
@@ -43,6 +43,80 @@ export { loadFont } from '@jimp/plugin-print/load-font';
43
43
  export { diff } from '@jimp/diff';
44
44
  export { colorDiff, cssColorToHex, intToRGBA, limit255, rgbaToInt } from '@jimp/utils';
45
45
 
46
+ declare const defaultPlugins: ({
47
+ blit<I extends _jimp_types.JimpClass>(image: I, options: blit.BlitOptions): I;
48
+ } | {
49
+ blur<I extends _jimp_types.JimpClass>(image: I, r: number): I;
50
+ gaussian<I extends _jimp_types.JimpClass>(image: I, r: number): I;
51
+ } | {
52
+ circle<I extends _jimp_types.JimpClass>(image: I, options?: circle.CircleOptions): I;
53
+ } | {
54
+ normalize<I extends _jimp_types.JimpClass>(image: I): I;
55
+ invert<I extends _jimp_types.JimpClass>(image: I): I;
56
+ brightness<I extends _jimp_types.JimpClass>(image: I, val: number): I;
57
+ contrast<I extends _jimp_types.JimpClass>(image: I, val: number): I;
58
+ posterize<I extends _jimp_types.JimpClass>(image: I, n: number): I;
59
+ greyscale<I extends _jimp_types.JimpClass>(image: I): I;
60
+ opacity<I extends _jimp_types.JimpClass>(image: I, f: number): I;
61
+ sepia<I extends _jimp_types.JimpClass>(image: I): I;
62
+ fade<I extends _jimp_types.JimpClass>(image: I, f: number): I;
63
+ convolution<I extends _jimp_types.JimpClass>(image: I, options: {
64
+ kernel: number[][];
65
+ edgeHandling?: _jimp_types.Edge | undefined;
66
+ } | number[][]): I;
67
+ opaque<I extends _jimp_types.JimpClass>(image: I): I;
68
+ pixelate<I extends _jimp_types.JimpClass>(image: I, options: number | {
69
+ size: number;
70
+ x?: number | undefined;
71
+ y?: number | undefined;
72
+ w?: number | undefined;
73
+ h?: number | undefined;
74
+ }): I;
75
+ convolute<I extends _jimp_types.JimpClass>(image: I, options: number[][] | {
76
+ kernel: number[][];
77
+ x?: number | undefined;
78
+ y?: number | undefined;
79
+ w?: number | undefined;
80
+ h?: number | undefined;
81
+ }): I;
82
+ color<I extends _jimp_types.JimpClass>(image: I, actions: color.ColorAction[]): I;
83
+ } | {
84
+ contain<I extends _jimp_types.JimpClass>(image: I, options: contain.ContainOptions): I;
85
+ } | {
86
+ cover<I extends _jimp_types.JimpClass>(image: I, options: cover.CoverOptions): I;
87
+ } | {
88
+ crop<I extends _jimp_types.JimpClass>(image: I, options: crop.CropOptions): I;
89
+ autocrop<I extends _jimp_types.JimpClass>(image: I, options?: crop.AutocropOptions): I;
90
+ } | {
91
+ displace<I extends _jimp_types.JimpClass>(image: I, options: displace.DisplaceOptions): I;
92
+ } | {
93
+ dither<I extends _jimp_types.JimpClass>(image: I): I;
94
+ } | {
95
+ fisheye<I extends _jimp_types.JimpClass>(image: I, options?: fisheye.FisheyeOptions): I;
96
+ } | {
97
+ flip<I extends _jimp_types.JimpClass>(image: I, options: flip.FlipOptions): I;
98
+ } | {
99
+ pHash<I extends _jimp_types.JimpClass>(image: I): string;
100
+ hash<I extends _jimp_types.JimpClass>(image: I, base?: number): string;
101
+ distanceFromHash<I extends _jimp_types.JimpClass>(image: I, compareHash: string): number;
102
+ } | {
103
+ mask<I extends _jimp_types.JimpClass>(image: I, options: mask.MaskOptions): I;
104
+ } | {
105
+ print<I extends _jimp_types.JimpClass>(image: I, { font, ...options }: print.PrintOptions & {
106
+ font: print.BmFont<I>;
107
+ }): I;
108
+ } | {
109
+ resize<I extends _jimp_types.JimpClass>(image: I, options: resize.ResizeOptions): I;
110
+ scale<I extends _jimp_types.JimpClass>(image: I, options: resize.ScaleOptions): I;
111
+ scaleToFit<I extends _jimp_types.JimpClass>(image: I, options: resize.ScaleToFitOptions): I;
112
+ } | {
113
+ rotate<I extends _jimp_types.JimpClass>(image: I, options: rotate.RotateOptions): I;
114
+ } | {
115
+ threshold<I extends _jimp_types.JimpClass>(image: I, options: threshold.ThresholdOptions): I;
116
+ } | {
117
+ quantize<I extends _jimp_types.JimpClass>(image: I, options: quantize.QuantizeOptions): I;
118
+ })[];
119
+ declare const defaultFormats: (typeof _jimp_js_bmp__default | typeof msBmp | typeof gif | typeof _jimp_js_jpeg__default | typeof _jimp_js_png__default | typeof tiff)[];
46
120
  /**
47
121
  * @class
48
122
  *
@@ -1656,4 +1730,4 @@ declare const Jimp: {
1656
1730
  quantize<I extends _jimp_types.JimpClass>(image: I, options: quantize.QuantizeOptions): I;
1657
1731
  }>);
1658
1732
 
1659
- export { Jimp };
1733
+ export { Jimp, defaultFormats, defaultPlugins };