Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/mauricegit/voronoi_image_manipulation
This project implements a small, lightweight tool for real-time image manipulation with Voronoi/Delaunay data structures.
The focus of this project was, to enable users without knowledge of Voronoi or Delaunay specifics, to experiment and play with different looks a Voronoi or Delaunay structure can give to an image.
Some time ago I implemented a similar effect (also Voronoi/Delaunay) in Python (github.com/MauriceGit/Delaunay_Triangulation). The main goal for this new project was, to make it a lot more robust, user friendly, fast and actually useable.
The program will start two separate windows. One to actually display the image and a control window. It will look like the following:
Image view | Control view |
---|---|
git clone https://github.com/MauriceGit/Voronoi_Image_Manipulation
go get ./...
to install all dependenciesgo build
within the projects directoryJust to give you and incomplete overview what kind of effects you can achieve with this tool (sometimes with the corresponding controls set).
The point Distribution set to Poisson Disk to achieve random but equally distributed points over the whole area. This gives the most pleasing and homogeneous look most of the time.
The point Distribution set to Random. Truly random point distribution. Will create unequally sized regions.
The point Distribution set to Grid will create honeycomb like regions (hexagons) by placing points in a shifted grid.
Set the Face Rendering to Delaunay Triangles.
An image of a Labrador with Poisson disk distributed points.
If you like you can add the Voronoi lines and points to actually display the underlaying data structure.
When checking Adaptive Color, the lines of Delaunay edges and points will get the average color of the image underneath. Creating an interesting effect.
Adaptive Color checked with Voronoi faces and points displayed with a grid layout.
You could just view the points as well (well that doesn't really use Voronoi/Delaunay any more. But still looks cool :)).
At last, you can just ignore the image to investigate/look at voronoi and Delaunay tessellation itself:
FAQs
Unknown package
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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.