
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@sdcx/image-crop
Advanced tools
ImageCropView
是一个 React Native 原生 UI 组件,用于头像裁剪以及图片裁剪,同时支持图像主体识别后设置需要裁剪的主体区域。
yarn add @sdcx/image-crop
# &
pod install
<ImageCropView
ref={imageCropViewRef}
style={'your style'}
fileUri={'your file uri'}
cropStyle={'circular' | 'default'}
onCropped={(uri: string) => {}}
objectRect={objectRect}
/>
默认default为裁剪矩形,若需要裁剪圆形头像,则设为circular;
objectRect可设置默认的图片裁剪区域,且当cropStyle为default时有效。
objectRect的四个属性分别是(单位都是像素px):
imageCropViewRef.crop()
然后裁剪成功后会在onCropped属性中回调裁剪后图片的uri;
FAQs
A React Native ui component for image crop.
We found that @sdcx/image-crop 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.