save-pixels - Saves an ndarray as an image

  •        40

Saves an ndarray to an image.Returns A stream that you can pipe to serialize the result, or a canvas element if the type is "canvas".


contentstream : ^1.0.0
gif-encoder : ~0.4.1
jpeg-js : 0.0.4
ndarray : ^1.0.18
ndarray-ops : ^1.2.2
pngjs-nozlib : ^1.0.0
through : ^2.3.4



Related Projects

Invoke-PSImage - Embeds a PowerShell script in the pixels of a PNG file and generates a oneliner to execute

  •    PowerShell

Invoke-PSImage takes a PowerShell script and embeds the bytes of the script into the pixels of a PNG image. It generates a oneliner for executing either from a file of from the web (when the -Web flag is passed). The least significant 4 bits of 2 color values in each pixel are used to hold the payload. Image quality will suffer as a result, but it still looks decent. The image is saved as a PNG, and can be losslessly compressed without affecting the ability to execute the payload as the data is stored in the colors themselves. It can accept most image types as input, but output will always be a PNG because it needs to be lossless.


  •    C++

ImageMagick is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.

Quick Save Images, Clipboard save to file, Quick save, bmp, png, jpeg, Image


ClipSa is a very small tool for very quick picture saving. You put some picture into the clipboard (PrintScrn/Alt-PrintScrn/Ctrl-C), ClipSa saves it to file. The program supports BMP, JPG and PNG formats. ClipSa can work by auto numbering mode or manual (standard SaveAsDialog).


  •    Silverlight

PsPad is Pixel Shader Editing Tool for Silverlight and WPF. You can edit your Pixel Shader code with HLSL, compile it, and see the result on this tool immediately. Also you can load and save Pixel Shader source and save compiled Pixel Shader to integrate your project.

EmojiIntelligence - Neural Network built in Apple Playground using Swift

  •    Swift

I used this challenge to learn more about neural networks and machine learning. A neural network consists of layers, and each layer has neurons. My network has three layers: an input layer, a hidden layer, and an output layer. The input to my network has 64 binary numbers. These inputs are connected to the neurons in the hidden layer. The hidden layer performs some computation and passes the result to the output layer neuron out. This also performs a computation and then outputs a 0 or a 1. The input layer doesn’t actually do anything, they are just placeholders for the input value. Only the neurons in the hidden layer and the output layer perform computations. The neurons from the input layer are connected to the neurons in the hidden layer. Likewise, both neurons from the hidden layer are connected to the output layer. These kinds of layers are called fully-connected because every neuron is connected to every neuron in the next layer. Each connection between two neurons has a weight, which is just a number. These weights form the brain of my network. For the activation function in my network, I use the sigmoid function. Sigmoid is a mathematical function. The sigmoid takes in some number x and converts it into a value between 0 and 1. That is ideal for my purposes, since I am dealing with binary numbers. This will turn a linear equation into something that is non-linear. This is important because without this, the network wouldn’t be able to learn any interesting things. I have already mentioned that the input to this network are 64 binary numbers. I resize the drawn image to 8x8 pixels which makes together 64 pixels. I go through the image and check each pixel if the pixel has a pink color I add a 1 to my array else I add a 0. At the end I will have 64 binary numbers which I can add to my input layer.


  •    C++

GraphicsMagick is the swiss army knife of image processing. It provides a robust and efficient collection of tools and libraries which support reading, writing, and manipulating an image in over 88 major formats including important formats like DPX, GIF, JPEG, JPEG-2000, PNG, PDF, PNM, and TIFF.

pixelmatch - The smallest, simplest and fastest JavaScript pixel-level image comparison library

  •    Javascript

The smallest, simplest and fastest JavaScript pixel-level image comparison library, originally created to compare screenshots in tests.Features accurate anti-aliased pixels detection and perceptual color difference metrics.

vpp - Video++, a C++14 high performance video and image processing library.

  •    C++

