libvips | A fast image processing library with low memory needs | Computer Vision library

 by   libvips C Version: v8.14.2 License: LGPL-2.1

kandi X-RAY | libvips Summary

kandi X-RAY | libvips Summary

libvips is a C library typically used in Artificial Intelligence, Computer Vision applications. libvips has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has medium support. You can download it from GitHub.

libvips is a demand-driven, horizontally threaded 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, convolution, morphological operations, frequency filtering, colour, resampling, statistics and others. It supports a large range of numeric types, from 8-bit int to 128-bit complex. Images can have any number of bands. It supports a good range of image formats, including JPEG, JPEG2000, JPEG-XL, TIFF, PNG, WebP, HEIC, AVIF, FITS, Matlab, OpenEXR, PDF, SVG, HDR, PPM / PGM / PFM, CSV, GIF, Analyze, NIfTI, DeepZoom, and OpenSlide. It can also load images via ImageMagick or GraphicsMagick, letting it work with formats like DICOM. It comes with bindings for C, C++, and the command-line. Full bindings are available for Ruby, Python, PHP, C# / .NET, Go, and Lua. libvips is used as an image processing engine by sharp (on node.js), bimg, sharp for Go, Ruby on Rails, carrierwave-vips, mediawiki, PhotoFlow and others. The official libvips GUI is nip2, a strange combination of a spreadsheet and a photo editor.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              libvips has a medium active ecosystem.
              It has 8033 star(s) with 598 fork(s). There are 134 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 52 open issues and 2072 have been closed. On average issues are closed in 8 days. There are 10 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of libvips is v8.14.2

            kandi-Quality Quality

              libvips has 0 bugs and 0 code smells.

            kandi-Security Security

              libvips has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              libvips code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              libvips is licensed under the LGPL-2.1 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              libvips releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 7834 lines of code, 364 functions and 32 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of libvips
            Get all kandi verified functions for this library.

            libvips Key Features

            No Key Features are available at this moment for libvips.

            libvips Examples and Code Snippets

            No Code Snippets are available at this moment for libvips.

            Community Discussions

            QUESTION

            'darwin-arm64v8' binaries cannot be used on the 'darwin-x64' platform
            Asked 2022-Feb-28 at 11:42

            I am trying to deploy functions to firebase using my Mac M1, for which it was required to do an npm install to install packages in node_modules/. I am getting this error:

            ...

            ANSWER

            Answered 2021-Aug-17 at 08:37

            Usually someone having a Mac M1 would have this issue. The Mac M1 processor is arm64. There was a solution posted here which requires to change terminal architecture to arch -x86_64 zsh which I did not want to do.

            So, that's the workaround I was able to discover (some of the steps also mentioned in the error):

            Source https://stackoverflow.com/questions/68814180

            QUESTION

            NPM install fails, OSX
            Asked 2022-Feb-17 at 12:40

            I have been trying for ages to set up the dev environment for a new macbook. I could get my project from github just fine but whenever I run npm install to fetch the dependencies I encounter this gyp error. I have tried upgrading and downgrading node, clearing the cache. Deleting and re-setting up node_modules, but the error always remains the same. Any insight would be very much appreciated.

            ...

            ANSWER

            Answered 2022-Feb-17 at 12:40

            It's not an error due to npm.

            NPM install the package that has a build script to build node-gyp. The build fails due to the license agreement with :

            You have not agreed to the Xcode license agreements, please run 'sudo xcodebuild -license' from within a Terminal window to review and agree to the Xcode license agreements.

            so just run the command to accept the license agreement

            Source https://stackoverflow.com/questions/71156686

            QUESTION

            how to fix "invalid instruction" error when running node.js in Docker, with sharp.js lib
            Asked 2021-Dec-28 at 23:35

            When running node.js in Docker, with sharp.js lib I am getting "invalid instruction" error and it exits with code 1.

            This is likely related to "libvips" used by sharp.js, that requires C compiler. I tried using various base Docker images, and so far all get same error. Any suggestion would be helpful.

            Here is minimum reproducible set:

            When const sharp = require("sharp"); is commented out it works.

            When it is included, getting this error Illegal instruction

            Dockerfile

            ...

            ANSWER

            Answered 2021-Dec-28 at 23:35

            This issue is related to CPU instructions used by current version sharp.js lib that are not supported by some older processors. Resolved by setting exact older version of sharp.js lib, based on this useful answer here:

            NodeJS: Illegal instruction (core dumped) Error after using sharp library

            this solved issue

            Source https://stackoverflow.com/questions/70488206

            QUESTION

            Docker build fail: sharp Use with musl 1.2.2 requires manual installation of libvips
            Asked 2021-Dec-08 at 13:47

            I am running this command docker build -t project and on step 13 the installation fails here is docker file contents

            ...

            ANSWER

            Answered 2021-Dec-08 at 13:47

            the issue was resolved by updating node-alpine to 14 and updating sharp library to 0.29.1

            Source https://stackoverflow.com/questions/70274473

            QUESTION

            Getting error while try to write gif image to buffer
            Asked 2021-Nov-15 at 10:44

            I am using PHP libvips library when I am using this function writeToBuffer for write to buffer the image it gives me below types of error.

            ...

            ANSWER

            Answered 2021-Nov-15 at 10:44

            By default libvips will only load the first frame of an animation. To load all frames, set the n parameter (number of pages) to -1. Use:

            Source https://stackoverflow.com/questions/69973023

            QUESTION

            How do you resample upscale an image using wasm-vips?
            Asked 2021-Oct-25 at 09:25

            wasm-vips is a browser/node wrapper for libvips

            Goals:

            Using wasm-vips

            1. Upscale image using interpolator such as lanzcos3 or nohalo
            2. In the upscale method pass in a buffer instead of reading the image from a file

            Example reading an image

            ...

            ANSWER

            Answered 2021-Oct-25 at 09:25

            QUESTION

            Resize to Specific Height and Width with pyvips
            Asked 2021-Sep-28 at 14:12

            I find this answer, and I want to use pyvips to resize images. In the mentioned answer and the official documentation image resized by scale. However, I want to resize the image to a specific height and width. Is there any way to achieve this with pyvips?

            ...

            ANSWER

            Answered 2021-Sep-28 at 14:12

            The thumbnail operation in pyvips will resize to fit an area. For example:

            Source https://stackoverflow.com/questions/69363178

            QUESTION

            sharp error: Package OpenEXR was not found in the pkg-config search path
            Asked 2021-Sep-07 at 10:10

            I executed npm install on gatsby js directory on Mac.

            • macOs is Big Sur

            • Version is 11.4.

            • gatsby version is 3.11.0

            • gatsby-plugin-sharp version is 3.11.0

            this error log is shown.

            ...

            ANSWER

            Answered 2021-Aug-09 at 10:37

            QUESTION

            Nuxt convert image to webp before sending to AWS S3
            Asked 2021-Jul-16 at 18:55

            How can I convert images to WEBP format before sending them to AWS S3 in my NUXT app?

            I have a photo upload on my website, I would like to convert the images from the file input to WEBP format before uploading to the Amazon web service. Unlike NodeJS where I can import sharp and use it to convert the images to WEBP format, it is not the case here as I get an error like the like below

            ...

            ANSWER

            Answered 2021-Jul-12 at 15:26

            you could use the packages imagemin and imagemin-webp as answered here: Convert Images to webp with Node

            Source https://stackoverflow.com/questions/68349878

            QUESTION

            issue using sharp package i Nuxt
            Asked 2021-Jul-12 at 00:53

            i tried using this in my Nuxt project, but it failed upon compiling

            in my plugin/sharp.js

            ...

            ANSWER

            Answered 2021-Jul-12 at 00:52

            sharp is a Node.js package, hence this will not work with Vue. At least, not in the client context.

            You are probably better optimizing your images ahead of time or via a service like Cloudinary.

            Source https://stackoverflow.com/questions/68340799

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install libvips

            There are packages for most Unix-like operating systems, including macOS. Check your package manager. There are binaries for Windows in releases. The libvips website has detailed install notes.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/libvips/libvips.git

          • CLI

            gh repo clone libvips/libvips

          • sshUrl

            git@github.com:libvips/libvips.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link