image-type - Detect the image type of a Buffer/Uint8Array

  •        269

See the file-type module for more file types and a CLI.Or null when no match.

https://github.com/sindresorhus/image-type

Tags
Implementation
License
Platform

   




Related Projects

gulp-imagemin - Minify PNG, JPEG, GIF and SVG images


Issues with the output should be reported on the imagemin issue tracker.🦄 Support my open-source work by buying this awesome video course: Learn to build apps and APIs with Node.js by Wes Bos Try his free JavaScript 30 course for a taste of what to expect & check out his ES6, React, Sublime courses.

Bulk Image Converter


A simple, easy-to-use program for converting multiple image files from one format to another. Supports the following image formats: BMP, EMF, EXIF, GIF, JPG/JPEG, PNG, TIF/TIFF, and WMF.

grunt-contrib-imagemin - Minify PNG and JPEG images.


Select optimization level between 0 and 7. The optimization level 0 enables a set of optimization operations that require minimal effort. There will be no changes to image attributes like bit depth or color type, and no recompression of existing IDAT datastreams. The optimization level 1 enables a single IDAT compression trial. The trial chosen is what OptiPNG thinks it’s probably the most effective. The optimization levels 2 and higher enable multiple IDAT compression trials; the higher the level, the more trials.

Sharp - High performance Node.js image processing


The typical use case for this high speed Node.js module is to convert large images in common formats to smaller, web-friendly JPEG, PNG and WebP images of varying dimensions.Resizing an image is typically 4x-5x faster than using the quickest ImageMagick and GraphicsMagick settings.


FlipExt


FlipExt is an easy to use image converter. It converts any image to .png .bmp .jpg .gif .tif .jpeg .tiff .ico. More extensions will be added soon.

ImageMagick


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.

CxImage


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

bimg - Small Go package for fast high-level image processing powered by libvips C library


Small Go package for fast high-level image processing using libvips via C bindings, providing a simple, elegant and fluent programmatic API.bimg was designed to be a small and efficient library supporting a common set of image operations such as crop, resize, rotate, zoom or watermark. It can read JPEG, PNG, WEBP natively, and optionally TIFF, PDF, GIF and SVG formats if libvips@8.3+ is compiled with proper library bindings.

essential-image-optimization - Essential Image Optimization - an eBook


Bring up a terminal and type node --version. Node should respond with a version at or above 0.10.x. If you require Node, go to nodejs.org and click on the big green Install button.

libvips - A fast image processing library with low memory needs.


libvips is a 2D image processing library. Compared to similar libraries, libvips runs quickly and uses little memory. libvips is licensed under the LGPL 2.1+. It has around 300 operations covering arithmetic, histograms, convolutions, morphological operations, frequency filtering, colour, resampling, statistics and others. It supports a large range of numeric formats, from 8-bit int to 128-bit complex. It supports a good range of image formats, including JPEG, TIFF, PNG, WebP, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM, CSV, GIF, Analyze, DeepZoom, and OpenSlide. It can also load images via ImageMagick or GraphicsMagick.

pixterm - Draw images in your ANSI terminal with true color


PIXterm shows images directly in your terminal, recreating the pixels through a combination of ANSI character background color and the unicode lower half block element. If image has transparency, an optional matte color can be used for background. Also, you can specify a dithering mode; in which case, the image is rendered using block elements with different shades, or using standard ASCII characters in the same way. In dithering mode, the matte color is used to fill the background of the blocks or characters. The conversion process runs fast because it is parallelized in all CPUs.

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).

JPEGView - Image Viewer and Editor


JPEGView is a small and fast viewer/editor for JPEG, BMP, PNG, WEBP, GIF and TIFF images. On-the-fly image processing is provided - allowing to adjust typical parameters as sharpness, color balance, contrast and local under-/overexposure.

Smith Image Converter


An easy-to-use tool to convert images format. At present, it supports bmp, png and jpeg type conversion.

textract - node


A text extraction node module. In almost all cases above, what textract cares about is the mime type. So .html and .htm, both possessing the same mime type, will be extracted. Other extensions that share mime types with those above should also extract successfully. For example, application/vnd.ms-excel is the mime type for .xls, but also for 5 other file types.

ImageSharp - A cross-platform library for the processing of image files; written in C#


ImageSharp is a new, fully featured, fully managed, cross-platform, 2D graphics API. Without the use of System.Drawing we have been able to develop something much more flexible, easier to code against, and much, much less prone to memory leaks. Gone are system-wide process-locks; ImageSharp images are thread-safe and fully supported in web environments. Built against .Net Standard 1.1 ImageSharp can be used in device, cloud, and embedded/IoT scenarios.

JImageView


JImageView allows viewing of GIF, JPEG, PNG, TIF, BMP (Win95 type), and any other type of images that the Java Advanced Imaging (JAI) API supports. Images can be zoomed in or out and thumbnails can be cached to disk.

GraphicsMagick


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.

ImagesFromPDF


This application enables you to convert each page of a multipage PDF file into a separate image and then rename and make sequential the resulting images. Supported formats: PDF, BMP, GIF, JPEG, JPEG 2000, PSD, PICT, OpenEXR, SGI, TGA, PNG and TIFF.