[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6239":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":9,"pushedAt":9,"updatedAt":44,"readmeContent":45,"aiSummary":46,"trendingCount":15,"starSnapshotCount":15,"syncStatus":47,"lastSyncTime":48,"discoverSource":49},6239,"libvips","libvips\u002Flibvips","A fast image processing library with low memory needs.","https:\u002F\u002Flibvips.org",null,"C",11391,768,132,66,0,5,25,103,26,43.66,"GNU Lesser General Public License v2.1",false,"master",true,[26,27,28,29,30,31,32,33,34,5,35,36,37,38,39,40,41,42,43],"c","cpp","gif","graphicsmagick","hdr","heic","image-processing","imagemagick","jpeg","nifti","openexr","openslide","pdf","pdfium","png","svg","tiff","webp","2026-06-12 02:01:17","# libvips: an image processing library\n\n[![CI](https:\u002F\u002Fgithub.com\u002Flibvips\u002Flibvips\u002Fworkflows\u002FCI\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Flibvips\u002Flibvips\u002Factions)\n[![Fuzzing Status](https:\u002F\u002Foss-fuzz-build-logs.storage.googleapis.com\u002Fbadges\u002Flibvips.svg)](https:\u002F\u002Fissues.oss-fuzz.com\u002Fissues?q=is:open%20project:libvips)\n[![Coverity Status](https:\u002F\u002Fscan.coverity.com\u002Fprojects\u002F6503\u002Fbadge.svg)](https:\u002F\u002Fscan.coverity.com\u002Fprojects\u002Fjcupitt-libvips)\n[![Gitter](https:\u002F\u002Fbadges.gitter.im\u002Flibvips\u002Fdevchat.svg)](https:\u002F\u002Fgitter.im\u002Flibvips\u002Fdevchat?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)\n\n# Introduction\n\nlibvips is a [demand-driven, horizontally\nthreaded](https:\u002F\u002Fgithub.com\u002Flibvips\u002Flibvips\u002Fwiki\u002FWhy-is-libvips-quick)\nimage processing library. Compared to similar\nlibraries, [libvips runs quickly and uses little\nmemory](https:\u002F\u002Fgithub.com\u002Flibvips\u002Flibvips\u002Fwiki\u002FSpeed-and-memory-use).\nlibvips is licensed under the [LGPL-2.1-or-later](\nhttps:\u002F\u002Fspdx.org\u002Flicenses\u002FLGPL-2.1-or-later).\n\nIt has around [300\noperations](https:\u002F\u002Fwww.libvips.org\u002FAPI\u002Fcurrent\u002Ffunction-list.html)\ncovering arithmetic, histograms, convolution, morphological\noperations, frequency filtering, colour, resampling,\nstatistics and others. It supports a large range of [numeric\ntypes](https:\u002F\u002Fwww.libvips.org\u002FAPI\u002Fcurrent\u002Fenum.BandFormat.html),\nfrom 8-bit int to 128-bit complex. Images can have any number of bands.\nIt supports a good range of image formats, including JPEG, JPEG 2000, JPEG XL,\nTIFF, PNG, WebP, HEIC, AVIF, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM \u002F PGM \u002F\nPFM, CSV, GIF, Analyze, NIfTI, DeepZoom, and OpenSlide. It can also load\nimages via ImageMagick or GraphicsMagick, letting it work with formats\nlike DICOM.\n\nIt comes with bindings for\n[C](https:\u002F\u002Fwww.libvips.org\u002FAPI\u002Fcurrent\u002Fusing-from-c.html),\n[C++](https:\u002F\u002Fwww.libvips.org\u002FAPI\u002Fcurrent\u002Fusing-from-cplusplus.html),\nand the\n[command-line](https:\u002F\u002Fwww.libvips.org\u002FAPI\u002Fcurrent\u002Fusing-the-cli.html).\nFull bindings are available for:\n\n| Language | Binding |\n|---|---|\n| Ruby | [ruby-vips](https:\u002F\u002Frubygems.org\u002Fgems\u002Fruby-vips) |\n| Python | [pyvips](https:\u002F\u002Fpypi.python.org\u002Fpypi\u002Fpyvips) |\n| PHP | [php-vips](https:\u002F\u002Fgithub.com\u002Flibvips\u002Fphp-vips) |\n| C# \u002F .NET | [NetVips](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FNetVips) |\n| Go | [vips-gen](https:\u002F\u002Fgithub.com\u002Fcshum\u002Fvipsgen) |\n| Lua | [lua-vips](https:\u002F\u002Fgithub.com\u002Flibvips\u002Flua-vips) |\n| Crystal | [crystal-vips](https:\u002F\u002Fgithub.com\u002Fnaqvis\u002Fcrystal-vips) |\n| Elixir | [vix](https:\u002F\u002Fgithub.com\u002Fakash-akya\u002Fvix) |\n| Java | [vips-ffm](https:\u002F\u002Fgithub.com\u002Flopcode\u002Fvips-ffm) |\n| Nim | [libvips-nim](https:\u002F\u002Fgithub.com\u002Fopenpeeps\u002Flibvips-nim) |\n\nlibvips is used as an image processing engine by:\n\n| |\n|---|\n| [Mastodon](https:\u002F\u002Fgithub.com\u002Fmastodon\u002Fmastodon) |\n| [sharp (on Node.js)](https:\u002F\u002Fwww.npmjs.org\u002Fpackage\u002Fsharp) |\n| [imgproxy](https:\u002F\u002Fgithub.com\u002Fimgproxy\u002Fimgproxy) |\n| [wsrv.nl](https:\u002F\u002Fgithub.com\u002Fweserv\u002Fimages) |\n| [bimg](https:\u002F\u002Fgithub.com\u002Fh2non\u002Fbimg) |\n| [Ruby on Rails](https:\u002F\u002Fedgeguides.rubyonrails.org\u002Factive_storage_overview.html) |\n| [CarrierWave](https:\u002F\u002Fgithub.com\u002Fcarrierwaveuploader\u002Fcarrierwave#using-vips) |\n| [MediaWiki](https:\u002F\u002Fwww.mediawiki.org\u002Fwiki\u002FExtension:Thumbro) |\n\nand others. The official libvips GUI is\n[nip4](https:\u002F\u002Fgithub.com\u002Flibvips\u002Fnip4), a strange combination of a\nspreadsheet and a photo editor.\n\n# Install\n\nThere are packages for most Unix-like operating systems, including\nmacOS. Check your package manager.\n\nThere are binaries for Windows in\n[releases](https:\u002F\u002Fgithub.com\u002Flibvips\u002Flibvips\u002Freleases).\n\nThe [libvips website](https:\u002F\u002Fwww.libvips.org) has [detailed\ninstall notes](https:\u002F\u002Fwww.libvips.org\u002Finstall.html).\n\n# Building from source\n\nlibvips uses the [Meson build system](https:\u002F\u002Fmesonbuild.com), version 0.56\nor later. Meson can use [`ninja`](https:\u002F\u002Fninja-build.org), Visual Studio or\nXCode as a backend, so you'll also need one of them.\n\nlibvips must have `build-essential`, `pkg-config`, `libglib2.0-dev`,\n`libexpat1-dev`.  See the **Dependencies** section below for a full list\nof the libvips optional dependencies.\n\nThere are basic bash completions in `completions\u002F`, see the README in there.\n\n## Cheatsheet\n\n```\ncd libvips-x.y.x\nmeson setup build --prefix \u002Fmy\u002Finstall\u002Fprefix\ncd build\nmeson compile\nmeson test\nmeson install\n```\n\nCheck the output of `meson setup` carefully and make sure it found everything\nyou wanted it to find.  Add arguments to `meson setup` to change the build\nconfiguration.\n\n- Add flags like `-Dnsgif=false` to turn libvips options on and off, see\n  `meson_options.txt` for a list of all the build options libvips supports.\n\n- Add flags like `-Dmagick=disabled` to turn libvips dependencies on and off,\n  see `meson_options.txt` and the list below for a summary of all the libvips\n  dependencies.\n\n- You might need to add `--libdir lib` on Debian if you don't want the arch\n  name in the library path.\n\n- Add `--default-library static` for a static build.\n\n- Use e.g. `CC=clang CXX=clang++ meson setup ...` to change compiler.\n\n- You can have an alternative build directory, pick whatever names you like,\n  for example one for release and one for debug.\n\nThere's a more comprehensive test suite you can run once libvips has been\ninstalled. Use `pytest` in the libvips base directory.\n\n## Optional dependencies\n\nIf suitable versions are found, libvips will add support for the following\nlibraries automatically. Packages are generally found with `pkg-config`,\nso make sure that is working.\n\n### libjpeg\n\nAnything that is compatible with the IJG JPEG library. Use `mozjpeg` if you\ncan. Another option is `libjpeg-turbo`.\n\n### libultrahdr (libuhdr)\n\nIf present, libvips will load UltraHDR images with Google's libultrahdr\nlibrary. The `pkg-config` name is libuhdr.\n\n### libexif\n\nIf available, libvips adds support for EXIF metadata in JPEG files.\n\n### librsvg\n\nThe usual SVG loader. If this is not present, vips will try to load SVGs\nvia imagemagick instead.\n\n### libraw\n\nThe usual camera RAW loader. If this is not present, vips will try to load raw\ncamera images via imagemagick instead.\n\n### PDFium\n\nIf present, libvips will attempt to load PDFs with PDFium. Download the\nprebuilt pdfium binary from:\n\nhttps:\u002F\u002Fgithub.com\u002Fbblanchon\u002Fpdfium-binaries\u002Freleases\u002Flatest\n\nUntar to the libvips install prefix, for example:\n\n```\ncd ~\u002Fvips\ntar xf ~\u002Fpdfium-linux.tgz\n```\n\nCreate a `pdfium.pc` like this (update the version number):\n\n```\nVIPSHOME=$HOME\u002Fvips\nmkdir -p $VIPSHOME\u002Flib\u002Fpkgconfig\ncat > $VIPSHOME\u002Flib\u002Fpkgconfig\u002Fpdfium.pc \u003C\u003C EOF\nprefix=$VIPSHOME\nexec_prefix=\\${prefix}\nlibdir=\\${exec_prefix}\u002Flib\nincludedir=\\${prefix}\u002Finclude\n\nName: pdfium\nDescription: PDFium\nVersion: 4290\nLibs: -L\\${libdir} -lpdfium\nCflags: -I\\${includedir}\nEOF\n```\n\nIf PDFium is not detected, libvips will look for `poppler-glib` instead.\n\n### poppler-glib\n\nThe Poppler PDF renderer, with a glib API. If this is not present, vips\nwill try to load PDFs via imagemagick.\n\n### cgif\n\nIf available, libvips will save GIFs with\n[cgif](https:\u002F\u002Fgithub.com\u002Fdloebl\u002Fcgif). If this is not present, vips will\ntry to save gifs via imagemagick instead.\n\n### libarchive\n\nIf available, libvips adds support for creating image pyramids with `dzsave`.\n\n### libtiff\n\nThe TIFF library. It needs to be built with support for JPEG and\nZIP compression. 3.4b037 and later are known to be OK.\n\n### fftw3\n\nIf libvips finds this library, it uses it for fourier transforms.\n\n### lcms2\n\nIf present, `vips_icc_import()`, `vips_icc_export()` and `vips_icc_transform()`\ncan be used to manipulate images with ICC profiles.\n\n### libpng\n\nIf present, libvips will load and save PNG files using libpng. If not, it\nwill look for the spng package.\n\n### libimagequant, quantizr\n\nIf one of these quantisation packages is present, libvips can write 8-bit\npalette-ised PNGs and GIFs.\n\n### ImageMagick, or optionally GraphicsMagick\n\nIf available, libvips adds support for loading and saving all\nlibMagick-supported image file types. You can enable and disable load and save\nseparately.\n\nImagemagick 6.9+ needs to have been built with `--with-modules`. Most packaged\nIMs are, I think.\n\nIf you are going to be using libvips with untrusted images, perhaps in a\nweb server, for example, you should consider the security implications of\nenabling a package with such a large attack surface.\n\n### pangocairo\n\nIf available, libvips adds support for text rendering. You need the\npackage pangocairo in `pkg-config --list-all`.\n\n### highway\n\nIf present, libvips will accelerate some operations with SIMD. If not, it\nwill look for the orc-0.4 package.\n\n### matio\n\nIf available, vips can load images from Matlab save files.\n\n### cfitsio\n\nIf available, vips can load FITS images.\n\n### libwebp\n\nIf available, vips can load and save WebP images.\n\n### libniftiio\n\nIf available, vips can load and save NIfTI images.\n\n### OpenEXR\n\nIf available, libvips will directly read (but not write, sadly)\nOpenEXR images.\n\n### OpenJPEG\n\nIf available, libvips will read and write JPEG2000 images.\n\n### libjxl\n\nIf available, libvips will read and write JPEG-XL images.\n\n### OpenSlide\n\nIf available, libvips can load OpenSlide-supported virtual slide\nfiles: Aperio, Hamamatsu, Leica, MIRAX, Sakura, Trestle, and Ventana.\n\n### libheif\n\nIf available, libvips can load and save HEIC and AVIF images. Your libheif (in\nturn) needs to be built with the correct decoders and encoders. You can check\nwith eg.:\n\n```console\n$ heif-convert --list-decoders\nHEIC decoders:\n- libde265 = libde265 HEVC decoder, version 1.0.9\nAVIF decoders:\n- dav1d = dav1d v6.6.0\n- aom = AOMedia Project AV1 Decoder v3.5.0\n$ heif-enc --list-encoders\nHEIC encoders:\n- x265 = x265 HEVC encoder (3.5+1-f0c1022b6) [default]\nAVIF encoders:\n- aom = AOMedia Project AV1 Encoder v3.5.0 [default]\n- svt = SVT-AV1 encoder v1.1.0\n- rav1e = Rav1e encoder\n```\n\n# Contributors\n\n### Code Contributors\n\nThis project exists thanks to all the people who contribute.\n\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Flibvips\u002Flibvips\u002Fgraphs\u002Fcontributors\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Flibvips\u002Fcontributors.svg?width=890&button=false\" \u002F>\u003C\u002Fa>\n\n### Organizations\n\nWe've had generous financial support from our sponsors. Thank you very much!\n\n\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Flibvips\u002Fsponsors.svg?width=890&button=false\" \u002F>\n","libvips 是一个高性能的图像处理库，具有低内存需求的特点。它支持超过300种操作，包括算术、直方图、卷积、形态学运算、频率过滤、色彩处理、重采样和统计等，并且兼容多种图像格式如JPEG、PNG、TIFF、WebP、HEIC等。该库采用按需计算和水平多线程技术，使得其在处理速度和内存使用上表现优异。此外，libvips提供了C、C++以及命令行接口，并有针对Ruby、Python、PHP等多种语言的绑定。非常适合需要高效处理大量或大型图像的应用场景，例如社交媒体平台、在线图片服务及科研图像分析等领域。",2,"2026-06-11 03:06:02","top_language"]