Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
image-steam
Advanced tools
*** In an alpha state ***
There are a number of options out there, but IS differentiates itself by:
While Routing, Throttling, and Storage are all independently usable and configurable, a basic usage example that pulls everything together can be as simple as:
var is = require('image-steam');
http.createServer(
new is.http.Connect({ /* using default options */ }))
.listen(13337, '127.0.0.1')
;
Bundled storage support includes:
Additional storage types can easily be added via exporting fetch
and store
.
See lib/storage/fs
for reference.
Routing is left-to-right for legibility.
/my-path/my-nice-file-name/:/rs=w:200,h:200
See Things to Try for many more examples.
Resize an image, preserving aspect or not.
Arguments:
Note: Width or Height are optional, but at least one must be provided.
Crop an image to an exact size.
Arguments:
cr=t10%:l10%:w80%:h80%
- Crop 10% around the edgescr=w64:h64:a=cc
- Crop 64x64 anchored from center.cr=l10:w64:h64
- Crops 64x64 from the left at 10px (ignoring the horizontal
axis value of c
), and vertically anchors from center since top is not provided.Not yet supported
Arguments:
Not yet supported
Merge alpha transparency channel, if any, with background.
Arguments:
Not to be confused with rotation, flipping is the process of flipping an image on its horizontal and/or vertical axis.
Arguments:
The output quality to use for lossy JPEG, WebP and TIFF output formats.
An advanced setting for the zlib compression level of the lossless PNG output format. The default level is 6.
Use progressive (interlace) scan for JPEG and PNG output. This typically reduces compression performance by 30% but results in an image that can be rendered sooner when decompressed.
Can be useful for images that always need to be seen ASAP, but should not be used otherwise to save bandwidth.
rs=w3840/pg
- Create a big 4K-ish image and use progressive rendering
to see demonstrate value in some use cases.Not yet supported
Use the given interpolator for image resizing. Defaults to "bilinear".
Arguments:
Not yet supported
Override the auto-detected optimal format to output. Do not use this unless you have good reason.
Arguments:
Not yet supported
Arguments:
Radius (r) - Optional sharpening mask to apply in pixels, but comes at a performance cost.
Flat (f) - Optional sharpening to apply to flat areas. Defaults to 1.0.
Jagged (j) - Optional sharpening to apply to jagged areas. Defaults to 2.0.
Fast mild blur by default, but can override the default sigma for more control (at cost of performance).
Arguments:
fx-bl=s5
Convert to 8-bit greyscale.
Not yet supported
Enhance output image contrast by stretching its luminance to cover the full dynamic range. This typically reduces performance by 30%.
Dimension modifiers can be applied to any values where size and location are represented.
Any numeric value around measurement without explicit unit type specified is implicitly of type px.
rs=w200:h300
rs=w200px:h300px
- (identical to #1)cr=t15:l10:w-10:h-15
A percentage applied to original value by supplying the percentage (%) modifier.
rs=w50%:h50%
- 50% of source width and heightcr=t15%:l10%:w-10%:h-15%
To be used in conjunction with locations or dimensions, a plus (+) or minus (-) may be used to imply offset from original.
rs=w+50px:h-50px
- 50px wider than original, 50px shorter than originalrs=w+10%:h-10%
- 10% wider than original, 10% shorter than originalrs=w640
- Resize to 640 width, retain aspectrs=w640/cr=l5%:t10%:w90%:h80%
- Same as above, and
crop 5% of the sides and 10% of the top and bottomrs=w640/cr=l5%:t10%:w90%:h80%/fx-gs
- Same as above, and
apply greyscale effect.rs=w640/cr=l5%:t10%:w90%:h80%/fx-gs/qt=q20
- Same as above, and
use a low quality of 20.rs=w64:h64:m/cr=w64:h64/fx-gs
- Resize image to a minimum of 64x64
w/o breaking aspect so that we can then crop the image and apply
greyscale.fx-bl=s5
- Apply a blurFAQs
A simple, fast, and highly customizable realtime image manipulation web server built atop Node.js.
The npm package image-steam receives a total of 29 weekly downloads. As such, image-steam popularity was classified as not popular.
We found that image-steam demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.