Image Stylize Library is a JavaScript/TypeScript library for image processing and filter effects.
- Apply various image filters.
- Gaussian Blur
- Convert images to black and white.
- Simulate the Leica camera filter effect.
- Convert image to text drawing
You can install My Custom Library using npm:
npm install my-custom-libraryImporting the library
import { Stylize } from 'image-stylize';
const stylize = new Stylize({
width: 800,
height: 800,
container: canvasContainerRef.value,
});Black and White Filter
stylize.draw({
type: 'grayscale',
data: {
url: '/src/assets/a.jpg',
radius:10,
},
});Gaussian Blur Filter
stylize.draw({
type: 'grayscale',
data: {
url: '/src/assets/a.jpg',
radius:10,
},
});Leica Camera Filter
stylize.draw({
type: 'leca',
data: {
url: '/src/assets/a.jpg',
},
});Convert image to text drawing
stylize.draw({
type: 'texty',
data: {
url: '/src/assets/a.jpg',
text: '@#$%&*-=:. ',
orderly: false,
scale: 10,
},
});This project is licensed under the MIT License - see the LICENSE.md file for details.
More effects are constantly being updated.



