chore: add jimp dependency, icon padding script, and update configuration
This commit is contained in:
+95
@@ -0,0 +1,95 @@
|
||||
# v0.22.1 (Mon Feb 06 2023)
|
||||
|
||||
#### 🏠 Internal
|
||||
|
||||
- rename master to main [#1169](https://github.com/jimp-dev/jimp/pull/1169) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
#### Authors: 1
|
||||
|
||||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
---
|
||||
|
||||
# v0.21.0 (Sun Feb 05 2023)
|
||||
|
||||
### Release Notes
|
||||
|
||||
#### Babel Refactor ([#1149](https://github.com/jimp-dev/jimp/pull/1149))
|
||||
|
||||
Marking this as a "breaking release" because it might change what deps need to be installed.
|
||||
|
||||
All modules should be exported as valid cjs and esm
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
#### 💥 Breaking Change
|
||||
|
||||
- Babel Refactor [#1149](https://github.com/jimp-dev/jimp/pull/1149) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
#### Authors: 1
|
||||
|
||||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
---
|
||||
|
||||
# v0.16.3 (Sat Feb 04 2023)
|
||||
|
||||
#### ⚠️ Pushed to `main`
|
||||
|
||||
- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
#### Authors: 1
|
||||
|
||||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
---
|
||||
|
||||
# v0.11.0 (Fri May 15 2020)
|
||||
|
||||
#### 🚀 Enhancement
|
||||
|
||||
- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil))
|
||||
|
||||
#### Authors: 1
|
||||
|
||||
- Eric Rabil ([@EricRabil](https://github.com/EricRabil))
|
||||
|
||||
---
|
||||
|
||||
# v0.9.8 (Sat Mar 28 2020)
|
||||
|
||||
#### 🐛 Bug Fix
|
||||
|
||||
- Export the four missing plugins from plugin package [#866](https://github.com/oliver-moran/jimp/pull/866) ([@crutchcorn](https://github.com/crutchcorn))
|
||||
|
||||
#### Authors: 1
|
||||
|
||||
- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn))
|
||||
|
||||
---
|
||||
|
||||
# v0.9.7 (Fri Mar 27 2020)
|
||||
|
||||
#### 🐛 Bug Fix
|
||||
|
||||
- Added missing plugins to the types [#863](https://github.com/oliver-moran/jimp/pull/863) ([@crutchcorn](https://github.com/crutchcorn))
|
||||
|
||||
#### Authors: 1
|
||||
|
||||
- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn))
|
||||
|
||||
---
|
||||
|
||||
# v0.9.3 (Tue Nov 26 2019)
|
||||
|
||||
#### 🐛 Bug Fix
|
||||
|
||||
- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils`
|
||||
- Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
|
||||
#### Authors: 2
|
||||
|
||||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
||||
- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn))
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 Oliver Moran
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
<div align="center">
|
||||
<img width="200" height="200"
|
||||
src="https://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-11/256/crayon.png">
|
||||
<h1>@jimp/plugins</h1>
|
||||
<p>Default Jimp plugins.</p>
|
||||
</div>
|
||||
|
||||
## Included Plugins
|
||||
|
||||
- [blit](../plugin-blit)
|
||||
- [blur](../plugin-blur)
|
||||
- [color](../plugin-color)
|
||||
- [contain](../plugin-contain)
|
||||
- [cover](../plugin-cover)
|
||||
- [displace](../plugin-displace)
|
||||
- [dither](../plugin-dither)
|
||||
- [flip](../plugin-flip)
|
||||
- [gaussian](../plugin-gaussian)
|
||||
- [invert](../plugin-invert)
|
||||
- [mask](../plugin-mask)
|
||||
- [normalize](../plugin-normalize)
|
||||
- [print](../plugin-print)
|
||||
- [resize](../plugin-resize)
|
||||
- [rotate](../plugin-rotate)
|
||||
- [scale](../plugin-scale)
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
import { mergeDeep } from "timm";
|
||||
import blit from "@jimp/plugin-blit";
|
||||
import blur from "@jimp/plugin-blur";
|
||||
import circle from "@jimp/plugin-circle";
|
||||
import color from "@jimp/plugin-color";
|
||||
import contain from "@jimp/plugin-contain";
|
||||
import cover from "@jimp/plugin-cover";
|
||||
import crop from "@jimp/plugin-crop";
|
||||
import displace from "@jimp/plugin-displace";
|
||||
import dither from "@jimp/plugin-dither";
|
||||
import fisheye from "@jimp/plugin-fisheye";
|
||||
import flip from "@jimp/plugin-flip";
|
||||
import gaussian from "@jimp/plugin-gaussian";
|
||||
import invert from "@jimp/plugin-invert";
|
||||
import mask from "@jimp/plugin-mask";
|
||||
import normalize from "@jimp/plugin-normalize";
|
||||
import print from "@jimp/plugin-print";
|
||||
import resize from "@jimp/plugin-resize";
|
||||
import rotate from "@jimp/plugin-rotate";
|
||||
import scale from "@jimp/plugin-scale";
|
||||
import shadow from "@jimp/plugin-shadow";
|
||||
import threshold from "@jimp/plugin-threshold";
|
||||
const plugins = [blit, blur, circle, color, contain, cover, crop, displace, dither, fisheye, flip, gaussian, invert, mask, normalize, print, resize, rotate, scale, shadow, threshold];
|
||||
export default (jimpEvChange => {
|
||||
const initializedPlugins = plugins.map(pluginModule => {
|
||||
let plugin = pluginModule(jimpEvChange) || {};
|
||||
if (!plugin.class && !plugin.constants) {
|
||||
// Default to class function
|
||||
plugin = {
|
||||
class: plugin
|
||||
};
|
||||
}
|
||||
return plugin;
|
||||
});
|
||||
return mergeDeep(...initializedPlugins);
|
||||
});
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","names":["mergeDeep","blit","blur","circle","color","contain","cover","crop","displace","dither","fisheye","flip","gaussian","invert","mask","normalize","print","resize","rotate","scale","shadow","threshold","plugins","jimpEvChange","initializedPlugins","map","pluginModule","plugin","class","constants"],"sources":["../src/index.js"],"sourcesContent":["import { mergeDeep } from \"timm\";\n\nimport blit from \"@jimp/plugin-blit\";\nimport blur from \"@jimp/plugin-blur\";\nimport circle from \"@jimp/plugin-circle\";\nimport color from \"@jimp/plugin-color\";\nimport contain from \"@jimp/plugin-contain\";\nimport cover from \"@jimp/plugin-cover\";\nimport crop from \"@jimp/plugin-crop\";\nimport displace from \"@jimp/plugin-displace\";\nimport dither from \"@jimp/plugin-dither\";\nimport fisheye from \"@jimp/plugin-fisheye\";\nimport flip from \"@jimp/plugin-flip\";\nimport gaussian from \"@jimp/plugin-gaussian\";\nimport invert from \"@jimp/plugin-invert\";\nimport mask from \"@jimp/plugin-mask\";\nimport normalize from \"@jimp/plugin-normalize\";\nimport print from \"@jimp/plugin-print\";\nimport resize from \"@jimp/plugin-resize\";\nimport rotate from \"@jimp/plugin-rotate\";\nimport scale from \"@jimp/plugin-scale\";\nimport shadow from \"@jimp/plugin-shadow\";\nimport threshold from \"@jimp/plugin-threshold\";\n\nconst plugins = [\n blit,\n blur,\n circle,\n color,\n contain,\n cover,\n crop,\n displace,\n dither,\n fisheye,\n flip,\n gaussian,\n invert,\n mask,\n normalize,\n print,\n resize,\n rotate,\n scale,\n shadow,\n threshold,\n];\n\nexport default (jimpEvChange) => {\n const initializedPlugins = plugins.map((pluginModule) => {\n let plugin = pluginModule(jimpEvChange) || {};\n\n if (!plugin.class && !plugin.constants) {\n // Default to class function\n plugin = { class: plugin };\n }\n\n return plugin;\n });\n\n return mergeDeep(...initializedPlugins);\n};\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,MAAM;AAEhC,OAAOC,IAAI,MAAM,mBAAmB;AACpC,OAAOC,IAAI,MAAM,mBAAmB;AACpC,OAAOC,MAAM,MAAM,q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CAAC,CAAC;EAEF,OAAO3B,SAAS,CAAC,GAAGwB,kBAAkB,CAAC;AACzC,CAAC"}
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
import blit from "@jimp/plugin-blit";
|
||||
import blur from "@jimp/plugin-blur";
|
||||
import circle from "@jimp/plugin-circle";
|
||||
import color from "@jimp/plugin-color";
|
||||
import contain from "@jimp/plugin-contain";
|
||||
import cover from "@jimp/plugin-cover";
|
||||
import crop from "@jimp/plugin-crop";
|
||||
import displace from "@jimp/plugin-displace";
|
||||
import dither from "@jimp/plugin-dither";
|
||||
import fisheye from "@jimp/plugin-fisheye";
|
||||
import flip from "@jimp/plugin-flip";
|
||||
import gaussian from "@jimp/plugin-gaussian";
|
||||
import invert from "@jimp/plugin-invert";
|
||||
import mask from "@jimp/plugin-mask";
|
||||
import normalize from "@jimp/plugin-normalize";
|
||||
import print from "@jimp/plugin-print";
|
||||
import resize from "@jimp/plugin-resize";
|
||||
import rotate from "@jimp/plugin-rotate";
|
||||
import scale from "@jimp/plugin-scale";
|
||||
import shadow from "@jimp/plugin-shadow";
|
||||
import threshold from "@jimp/plugin-threshold";
|
||||
|
||||
type BlitRet = ReturnType<typeof blit>;
|
||||
type BlurRet = ReturnType<typeof blur>;
|
||||
type CircleRet = ReturnType<typeof circle>;
|
||||
type ColorRet = ReturnType<typeof color>;
|
||||
type ContainRet = ReturnType<typeof contain>;
|
||||
type CoverRet = ReturnType<typeof cover>;
|
||||
type CropRet = ReturnType<typeof crop>;
|
||||
type DisplaceRet = ReturnType<typeof displace>;
|
||||
type DitherRet = ReturnType<typeof dither>;
|
||||
type FlipRet = ReturnType<typeof flip>;
|
||||
type FisheyeRet = ReturnType<typeof fisheye>;
|
||||
type GaussianRet = ReturnType<typeof gaussian>;
|
||||
type InvertRet = ReturnType<typeof invert>;
|
||||
type MaskRet = ReturnType<typeof mask>;
|
||||
type NormalizeRet = ReturnType<typeof normalize>;
|
||||
type PrintRet = ReturnType<typeof print>;
|
||||
type ResizeRet = ReturnType<typeof resize>;
|
||||
type RotateRet = ReturnType<typeof rotate>;
|
||||
type ScaleRet = ReturnType<typeof scale>;
|
||||
type ShadowRet = ReturnType<typeof shadow>;
|
||||
type ThresholdRet = ReturnType<typeof threshold>;
|
||||
|
||||
/**
|
||||
* This is made union and not intersection to avoid issues with
|
||||
* `IllformedPlugin` and `WellFormedPlugin` when using typings with Jimp
|
||||
* generic
|
||||
*
|
||||
* In reality, this should be an intersection but our type data isn't
|
||||
* clever enough to figure out what's a class and what's not/etc
|
||||
*/
|
||||
type Plugins =
|
||||
| BlitRet
|
||||
| BlurRet
|
||||
| CircleRet
|
||||
| ColorRet
|
||||
| ContainRet
|
||||
| CoverRet
|
||||
| CropRet
|
||||
| DisplaceRet
|
||||
| DitherRet
|
||||
| FlipRet
|
||||
| FisheyeRet
|
||||
| GaussianRet
|
||||
| InvertRet
|
||||
| MaskRet
|
||||
| NormalizeRet
|
||||
| PrintRet
|
||||
| ResizeRet
|
||||
| RotateRet
|
||||
| ScaleRet
|
||||
| ShadowRet
|
||||
| ThresholdRet;
|
||||
|
||||
export default function (): Plugins;
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "@jimp/plugins",
|
||||
"version": "0.22.12",
|
||||
"description": "Default Jimp plugin.",
|
||||
"main": "dist/index.js",
|
||||
"module": "es/index.js",
|
||||
"repository": "jimp-dev/jimp",
|
||||
"types": "index.d.ts",
|
||||
"scripts": {
|
||||
"build": "npm run build:node:production && npm run build:module",
|
||||
"build:watch": "npm run build:node:debug -- -- --watch --verbose",
|
||||
"build:debug": "npm run build:node:debug",
|
||||
"build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js",
|
||||
"build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js",
|
||||
"build:node:debug": "cross-env BABEL_ENV=development npm run build:node",
|
||||
"build:node:production": "cross-env BABEL_ENV=production npm run build:node"
|
||||
},
|
||||
"author": "",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@jimp/plugin-blit": "^0.22.12",
|
||||
"@jimp/plugin-blur": "^0.22.12",
|
||||
"@jimp/plugin-circle": "^0.22.12",
|
||||
"@jimp/plugin-color": "^0.22.12",
|
||||
"@jimp/plugin-contain": "^0.22.12",
|
||||
"@jimp/plugin-cover": "^0.22.12",
|
||||
"@jimp/plugin-crop": "^0.22.12",
|
||||
"@jimp/plugin-displace": "^0.22.12",
|
||||
"@jimp/plugin-dither": "^0.22.12",
|
||||
"@jimp/plugin-fisheye": "^0.22.12",
|
||||
"@jimp/plugin-flip": "^0.22.12",
|
||||
"@jimp/plugin-gaussian": "^0.22.12",
|
||||
"@jimp/plugin-invert": "^0.22.12",
|
||||
"@jimp/plugin-mask": "^0.22.12",
|
||||
"@jimp/plugin-normalize": "^0.22.12",
|
||||
"@jimp/plugin-print": "^0.22.12",
|
||||
"@jimp/plugin-resize": "^0.22.12",
|
||||
"@jimp/plugin-rotate": "^0.22.12",
|
||||
"@jimp/plugin-scale": "^0.22.12",
|
||||
"@jimp/plugin-shadow": "^0.22.12",
|
||||
"@jimp/plugin-threshold": "^0.22.12",
|
||||
"timm": "^1.6.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@jimp/custom": ">=0.3.5"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"gitHead": "a4a8d6364bbf97629749e196f3b0a4c94c9a7abc"
|
||||
}
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
import { mergeDeep } from "timm";
|
||||
|
||||
import blit from "@jimp/plugin-blit";
|
||||
import blur from "@jimp/plugin-blur";
|
||||
import circle from "@jimp/plugin-circle";
|
||||
import color from "@jimp/plugin-color";
|
||||
import contain from "@jimp/plugin-contain";
|
||||
import cover from "@jimp/plugin-cover";
|
||||
import crop from "@jimp/plugin-crop";
|
||||
import displace from "@jimp/plugin-displace";
|
||||
import dither from "@jimp/plugin-dither";
|
||||
import fisheye from "@jimp/plugin-fisheye";
|
||||
import flip from "@jimp/plugin-flip";
|
||||
import gaussian from "@jimp/plugin-gaussian";
|
||||
import invert from "@jimp/plugin-invert";
|
||||
import mask from "@jimp/plugin-mask";
|
||||
import normalize from "@jimp/plugin-normalize";
|
||||
import print from "@jimp/plugin-print";
|
||||
import resize from "@jimp/plugin-resize";
|
||||
import rotate from "@jimp/plugin-rotate";
|
||||
import scale from "@jimp/plugin-scale";
|
||||
import shadow from "@jimp/plugin-shadow";
|
||||
import threshold from "@jimp/plugin-threshold";
|
||||
|
||||
const plugins = [
|
||||
blit,
|
||||
blur,
|
||||
circle,
|
||||
color,
|
||||
contain,
|
||||
cover,
|
||||
crop,
|
||||
displace,
|
||||
dither,
|
||||
fisheye,
|
||||
flip,
|
||||
gaussian,
|
||||
invert,
|
||||
mask,
|
||||
normalize,
|
||||
print,
|
||||
resize,
|
||||
rotate,
|
||||
scale,
|
||||
shadow,
|
||||
threshold,
|
||||
];
|
||||
|
||||
export default (jimpEvChange) => {
|
||||
const initializedPlugins = plugins.map((pluginModule) => {
|
||||
let plugin = pluginModule(jimpEvChange) || {};
|
||||
|
||||
if (!plugin.class && !plugin.constants) {
|
||||
// Default to class function
|
||||
plugin = { class: plugin };
|
||||
}
|
||||
|
||||
return plugin;
|
||||
});
|
||||
|
||||
return mergeDeep(...initializedPlugins);
|
||||
};
|
||||
Reference in New Issue
Block a user