0.0.7-alpha • Published 6 months ago

resim v0.0.7-alpha

Weekly downloads
-
License
-
Repository
github
Last release
6 months ago

Resim - Image Manipulation written in Rust for Javascript world

Resim is an npm package that allows you to perform various image manipulations on your images using Rust, a fast and efficient programming language. Currently, Resim supports converting png images to grayscale, and it aims to expand its feature set in the future.

Disclaimer: Resim is still at a very early phase of development, so don't use it for production.

P.S.: Resim means 'image' in Turkish

Features

  • Convert images to grayscale (function name: convertToGrayscale)
  • Convert images to have inverted colors (function name: invertColors)
  • Convert images to have blurry effect (function name: blurImage)

Installation

You can install Resim using npm:

npm install resim

Usage

import * as resim from "resim";

var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");

ctx.drawImage(document.getElementById('image'), 0, 0);
const imageResim = resim.convertToGrayscale(canvas, ctx)
resim.placeImage(canvas, ctx, imageResim);

Example

Take a look at sample implementation here

0.0.7-alpha

6 months ago

0.0.6-alpha

6 months ago

0.0.5-alpha

6 months ago

0.0.4-alpha

6 months ago

0.0.3-alpha

6 months ago

0.0.2-alpha

6 months ago

0.0.1-alpha

6 months ago