Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/gm

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/gm - npm Package Compare versions

Comparing version 1.25.1 to 1.25.2

583

gm/index.d.ts

@@ -11,3 +11,3 @@ // Type definitions for gm 1.25

import stream = require('stream');
import stream = require("stream");

@@ -42,3 +42,3 @@ declare function m(stream: NodeJS.ReadableStream | Buffer | string, image?: string): m.State;

Mean: string;
'Standard Deviation': string;
"Standard Deviation": string;
}

@@ -52,10 +52,10 @@

interface GetterOptions {
bufferStream?: boolean | undefined;
bufferStream?: boolean | undefined;
}
interface ImageInfo {
'Background Color': string;
'Border Color': string;
'Channel Depths': ChannelInfo<string>;
'Channel Statistics': ChannelInfo<ColorStatistics>;
"Background Color": string;
"Border Color": string;
"Channel Depths": ChannelInfo<string>;
"Channel Statistics": ChannelInfo<ColorStatistics>;
Class: string;

@@ -74,19 +74,19 @@ color: number;

Iterations: string;
'JPEG-Quality'?: string | undefined;
'JPEG-Colorspace'?: string | undefined;
'JPEG-Colorspace-Name'?: string | undefined;
'JPEG-Sampling-factors'?: string | undefined;
'Matte Color': string;
"JPEG-Quality"?: string | undefined;
"JPEG-Colorspace"?: string | undefined;
"JPEG-Colorspace-Name"?: string | undefined;
"JPEG-Sampling-factors"?: string | undefined;
"Matte Color": string;
Orientation: string;
'Page geometry': string;
"Page geometry": string;
path: string;
'Profile-color'?: string | undefined;
'Profile-iptc'?: {
"Profile-color"?: string | undefined;
"Profile-iptc"?: {
[key: string]: string;
} | undefined;
'Profile-EXIF'?: {
"Profile-EXIF"?: {
[key: string]: string;
} | undefined;
'Profile-XMP'?: string | undefined;
"Profile-XMP"?: string | undefined;
Resolution?: string | undefined;

@@ -126,3 +126,3 @@ size: Dimensions;

colorize(red: number, green: number, blue: number): State;
colorMap(type: 'shared' | 'private' | string): State;
colorMap(type: "shared" | "private" | string): State;
colors(colors: number): State;

@@ -211,3 +211,3 @@ colorspace(space: ColorSpace | string): State;

outputDirectory(directory: string): State;
page(width: number, height: number, arg?: '%' | '!' | '<' | '>' |string): State;
page(width: number, height: number, arg?: "%" | "!" | "<" | ">" | string): State;
pause(seconds: number): State;

@@ -231,3 +231,3 @@ pen(color: string): State;

render(): State;
repage(reset: '+' | string): State;
repage(reset: "+" | string): State;
repage(width: number, height: number, xoff: number, yoff: number, arg?: string): State;

@@ -271,3 +271,10 @@ sample(geometry: string): State;

thumb(width: number, height: number, outName: string, quality: number, callback: WriteCallback): State;
thumb(width: number, height: number, outName: string, quality: number, align: 'topleft' | 'center' | string, callback: WriteCallback): State;
thumb(
width: number,
height: number,
outName: string,
quality: number,
align: "topleft" | "center" | string,
callback: WriteCallback,
): State;
thumbnail(width: number, height: number, options?: ResizeOption): State;

@@ -323,4 +330,14 @@ tile(filename: string): State;

drawPoint(x: number, y: number): State;
drawPolygon(coord0: [number, number], coord1: [number, number], coord2: [number, number], ...coords: Array<[number, number]>): State;
drawPolyline(coord0: [number, number], coord1: [number, number], coord2: [number, number], ...coords: Array<[number, number]>): State;
drawPolygon(
coord0: [number, number],
coord1: [number, number],
coord2: [number, number],
...coords: Array<[number, number]>
): State;
drawPolyline(
coord0: [number, number],
coord1: [number, number],
coord2: [number, number],
...coords: Array<[number, number]>
): State;
drawRectangle(x0: number, y0: number, x1: number, y1: number, wc?: number, hc?: number): State;

@@ -338,4 +355,4 @@ drawText(x: number, y: number, text: string, gravity?: GravityDirection | string): State;

stream(format: string, callback?: WriteCallback): stream.PassThrough;
toBuffer(callback: (err: Error|null, buffer: Buffer) => any): stream.PassThrough;
toBuffer(format: string, callback: (err: Error|null, buffer: Buffer) => any): stream.PassThrough;
toBuffer(callback: (err: Error | null, buffer: Buffer) => any): stream.PassThrough;
toBuffer(format: string, callback: (err: Error | null, buffer: Buffer) => any): stream.PassThrough;
write(filename: string, callback: WriteCallback): void;

@@ -351,278 +368,308 @@ }

function compare(filename1: string, filename2: string, callback: CompareCallback): void;
function compare(filename1: string, filename2: string, options: CompareOptions | number, callback: CompareCallback): void;
function compare(
filename1: string,
filename2: string,
options: CompareOptions | number,
callback: CompareCallback,
): void;
function subClass(options: ClassOptions): SubClass;
type ChannelOperator = 'Add'
| 'And'
| 'Assign'
| 'Depth'
| 'Divide'
| 'Gamma'
| 'Negate'
| 'LShift'
| 'Log'
| 'Max'
| 'Min'
| 'Multiply'
| 'Or'
| 'Pow'
| 'RShift'
| 'Subtract'
| 'Threshold'
| 'Threshold-White'
| 'Threshold-White-Negate'
| 'Threshold-Black'
| 'Threshold-Black-Negate'
| 'Xor'
| 'Noise-Gaussian'
| 'Noise-Impulse'
| 'Noise-Laplacian'
| 'Noise-Multiplicative'
| 'Noise-Poisson'
| 'Noise-Random'
| 'Noise-Uniform';
type ChannelOperator =
| "Add"
| "And"
| "Assign"
| "Depth"
| "Divide"
| "Gamma"
| "Negate"
| "LShift"
| "Log"
| "Max"
| "Min"
| "Multiply"
| "Or"
| "Pow"
| "RShift"
| "Subtract"
| "Threshold"
| "Threshold-White"
| "Threshold-White-Negate"
| "Threshold-Black"
| "Threshold-Black-Negate"
| "Xor"
| "Noise-Gaussian"
| "Noise-Impulse"
| "Noise-Laplacian"
| "Noise-Multiplicative"
| "Noise-Poisson"
| "Noise-Random"
| "Noise-Uniform";
type ChannelType = 'All'
| 'Intensity'
| 'Red'
| 'Green'
| 'Blue'
| 'Cyan'
| 'Magenta'
| 'Yellow'
| 'Black'
| 'Opacity';
type ChannelType =
| "All"
| "Intensity"
| "Red"
| "Green"
| "Blue"
| "Cyan"
| "Magenta"
| "Yellow"
| "Black"
| "Opacity";
type ColorSpace = 'CineonLog'
| 'CMYK'
| 'GRAY'
| 'HSL'
| 'HSB'
| 'OHTA'
| 'RGB'
| 'Rec601Luma'
| 'Rec709Luma'
| 'Rec601YCbCr'
| 'Rec709YCbCr'
| 'Transparent'
| 'XYZ'
| 'YCbCr'
| 'YIQ'
| 'YPbPr'
| 'YUV';
type ColorSpace =
| "CineonLog"
| "CMYK"
| "GRAY"
| "HSL"
| "HSB"
| "OHTA"
| "RGB"
| "Rec601Luma"
| "Rec709Luma"
| "Rec601YCbCr"
| "Rec709YCbCr"
| "Transparent"
| "XYZ"
| "YCbCr"
| "YIQ"
| "YPbPr"
| "YUV";
type CompareCallback = (err: Error|null, isEqual: boolean, equality: number, raw: number) => any;
type CompareCallback = (err: Error | null, isEqual: boolean, equality: number, raw: number) => any;
type ComposeOperator = 'Over'
| 'In'
| 'Out'
| 'Atop'
| 'Xor'
| 'Plus'
| 'Minus'
| 'Add'
| 'Subtract'
| 'Difference'
| 'Divide'
| 'Multiply'
| 'Bumpmap'
| 'Copy'
| 'CopyRed'
| 'CopyGreen'
| 'CopyBlue'
| 'CopyOpacity'
| 'CopyCyan'
| 'CopyMagenta'
| 'CopyYellow'
| 'CopyBlack';
type ComposeOperator =
| "Over"
| "In"
| "Out"
| "Atop"
| "Xor"
| "Plus"
| "Minus"
| "Add"
| "Subtract"
| "Difference"
| "Divide"
| "Multiply"
| "Bumpmap"
| "Copy"
| "CopyRed"
| "CopyGreen"
| "CopyBlue"
| "CopyOpacity"
| "CopyCyan"
| "CopyMagenta"
| "CopyYellow"
| "CopyBlack";
type CompressionType = 'None'
| 'BZip'
| 'Fax'
| 'Group4'
| 'JPEG'
| 'Lossless'
| 'LZW'
| 'RLE'
| 'Zip'
| 'LZMA';
type CompressionType =
| "None"
| "BZip"
| "Fax"
| "Group4"
| "JPEG"
| "Lossless"
| "LZW"
| "RLE"
| "Zip"
| "LZMA";
type DisposeMethod = 'Undefined'
| 'None'
| 'Background'
| 'Previous';
type DisposeMethod =
| "Undefined"
| "None"
| "Background"
| "Previous";
type Encoding = 'AdobeCustom'
| 'AdobeExpert'
| 'AdobeStandard'
| 'AppleRoman'
| 'BIG5'
| 'GB2312'
| 'Latin 2'
| 'None'
| 'SJIScode'
| 'Symbol'
| 'Unicode'
| 'Wansung';
type Encoding =
| "AdobeCustom"
| "AdobeExpert"
| "AdobeStandard"
| "AppleRoman"
| "BIG5"
| "GB2312"
| "Latin 2"
| "None"
| "SJIScode"
| "Symbol"
| "Unicode"
| "Wansung";
type EndianType = 'MSB'
| 'LSB'
| 'Native';
type EndianType =
| "MSB"
| "LSB"
| "Native";
type FilterType = 'Point'
| 'Box'
| 'Triangle'
| 'Hermite'
| 'Hanning'
| 'Hamming'
| 'Blackman'
| 'Gaussian'
| 'Quadratic'
| 'Cubic'
| 'Catrom'
| 'Mitchell'
| 'Lanczos'
| 'Bessel'
| 'Sinc';
type FilterType =
| "Point"
| "Box"
| "Triangle"
| "Hermite"
| "Hanning"
| "Hamming"
| "Blackman"
| "Gaussian"
| "Quadratic"
| "Cubic"
| "Catrom"
| "Mitchell"
| "Lanczos"
| "Bessel"
| "Sinc";
type GetterCallback<T> = (err: Error|null, value: T) => any;
type GetterCallback<T> = (err: Error | null, value: T) => any;
type GravityDirection = 'NorthWest'
| 'North'
| 'NorthEast'
| 'West'
| 'Center'
| 'East'
| 'SouthWest'
| 'South'
| 'SouthEast';
type GravityDirection =
| "NorthWest"
| "North"
| "NorthEast"
| "West"
| "Center"
| "East"
| "SouthWest"
| "South"
| "SouthEast";
type HighlightStyle = 'Assign'
| 'Threshold'
| 'Tint'
| 'XOR';
type HighlightStyle =
| "Assign"
| "Threshold"
| "Tint"
| "XOR";
type ImageType = 'Bilevel'
| 'Grayscale'
| 'Palette'
| 'PaletteMatte'
| 'TrueColor'
| 'TrueColorMatte'
| 'ColorSeparation'
| 'ColorSeparationMatte'
| 'Optimize';
type ImageType =
| "Bilevel"
| "Grayscale"
| "Palette"
| "PaletteMatte"
| "TrueColor"
| "TrueColorMatte"
| "ColorSeparation"
| "ColorSeparationMatte"
| "Optimize";
type IntentType = 'Absolute'
| 'Perceptual'
| 'Relative'
| 'Saturation';
type IntentType =
| "Absolute"
| "Perceptual"
| "Relative"
| "Saturation";
type InterlaceType = 'None'
| 'Line'
| 'Plane'
| 'Partition';
type InterlaceType =
| "None"
| "Line"
| "Plane"
| "Partition";
type LimitType = 'disk'
| 'file'
| 'map'
| 'memory'
| 'pixels'
| 'threads';
type LimitType =
| "disk"
| "file"
| "map"
| "memory"
| "pixels"
| "threads";
type ListType = 'Color'
| 'Delegate'
| 'Format'
| 'Magic'
| 'Module'
| 'Resource'
| 'Type';
type ListType =
| "Color"
| "Delegate"
| "Format"
| "Magic"
| "Module"
| "Resource"
| "Type";
type NamedColor = 'Red'
| 'Green'
| 'Blue'
| 'Opacity'
| 'Matte'
| 'Cyan'
| 'Magenta'
| 'Yellow'
| 'Black'
| 'Gray';
type NamedColor =
| "Red"
| "Green"
| "Blue"
| "Opacity"
| "Matte"
| "Cyan"
| "Magenta"
| "Yellow"
| "Black"
| "Gray";
type NoiseType = 'uniform'
| 'gaussian'
| 'multiplicative'
| 'impulse'
| 'laplacian'
| 'poisson';
type NoiseType =
| "uniform"
| "gaussian"
| "multiplicative"
| "impulse"
| "laplacian"
| "poisson";
type OperationMode = 'frame'
| 'unframe'
| 'concatenate';
type OperationMode =
| "frame"
| "unframe"
| "concatenate";
type PreviewType = 'Rotate'
| 'Shear'
| 'Roll'
| 'Hue'
| 'Saturation'
| 'Brightness'
| 'Gamma'
| 'Spiff'
| 'Dull'
| 'Grayscale'
| 'Quantize'
| 'Despeckle'
| 'ReduceNoise'
| 'AddNoise'
| 'Sharpen'
| 'Blur'
| 'Threshold'
| 'EdgeDetect'
| 'Spread'
| 'Shade'
| 'Raise'
| 'Segment'
| 'Solarize'
| 'Swirl'
| 'Implode'
| 'Wave'
| 'OilPaint'
| 'CharcoalDrawing'
| 'JPEG';
type PreviewType =
| "Rotate"
| "Shear"
| "Roll"
| "Hue"
| "Saturation"
| "Brightness"
| "Gamma"
| "Spiff"
| "Dull"
| "Grayscale"
| "Quantize"
| "Despeckle"
| "ReduceNoise"
| "AddNoise"
| "Sharpen"
| "Blur"
| "Threshold"
| "EdgeDetect"
| "Spread"
| "Shade"
| "Raise"
| "Segment"
| "Solarize"
| "Swirl"
| "Implode"
| "Wave"
| "OilPaint"
| "CharcoalDrawing"
| "JPEG";
type ResizeOption = '%' /** Width and height are specified in percents */
| '@' /** Specify maximum area in pixels */
| '!' /** Ignore aspect ratio */
| '^' /** Width and height are minimum values */
| '<' /** Change dimensions only if image is smaller than width or height */
| '>'; /** Change dimensions only if image is larger than width or height */
type ResizeOption =
| "%" /** Width and height are specified in percents */
| "@" /** Specify maximum area in pixels */
| "!" /** Ignore aspect ratio */
| "^" /** Width and height are minimum values */
| "<" /** Change dimensions only if image is smaller than width or height */
| ">"; /** Change dimensions only if image is larger than width or height */
type SetDrawMethod = 'point'
| 'replace'
| 'floodfill'
| 'filltoborder'
| 'reset';
type SetDrawMethod =
| "point"
| "replace"
| "floodfill"
| "filltoborder"
| "reset";
type SetDrawProperty = 'color' | 'matte';
type SetDrawProperty = "color" | "matte";
type UnitType = 'Undefined'
| 'PixelsPerInch'
| 'PixelsPerCentimeter';
type UnitType =
| "Undefined"
| "PixelsPerInch"
| "PixelsPerCentimeter";
type VirtualPixelMethod = 'Constant'
| 'Edge'
| 'Mirror'
| 'Tile';
type VirtualPixelMethod =
| "Constant"
| "Edge"
| "Mirror"
| "Tile";
type VisualType = 'StaticGray'
| 'GrayScale'
| 'StaticColor'
| 'PseudoColor'
| 'TrueColor'
| 'DirectColor'
| 'default';
type VisualType =
| "StaticGray"
| "GrayScale"
| "StaticColor"
| "PseudoColor"
| "TrueColor"
| "DirectColor"
| "default";
type WriteCallback = (err: Error|null, stdout: stream.Readable, stderr: stream.Readable, cmd: string) => any;
type WriteCallback = (err: Error | null, stdout: stream.Readable, stderr: stream.Readable, cmd: string) => any;
}
export = m;
{
"name": "@types/gm",
"version": "1.25.1",
"version": "1.25.2",
"description": "TypeScript definitions for gm",

@@ -40,4 +40,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gm",

},
"typesPublisherContentHash": "f7eecb9bbd8c9dd12535e35f3794ae2f2e2110239e5ecd9a6e46c378f4d38839",
"typeScriptVersion": "4.2"
"typesPublisherContentHash": "4361db45e6ad43a241c81388a18ea7b146221152db78dc01a482449196bae530",
"typeScriptVersion": "4.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 13 Mar 2023 19:34:57 GMT
* Last updated: Wed, 20 Sep 2023 17:08:03 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc