jimp 1.1.5--canary.d9590e7.0 → 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.
- package/dist/browser/fonts.d.ts +5 -1
- package/dist/browser/fonts.js +5 -3
- package/dist/browser/fonts.js.map +1 -1
- package/dist/browser/index.d.ts +77 -3
- package/dist/browser/index.js +6 -6
- package/dist/browser/index.js.map +1 -1
- package/dist/commonjs/index.d.ts +74 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +24 -22
- package/dist/commonjs/index.js.map +1 -1
- package/dist/esm/index.d.ts +74 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +23 -21
- package/dist/esm/index.js.map +1 -1
- package/package.json +34 -34
package/dist/browser/fonts.d.ts
CHANGED
package/dist/browser/fonts.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
/*! https://mths.be/punycode v1.4.1 by @mathias */function k(t){throw new RangeError(j[t])}function A(t,n){return t+22+75*(t<26)-((0!=n)<<5)}function q(t,n,e){var r=0;for(t=e?x(t/m):t>>1,t+=x(t/n);t>w*l>>1;r+=u)t=x(t/w);return x(r+(w+1)*t/(t+c))}function C(t){return function(t,n){var e=t.split("@"),r="";e.length>1&&(r=e[0]+"@",t=e[1]);var o=function(t,n){for(var e=t.length,r=[];e--;)r[e]=n(t[e]);return r}((t=t.replace(d,".")).split("."),n).join(".");return r+o}(t,(function(t){return y.test(t)?"xn--"+function(t){var n,e,r,o,s,a,h,i,c,m,y,d,j,w,C,I=[];for(t=function(t){for(var n,e,r=[],o=0,s=t.length;o<s;)(n=t.charCodeAt(o++))>=55296&&n<=56319&&o<s?56320==(64512&(e=t.charCodeAt(o++)))?r.push(((1023&n)<<10)+(1023&e)+65536):(r.push(n),o--):r.push(n);return r}(t),d=t.length,n=g,e=0,s=v,a=0;a<d;++a)(y=t[a])<128&&I.push(O(y));for(r=o=I.length,o&&I.push(b);r<d;){for(h=p,a=0;a<d;++a)(y=t[a])>=n&&y<h&&(h=y);for(h-n>x((p-e)/(j=r+1))&&k("overflow"),e+=(h-n)*j,n=h,a=0;a<d;++a)if((y=t[a])<n&&++e>p&&k("overflow"),y==n){for(i=e,c=u;!(i<(m=c<=s?f:c>=s+l?l:c-s));c+=u)C=i-m,w=u-m,I.push(O(A(m+C%w,0))),i=x(C/w);I.push(O(A(i,0))),s=q(e,j,r==o),e=0,++r}++e,++n}return I.join("")}(t):t}))}function I(t){return null===t}function R(t){return"string"==typeof t}function U(t){return"object"==typeof t&&null!==t}function E(t,n){return Object.prototype.hasOwnProperty.call(t,n)}var T=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function F(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}function $(t,n){if(t.map)return t.map(n);for(var e=[],r=0;r<t.length;r++)e.push(n(t[r],r));return e}var z=Object.keys||function(t){var n=[];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);return n};function L(t,n,e,r){n=n||"&",e=e||"=";var o={};if("string"!=typeof t||0===t.length)return o;var s=/\+/g;t=t.split(n);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var h=t.length;a>0&&h>a&&(h=a);for(var i=0;i<h;++i){var p,u,f,l,c=t[i].replace(s,"%20"),m=c.indexOf(e);m>=0?(p=c.substr(0,m),u=c.substr(m+1)):(p=c,u=""),f=decodeURIComponent(p),l=decodeURIComponent(u),E(o,f)?T(o[f])?o[f].push(l):o[f]=[o[f],l]:o[f]=l}return o}function P(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var S=/^([a-z0-9.+-]+:)/i,K=/:[0-9]*$/,M=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Z=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),_=["'"].concat(Z),H=["%","/","?",";","#"].concat(_),B=["/","?","#"],D=/^[+a-z0-9A-Z_-]{0,63}$/,G=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,J={javascript:!0,"javascript:":!0},N={javascript:!0,"javascript:":!0},Q={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function V(t){var n=t.auth||"";n&&(n=(n=encodeURIComponent(n)).replace(/%3A/i,":"),n+="@");var e=t.protocol||"",r=t.pathname||"",o=t.hash||"",s=!1,a="";t.host?s=n+t.host:t.hostname&&(s=n+(-1===t.hostname.indexOf(":")?t.hostname:"["+this.hostname+"]"),t.port&&(s+=":"+t.port)),t.query&&U(t.query)&&Object.keys(t.query).length&&(a=function(t,n,e,r){return n=n||"&",e=e||"=",null===t&&(t=void 0),"object"==typeof t?$(z(t),(function(r){var o=encodeURIComponent(F(r))+e;return T(t[r])?$(t[r],(function(t){return o+encodeURIComponent(F(t))})).join(n):o+encodeURIComponent(F(t[r]))})).join(n):r?encodeURIComponent(F(r))+e+encodeURIComponent(F(t)):""}(t.query));var h=t.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),t.slashes||(!e||Q[e])&&!1!==s?(s="//"+(s||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):s||(s=""),o&&"#"!==o.charAt(0)&&(o="#"+o),h&&"?"!==h.charAt(0)&&(h="?"+h),e+s+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(h=h.replace("#","%23"))+o}function W(t){var n=t.host,e=K.exec(n);e&&(":"!==(e=e[0])&&(t.port=e.substr(1)),n=n.substr(0,n.length-e.length)),n&&(t.hostname=n)}P.prototype.parse=function(t,n,e){return function(t,n,e,r){if(!R(n))throw new TypeError("Parameter 'url' must be a string, not "+typeof n);var o=n.indexOf("?"),s=-1!==o&&o<n.indexOf("#")?"?":"#",a=n.split(s),h=/\\/g;a[0]=a[0].replace(h,"/"),n=a.join(s);var i=n;if(i=i.trim(),!r&&1===n.split("#").length){var p=M.exec(i);if(p)return t.path=i,t.href=i,t.pathname=p[1],p[2]?(t.search=p[2],t.query=e?L(t.search.substr(1)):t.search.substr(1)):e&&(t.search="",t.query={}),t}var u,f,l,c,m=S.exec(i);if(m){var v=(m=m[0]).toLowerCase();t.protocol=v,i=i.substr(m.length)}if(r||m||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===i.substr(0,2);!g||m&&N[m]||(i=i.substr(2),t.slashes=!0)}if(!N[m]&&(g||m&&!Q[m])){var b,y,d=-1;for(u=0;u<B.length;u++)-1!==(f=i.indexOf(B[u]))&&(-1===d||f<d)&&(d=f);for(-1!==(y=-1===d?i.lastIndexOf("@"):i.lastIndexOf("@",d))&&(b=i.slice(0,y),i=i.slice(y+1),t.auth=decodeURIComponent(b)),d=-1,u=0;u<H.length;u++)-1!==(f=i.indexOf(H[u]))&&(-1===d||f<d)&&(d=f);-1===d&&(d=i.length),t.host=i.slice(0,d),i=i.slice(d),W(t),t.hostname=t.hostname||"";var j="["===t.hostname[0]&&"]"===t.hostname[t.hostname.length-1];if(!j){var w=t.hostname.split(/\./);for(u=0,l=w.length;u<l;u++){var x=w[u];if(x&&!x.match(D)){for(var O="",k=0,A=x.length;k<A;k++)x.charCodeAt(k)>127?O+="x":O+=x[k];if(!O.match(D)){var q=w.slice(0,u),I=w.slice(u+1),U=x.match(G);U&&(q.push(U[1]),I.unshift(U[2])),I.length&&(i="/"+I.join(".")+i),t.hostname=q.join(".");break}}}}t.hostname.length>255?t.hostname="":t.hostname=t.hostname.toLowerCase(),j||(t.hostname=C(t.hostname)),c=t.port?":"+t.port:"";var E=t.hostname||"";t.host=E+c,t.href+=t.host,j&&(t.hostname=t.hostname.substr(1,t.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!J[v])for(u=0,l=_.length;u<l;u++){var T=_[u];if(-1!==i.indexOf(T)){var F=encodeURIComponent(T);F===T&&(F=escape(T)),i=i.split(T).join(F)}}var $=i.indexOf("#");-1!==$&&(t.hash=i.substr($),i=i.slice(0,$));var z=i.indexOf("?");-1!==z?(t.search=i.substr(z),t.query=i.substr(z+1),e&&(t.query=L(t.query)),i=i.slice(0,z)):e&&(t.search="",t.query={});i&&(t.pathname=i);Q[v]&&t.hostname&&!t.pathname&&(t.pathname="/");if(t.pathname||t.search){c=t.pathname||"";var P=t.search||"";t.path=c+P}return t.href=V(t),t}(this,t,n,e)},P.prototype.format=function(){return V(this)},P.prototype.resolve=function(t){return this.resolveObject(function(t,n,e){if(t&&U(t)&&t instanceof P)return t;var r=new P;return r.parse(t,n,e),r}(t,!1,!0)).format()},P.prototype.resolveObject=function(t){if(R(t)){var n=new P;n.parse(t,!1,!0),t=n}for(var e,r=new P,o=Object.keys(this),s=0;s<o.length;s++){var a=o[s];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var h=Object.keys(t),i=0;i<h.length;i++){var p=h[i];"protocol"!==p&&(r[p]=t[p])}return Q[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!Q[t.protocol]){for(var u=Object.keys(t),f=0;f<u.length;f++){var l=u[f];r[l]=t[l]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||N[t.protocol])r.pathname=t.pathname;else{for(e=(t.pathname||"").split("/");e.length&&!(t.host=e.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==e[0]&&e.unshift(""),e.length<2&&e.unshift(""),r.pathname=e.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var c=r.pathname||"",m=r.search||"";r.path=c+m}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var v,g=r.pathname&&"/"===r.pathname.charAt(0),b=t.host||t.pathname&&"/"===t.pathname.charAt(0),y=b||g||r.host&&t.pathname,d=y,j=r.pathname&&r.pathname.split("/")||[],w=r.protocol&&!Q[r.protocol];if(e=t.pathname&&t.pathname.split("/")||[],w&&(r.hostname="",r.port=null,r.host&&(""===j[0]?j[0]=r.host:j.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===e[0]?e[0]=t.host:e.unshift(t.host)),t.host=null),y=y&&(""===e[0]||""===j[0])),b)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,j=e;else if(e.length)j||(j=[]),j.pop(),j=j.concat(e),r.search=t.search,r.query=t.query;else if(null!=t.search)return w&&(r.hostname=r.host=j.shift(),(v=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=v.shift(),r.host=r.hostname=v.shift())),r.search=t.search,r.query=t.query,I(r.pathname)&&I(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!j.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var x=j.slice(-1)[0],O=(r.host||t.host||j.length>1)&&("."===x||".."===x)||""===x,k=0,A=j.length;A>=0;A--)"."===(x=j[A])?j.splice(A,1):".."===x?(j.splice(A,1),k++):k&&(j.splice(A,1),k--);if(!y&&!d)for(;k--;k)j.unshift("..");!y||""===j[0]||j[0]&&"/"===j[0].charAt(0)||j.unshift(""),O&&"/"!==j.join("/").substr(-1)&&j.push("");var q=""===j[0]||j[0]&&"/"===j[0].charAt(0);return w&&(r.hostname=r.host=q?"":j.length?j.shift():"",(v=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=v.shift(),r.host=r.hostname=v.shift())),(y=y||r.host&&j.length)&&!q&&j.unshift(""),j.length?r.pathname=j.join("/"):(r.pathname=null,r.path=null),I(r.pathname)&&I(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},P.prototype.parseHost=function(){return W(this)};const X=a.dirname(function(t){if("string"==typeof t)t=(new P).parse(t);else if(!(t instanceof P))throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof t+String(t));if("file:"!==t.protocol)throw new TypeError("The URL must be of scheme file");return function(t){const n=t.pathname;for(let t=0;t<n.length;t++)if("%"===n[t]){const e=32|n.codePointAt(t+2);if("2"===n[t+1]&&102===e)throw new TypeError("must not include encoded / characters")}return decodeURIComponent(n)}(t)}(import.meta.url)),Y=a.join(X,"../"),tt=a.join(Y,"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"),nt=a.join(Y,"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"),et=a.join(Y,"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"),rt=a.join(Y,"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"),ot=a.join(Y,"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"),st=a.join(Y,"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"),at=a.join(Y,"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"),ht=a.join(Y,"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"),it=a.join(Y,"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"),pt=a.join(Y,"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"),ut=a.join(Y,"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"),ft=a.join(Y,"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"),lt=a.join(Y,"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt");export{nt as SANS_10_BLACK,ht as SANS_128_BLACK,lt as SANS_128_WHITE,et as SANS_12_BLACK,rt as SANS_14_BLACK,ot as SANS_16_BLACK,pt as SANS_16_WHITE,st as SANS_32_BLACK,ut as SANS_32_WHITE,at as SANS_64_BLACK,ft as SANS_64_WHITE,tt as SANS_8_BLACK,it as SANS_8_WHITE};
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module jimp/fonts
|
|
3
|
+
*/
|
|
4
|
+
export * from "@jimp/plugin-print/fonts";
|
|
5
|
+
//# sourceMappingURL=fonts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fonts.js","
|
|
1
|
+
{"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../src/fonts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,0BAA0B,CAAC"}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -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 };
|