
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
ngx-faceavatar
Advanced tools
[](http://npm.im/ngx-faceavatar) [](https://opensource.org/licenses/MIT)
This is a Angular component to display an image as avatar using, if enable, the browser's native face recognition to focus on a face in the image. The algorithm always focus on the biggest face on the image.
You can check the demo page here.
src: (Required)
Source to be displayed. It can be a image url or a Image File.
dim (Dimension): (Optional) Default value: 300
Define the width and height of the element
padding: (Optional) Default value: 10
Define the space displayed around the detected face (if any was detected).
rounded: (Optional) Default value: true
Define if the component will be a circle (true) or a square (false).
Install via npm or yarn:
yarn add ngx-faceavatar
Import the module
import { NgxFaceAvatarModule } from 'ngx-faceavatar';
// ...
@NgModule(
// ...
imports: [NgxFaceAvatarModule],
// ...
})
and add the ngx-faceavatar to your component template:
<ngx-faceavatar [src]="imageSrc" dim="200" padding="20" rounded="false"></ngx-faceavatar>
In chrome, go to :
chrome://flags/#enable-experimental-web-platform-features
And enable the Experimental Web Platform features section.
After enabling it you should see a Relaunch Now button on the bottom of the screen.
After the relaunch, you can see the component focusing on recognized faces.
FAQs
[](http://npm.im/ngx-faceavatar) [](https://opensource.org/licenses/MIT)
We found that ngx-faceavatar 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.