Rotate the output image by either an explicit angleor auto-orient based on the EXIF
Orientation
tag.Interface RJ-45 Ethernet (10/100/1000Base-T), USB 2.0 (2 host ports, front and rear), USB 2.0 (1 device port, rear) Memory Standard 2 GB Copy/Scan; 1 GB Printer Memory. Memory Cleaner monitors RAM usage on your computer and frees up unused memory with one click.With Memory Cleaner, you can easily manage your memory usage. An animated status icon in the menu bar shows you the percentage of memory being used, as well as memory cleaning being run. Discover open source packages, modules and frameworks you can use in your code. Download SharpResize 2.0.2 macOS or any other file from Applications category. HTTP download also available at fast speeds.
Use this method without angle to determine the angle from EXIF data.Mirroring is supported and may infer the use of a flip operation.
- SharpResize is lightweight, has convenient controls and shortcuts and produces a more polished result. Lightweight - launches quickly - Many ways to grab your image: from clipboard, drag to dock icon, application or alias, drag into SharpResize's image well or open with a file dialog.
- SharpResize is lightweight, has convenient controls and shortcuts and produces a more polished result. Lightweight- launches quickly; Many ways to grab your image: from clipboard, drag to dock icon, application or alias, drag into SharpResize’s image well or open with a file dialog.
The use of
rotate
implies the removal of the EXIF Orientation
tag, if any.Method order is important when both rotating and extracting regions,for example
rotate(x).extract(y)
will produce a different result to extract(y).rotate(x)
.Sharp Resize 2.0.2 Free
Parameters
![SharpResize 2.0.2 SharpResize 2.0.2](/uploads/1/2/5/6/125608326/511906784.jpg)
angle
Number? 0, 90, 180 or 270. (optional, defaultauto
)
Examples
- Throws Error Invalid parameters
Returns Sharp
Extract a region of the image.
- Use
extract
beforeresize
for pre-resize extraction. - Use
extract
afterresize
for post-resize extraction. - Use
extract
before and after for both.
Parameters
options
Objectoptions.left
Number zero-indexed offset from left edgeoptions.top
Number zero-indexed offset from top edgeoptions.width
Number dimension of extracted imageoptions.height
Number dimension of extracted image
Examples
- Throws Error Invalid parameters
Returns Sharp
Flip the image about the vertical Y axis. This always occurs after rotation, if any.The use of
flip
implies the removal of the EXIF Orientation
tag, if any.Parameters
flip
Boolean? (optional, defaulttrue
)
Returns Sharp
Flop the image about the horizontal X axis. This always occurs after rotation, if any.The use of
flop
implies the removal of the EXIF Orientation
tag, if any.Parameters
flop
Boolean? (optional, defaulttrue
)
Returns Sharp
Sharpen the image.When used without parameters, performs a fast, mild sharpen of the output image.When a
sigma
is provided, performs a slower, more accurate sharpen of the L channel in the LAB colour space.Separate control over the level of sharpening in 'flat' and 'jagged' areas is available.Parameters
sigma
Number? the sigma of the Gaussian mask, wheresigma = 1 + radius / 2
.flat
Number? the level of sharpening to apply to 'flat' areas. (optional, default1.0
)jagged
Number? the level of sharpening to apply to 'jagged' areas. (optional, default2.0
)- Throws Error Invalid parameters
Returns Sharp
Blur the image.When used without parameters, performs a fast, mild blur of the output image.When a
sigma
is provided, performs a slower, more accurate Gaussian blur.Parameters
sigma
Number? a value between 0.3 and 1000 representing the sigma of the Gaussian mask, wheresigma = 1 + radius / 2
.- Throws Error Invalid parameters
Returns Sharp
Extends/pads the edges of the image with the colour provided to the
background
method.This operation will always occur after resizing and extraction, if any.Parameters
extend
(Number | Object) single pixel count to add to all edges or an Object with per-edge countsextend.top
Number?extend.left
Number?extend.bottom
Number?extend.right
Number?
Examples
- Throws Error Invalid parameters
Returns Sharp
Merge alpha transparency channel, if any, with
background
.Parameters
flatten
Boolean? (optional, defaulttrue
)
Returns Sharp
Trim 'boring' pixels from all edges that contain values within a percentage similarity of the top-left pixel.
Parameters
tolerance
Number? value between 1 and 99 representing the percentage similarity. (optional, default10
)- Throws Error Invalid parameters
Returns Sharp
Apply a gamma correction by reducing the encoding (darken) pre-resize at a factor of
1/gamma
then increasing the encoding (brighten) post-resize at a factor of gamma
.This can improve the perceived brightness of a resized image in non-linear colour spaces.JPEG and WebP input images will not take advantage of the shrink-on-load performance optimisationwhen applying a gamma correction.Parameters
gamma
Number? value between 1.0 and 3.0. (optional, default2.2
)- Throws Error Invalid parameters
Returns Sharp
Produce the 'negative' of the image.
Parameters
negate
Boolean? (optional, defaulttrue
)
Returns Sharp
Enhance output image contrast by stretching its luminance to cover the full dynamic range.
Parameters
normalise
Boolean? (optional, defaulttrue
)
Returns Sharp
Alternative spelling of normalise.
Parameters
normalize
Boolean? (optional, defaulttrue
)
Returns Sharp
Convolve the image with the specified kernel.
Parameters
![SharpResize 2.0.2 SharpResize 2.0.2](/uploads/1/2/5/6/125608326/509567521.jpg)
kernel
Objectkernel.width
Number width of the kernel in pixels.kernel.height
Number width of the kernel in pixels.kernel.kernel
Array<Number> Array of lengthwidth*height
containing the kernel values.kernel.scale
Number? the scale of the kernel in pixels. (optional, defaultsum
)kernel.offset
Number? the offset of the kernel in pixels. (optional, default0
)
Examples
- Throws Error Invalid parameters
Returns Sharp
Any pixel value greather than or equal to the threshold value will be set to 255, otherwise it will be set to 0.
Parameters
threshold
Number? a value in the range 0-255 representing the level at which the threshold will be applied. (optional, default128
)options
Object?options.greyscale
Boolean? convert to single channel greyscale. (optional, defaulttrue
)options.grayscale
Boolean? alternative spelling for greyscale. (optional, defaulttrue
)
- Throws Error Invalid parameters
Returns Sharp
Perform a bitwise boolean operation with operand image.
This operation creates an output image where each pixel is the result ofthe selected bitwise boolean
operation
between the corresponding pixels of the input images.Parameters
- operand **(Buffer |
---|
- options Object? |
- options.raw Object? describes operand when using raw pixel data. |
- options.raw.width Number? |
- options.raw.height Number? |
- options.raw.channels Number? |
- Throws Error Invalid parameters
Returns Sharp