The generic container imageNd<V, N> represents a dense N-dimensional rectangle set of pixels with values of type V. For convenience, image1d, image2d, image3d are respectively aliases to imageNd<V, 1>, imageNd<V, 2>, and imageNd<V, 3>. These types provide accesses to the pixel buffer and to other piece of information useful to process the image. In contrast to std::vector, assigning an image to the other does not copy the data, but share them so no accidental expensive deep copy happen.


  •    Java

This sample demonstrates using the Camera2 API to capture a JPEG and RAW sensor frame. Check the source code to see a typical example of how to display the camera preview; run auto-focus, auto-exposure metering, and auto-white-balance; capture a JPEG and RAW image for the same sensor frame; and save these into MediaStore for use in other applications. The Camera2 API allows users to capture RAW images, i.e. unprocessed pixel data directly from the camera sensor that has not yet been converted into a format and colorspace typically used for displaying and storing images viewed by humans. The DngCreator class is provided as part of the Camera2 API as a utility for saving RAW images as DNG files.


  •    C++

Frustrated because you want to output a high-quality image from your C++ program but haven't found an easy, direct and fast way? Try PNGwriter. Written with scientific simulations in mind, PNGwriter allows you to plot to a PNG image pixel by pixel.


  •    C++

milkInk – power steganography program.Program allow to compress some file, to insert it in image,crypt this file with 32bytes AES and save this image with the hidden,inserting file.On the other hand you can extract hidden file from image and save it.


  •    C++

CxImage is a C++ image processing library. It can load, save, display, transform images in a very simple and fast way, with transparency, multiple layers and selections, support for BMP GIF JPG PNG MNG TIF ICO TGA PCX J2K JBG RAS PNM RAW PSD

saveSvgAsPng - Save SVGs as PNGs from the browser.

  •    HTML

The filename is the preferred filename when saving the image to the file system. The browser may change the name of the file if there is already a file by that name in the target directory. Other options are documented below.

Dia - Visio alternative

  •    GTK+

Dia is inspired by the commercial Windows program Visio, though more geared towards informal diagrams for casual use. It can be used to draw many different kinds of diagrams. It currently has special objects to help draw entity relationship diagrams, UML diagrams, flowcharts, network diagrams, and many other diagrams. It is also possible to add support for new shapes by writing simple XML files, using a subset of SVG to draw the shape.

PixelSorting - A set of experiments in pixel sorting using Processing

  •    Processing

Using either edge-detection or random choice, start with a set of 'seed' pixels, grab all neighbors within a 1px radius, sort those, and repeat the process. Similar to the 'seam carving' example, this is a little softer movement across the image by looking for least change between the current pixel and its neighbors.

Game Cube Save Fixer


Game Cube Save Fixer patches dumped Game Cube save files to have the correct serial code by adding it to the first four bytes of the save file. If the save file doesn't have the correct serial code, the game will not see the save as valid. It's developed in C# .NET 2.0.

electron-context-menu - Context menu for your Electron app

  •    Javascript

Electron doesn't have a built-in context menu. You're supposed to handle that yourself. But it's both tedious and hard to get right. This module gives you a nice extensible context menu with items like Cut/Copy/Paste for text, Save Image for images, and Copy Link for links. It also adds an Inspect Element menu item when in development to quickly view items in the inspector like in Chrome.You can use this module directly in both the main and renderer process.

browsershot - Convert html to an image, pdf or string

  •    PHP

The package can convert a webpage to an image or pdf. The conversion is done behind the scenes by Puppeteer which controls a headless version of Google Chrome. It will save a pdf if the path passed to the save method has a pdf extension.

pinry - The open-source core of Pinry, a tiling image board system for people who want to save, tag, and share images, videos and webpages in an easy to skim through format

  •    Python

The open-source core of Pinry, a tiling image board system for people who want to save, tag, and share images, videos and webpages in an easy to skim through format. For more information and a working demo board visit