Skip to content

Commit

Permalink
Renamed Magick.WASM to magick-wasm.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Aug 20, 2021
1 parent af2029d commit e53d400
Show file tree
Hide file tree
Showing 122 changed files with 234 additions and 234 deletions.
4 changes: 2 additions & 2 deletions demo/demo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { initializeImageMagick, ImageMagick } from '../lib/image-magick';
Expand All @@ -25,4 +25,4 @@ initializeImageMagick().then(async () => {
});
}).catch(err => {
console.error(err);
});
});
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
## The WebAssembly library for ImageMagick: Magick.WASM
## The WebAssembly library for ImageMagick: magick-wasm

[![GitHub license](https://img.shields.io/badge/license-Apache%202-green.svg)](https://raw.githubusercontent.com/dlemstra/Magick.WASM/main/license.txt)
[![GitHub license](https://img.shields.io/badge/license-Apache%202-green.svg)](https://raw.githubusercontent.com/dlemstra/magick-wasm/main/license.txt)
[![Twitter URL](https://img.shields.io/badge/twitter-follow-1da1f2.svg)](https://twitter.com/MagickNET)
[![Donate](https://img.shields.io/badge/%24-donate-ff00ff.svg)](https://github.com/sponsors/dlemstra)

ImageMagick is a powerful image manipulation library that supports over [100 major file formats](https://www.imagemagick.org/script/formats.php) (not including sub-formats).
With Magick.WASM you can use ImageMagick in your web application without doing a callback to an api.
With magick-wasm you can use ImageMagick in your web application without doing a callback to an api.

## Documentation

For examples on how to use Magick.WASM view the [https://github.com/dlemstra/Magick.WASM/blob/main/demo/demo.ts](demo/demo.ts).
For examples on how to use magick-wasm view the [https://github.com/dlemstra/magick-wasm/blob/main/demo/demo.ts](demo/demo.ts).
For more information about ImageMagick go to: [http://www.imagemagick.org/](http://www.imagemagick.org/).

## Download

You can download the npm package from here: https://www.npmjs.com/package/@imagemagick/magick-wasm.

Follow me on twitter([@MagickNET](https://twitter.com/MagickNET)) to receive information about new downloads and changes to Magick.WASM and ImageMagick.
Follow me on twitter([@MagickNET](https://twitter.com/MagickNET)) to receive information about new downloads and changes to magick-wasm and ImageMagick.

## Donate

Expand Down
4 changes: 2 additions & 2 deletions src/alpha-option.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

export enum AlphaOption {
Expand All @@ -18,4 +18,4 @@ export enum AlphaOption {
Set,
Shape,
Transparent,
}
}
4 changes: 2 additions & 2 deletions src/channels.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

export enum Channels {
Expand All @@ -22,4 +22,4 @@ export enum Channels {
Grays = 0x0400,
Sync = 0x20000,
Default = All,
}
}
4 changes: 2 additions & 2 deletions src/color-space.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

export enum ColorSpace {
Expand Down Expand Up @@ -36,4 +36,4 @@ export enum ColorSpace {
YPbPr,
YUV,
LinearGray
}
}
4 changes: 2 additions & 2 deletions src/composite-operator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

export enum CompositeOperator {
Expand Down Expand Up @@ -74,4 +74,4 @@ export enum CompositeOperator {
VividLight,
Xor,
Stereo,
}
}
2 changes: 1 addition & 1 deletion src/defines/define.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { MagickFormat } from '../magick-format';
Expand Down
4 changes: 2 additions & 2 deletions src/defines/defines-creator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { IDefine } from './define';
Expand Down Expand Up @@ -27,4 +27,4 @@ export abstract class DefinesCreator implements IDefines {

return new MagickDefine(this.format, name, value.toString());
}
}
}
2 changes: 1 addition & 1 deletion src/defines/defines.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { IDefine } from './define';
Expand Down
4 changes: 2 additions & 2 deletions src/defines/magick-define.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { IDefine } from './define';
Expand All @@ -16,4 +16,4 @@ export class MagickDefine implements IDefine {
readonly name: string;

readonly value: string;
}
}
4 changes: 2 additions & 2 deletions src/distort-method.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

export enum DistortMethod
Expand All @@ -23,4 +23,4 @@ export enum DistortMethod
Resize,
Sentinel,
RigidAffine,
}
}
4 changes: 2 additions & 2 deletions src/error-metric.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

export enum ErrorMetric {
Expand All @@ -15,4 +15,4 @@ export enum ErrorMetric {
RootMeanSquared,
StructuralSimilarity,
StructuralDissimilarity,
}
}
4 changes: 2 additions & 2 deletions src/evaluate-operator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

export enum EvaluateOperator {
Expand Down Expand Up @@ -36,4 +36,4 @@ export enum EvaluateOperator {
UniformNoise,
Xor,
InverseLog
}
}
2 changes: 1 addition & 1 deletion src/formats/dng/dng-output-color.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

export enum DngOutputColor {
Expand Down
4 changes: 2 additions & 2 deletions src/formats/dng/dng-read-defines.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { DefinesCreator } from '../../defines/defines-creator';
Expand Down Expand Up @@ -40,4 +40,4 @@ export class DngReadDefines extends DefinesCreator {
private hasValue(value: boolean | DngOutputColor | undefined): boolean {
return value !== undefined && value !== null;
}
}
}
4 changes: 2 additions & 2 deletions src/gravity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

export enum Gravity {
Expand All @@ -13,4 +13,4 @@ export enum Gravity {
Southwest = 7,
South = 8,
Southeast = 9,
}
}
2 changes: 1 addition & 1 deletion src/image-magick.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import MagickNative from './wasm/magick.js';
Expand Down
4 changes: 2 additions & 2 deletions src/internal/exception/exception-severity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

/** @internal */
Expand Down Expand Up @@ -50,4 +50,4 @@ export enum ExceptionSeverity {
RegistryError = 490,
ConfigureError = 495,
PolicyError = 499
}
}
4 changes: 2 additions & 2 deletions src/internal/exception/exception.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { ImageMagick } from '../../image-magick';
Expand Down Expand Up @@ -82,4 +82,4 @@ export class Exception {
private static dispose(exception: Pointer): void {
ImageMagick._api._MagickExceptionHelper_Dispose(exception.value);
}
}
}
4 changes: 2 additions & 2 deletions src/internal/geometry-flags.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

/** @internal */
Expand All @@ -12,4 +12,4 @@ export enum GeometryFlags
FillArea = 0x10000, /* '^' special handling needed */
LimitPixels = 0x20000, /* '@' resize to area - special use flag */
AspectRatio = 0x100000, /* '~' special handling needed */
}
}
4 changes: 2 additions & 2 deletions src/internal/magick-rectangle.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { ImageMagick } from '../image-magick';
Expand Down Expand Up @@ -29,4 +29,4 @@ export class MagickRectangle {
ImageMagick._api._MagickRectangle_Dispose(rectangle);
}
}
}
}
4 changes: 2 additions & 2 deletions src/internal/native-instance.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { Exception } from './exception/exception';
Expand Down Expand Up @@ -58,4 +58,4 @@ export abstract class NativeInstance implements NativeInstance {

return 0;
}
}
}
4 changes: 2 additions & 2 deletions src/internal/native/array.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { ImageMagick } from '../../image-magick';
Expand Down Expand Up @@ -38,4 +38,4 @@ export function _withQuantumArray<TReturnType>(array: quantumArray, func: (insta
finally {
ImageMagick._api._free(instance);
}
}
}
4 changes: 2 additions & 2 deletions src/internal/native/string.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { ImageMagick } from '../../image-magick';
Expand Down Expand Up @@ -30,4 +30,4 @@ export function _withNativeString<TReturnType>(native: ImageMagickApi, str: stri
/** @internal */
export function _withString<TReturnType>(str: string, func: (instance: number) => TReturnType): TReturnType {
return _withNativeString(ImageMagick._api, str, func);
}
}
4 changes: 2 additions & 2 deletions src/internal/pointer/pointer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { ImageMagick } from '../../image-magick';
Expand All @@ -24,4 +24,4 @@ export class Pointer {
ImageMagick._api._free(pointer.instance);
}
}
}
}
4 changes: 2 additions & 2 deletions src/internal/string-info.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { ImageMagick } from '../image-magick';
Expand All @@ -14,4 +14,4 @@ export class StringInfo {

return ImageMagick._api.HEAPU8.subarray(datum, datum + length);
}
}
}
4 changes: 2 additions & 2 deletions src/magick-color.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { ImageMagick } from './image-magick';
Expand Down Expand Up @@ -116,4 +116,4 @@ export class MagickColor {
private toHex(value: number) {
return value.toString(16).padStart(2, '0');
}
}
}
4 changes: 2 additions & 2 deletions src/magick-colors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { MagickColor } from './magick-color';
Expand Down Expand Up @@ -287,4 +287,4 @@ export class MagickColors {
static get Yellow(): MagickColor { return new MagickColor(255, 255, 0, 255); }

static get YellowGreen(): MagickColor { return new MagickColor(154, 205, 50, 255); }
}
}
4 changes: 2 additions & 2 deletions src/magick-format-info.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { ImageMagick } from './image-magick';
Expand Down Expand Up @@ -65,4 +65,4 @@ export class MagickFormatInfo {

return MagickFormat.Unknown;
}
}
}
2 changes: 1 addition & 1 deletion src/magick-format.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

export enum MagickFormat {
Expand Down
4 changes: 2 additions & 2 deletions src/magick-geometry.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { ImageMagick } from './image-magick';
Expand Down Expand Up @@ -186,4 +186,4 @@ export class MagickGeometry {
private hasFlag(flags: number, flag: GeometryFlags) {
return (flags & flag) === flag;
}
}
}
2 changes: 1 addition & 1 deletion src/magick-image-collection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.WASM.
// Copyright Dirk Lemstra https://github.com/dlemstra/magick-wasm.
// Licensed under the Apache License, Version 2.0.

import { ImageMagick } from './image-magick';
Expand Down
Loading

0 comments on commit e53d400

Please sign in to comment.