
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
angular-pharkas-blurhash
Advanced tools
This library provides an Observable-First, Zone-Free wrapper for the Vanilla JS library Blurhash built with the angular-pharkas component framework.
It's key benefits are:
ChangeDetectionStrategy.OnPush
tells Angular that it doesn't need to work to detect any template changesLibrary version | Supported Angular |
---|---|
2.0.0 | Angular 15 |
<=1.0.0 | Angular 13 |
Import PharkasBlurhashModule
and use <pharkas-blurhash>
. The API:
<pharkas-blurhash [image]="blurhashDescriptionObservable"></pharkas-blurhash>
[image]
is an Observable<BlurhashDescription>
where BlurhashDescription
is a simple interface describing
image metadata including the relevant blurhash.
BlurhashDescription
{
width: '100%',
canvasWidth: 1024,
height: '100%',
canvasHeight: 728,
blurhash: 'xyz…',
blurhashPunch: 1,
imageSrc: 'https://…',
imageAlt: 'An example image of…'
}
Required:
blurhash
is the Blurhash to displayimageSrc
is the image to displayimageAlt
is the alternate descriptionwidth
is the width of the container (for both the blurhash and the image) as either a number (of pixels)
or CSS sizeheight
is the height of the container (for both the blurhash and the image) as either a number (of pixels)
or CSS sizeOptional:
blurhashPunch
is a dial of the "punch" of a blurhash and defaults to 1
.canvasWidth
is the size of canvas the blurhash is painted on, in pixels. It falls back to the width
when
provided as a number and otherwise defaults to 160 (for an assumption of 16x9 photos as default)canvasHeight
is the size of canvas the blurhash is painted on, in pixels. It falls back to the height
when provided as a number and otherwise defaults to 90 (for an assumption of 16x9 photos as default)FAQs
An Observable-First, Zone-Free wrapper for Blurhash
We found that angular-pharkas-blurhash 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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.