Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
uppy-blur-up
Advanced tools
Uppy plugin that generates data to create the “blur up” technique popularized by Medium and Facebook where a small 20px wide version of the image is shown as a placeholder until the actual image is downloaded.
The relevant data is added to the file's metadata.
This plugin is not part of Uppy but inherits a lot from @uppy/thumbnail-generator. The original idea is inspired from gatsby-remark-image.
It is currently maintained by Arthur Puyou with support from Fotokorner.
$ npm install uppy-blur-up --save
const Uppy = require('@uppy/core');
const BlurUp = require('uppy-blur-up');
const uppy = Uppy();
uppy.use(BlurUp);
uppy.on('blurup:generated', (file, data) => {
console.log(`Blurup data generated for ${file.id}`, data);
});
To display the image, I recommend the react-simple-image component with the following props :
src
: path to full size imagewidth
and height
: dimensions of original image from generated metadata (data.width
and data.height
)applyAspectRatio
: this will enforce the original aspect ratio on the thumbnailplaceholder
: URL to placeholder from generated metadata (data.blur
)FAQs
Generate data to create blur up effect when uploading through Uppy.
The npm package uppy-blur-up receives a total of 2 weekly downloads. As such, uppy-blur-up popularity was classified as not popular.
We found that uppy-blur-up 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.