Skip to main content
The Deno 2 Release Candidate is here
Learn more

manga-solver

manga-solver can decrypt images used in web manga services such as Shonen Jump Plus and Sunday Webry.

vr scripts codecov

How to use

Load a local image

// ./main.ts

import { getImage, Solver } from "https://deno.land/x/manga-solver/mod.ts";

// put your own image
const image = await getImage(
  "./assets/example.jpg",
);

const solver = new Solver(image);

solver.solve();

// get the result
await Deno.writeFile("./output/example.jpg", solver.buffer());

and

deno run --allow-read ./main.ts

Load a remote image

// ./main.ts

import { getImage, Solver } from "https://deno.land/x/manga-solver/mod.ts";

// image url
const image = await getImage(
  "https://cdn-ak-img.shonenjumpplus.com/public/page/2/3269754496381687092-379912a01bcda616c4edb048edc17835",
);

const solver = new Solver(image);

solver.solve();

// get the result
await Deno.writeFile("./output/ms-little-gray.jpg", solver.buffer());

and

deno run --allow-net --allow-read ./main.ts