Skip to main content
Module

x/imagescript/tests/fisheye.js

zero-dependency JavaScript image manipulation
Extremely Popular
Go to Latest
File
import {Image} from '../ImageScript.js';import {equals} from 'https://deno.land/std@0.80.0/bytes/mod.ts';
(async () => { const input = await Deno.readFile('./tests/targets/external.png');
const image = await Image.decode(input); image.fisheye();
const output = await image.encode(); const target = await Deno.readFile('./tests/targets/fisheye.png');
if (!equals(output, target)) process.exit(1);})();