Questions tagged [vips]

`libvips` is a fast image processing library with low memory needs. `vips` is the command-line tool for that library.

libvips is a fast image processing library with low memory needs.

vips is the command-line tool for that library.

179 questions
14
votes
3 answers

Installing Sharp /usr/include/vips/vips8:35:25: fatal error: glib-object.h

I am trying to install sharp on Ubuntu 16.04 LTS. I originally did not have vips, so I installed sudo apt-get install libvips-dev That fixed the first error, but now I get another error that I am stuck on: In file included from…
Rachel
  • 141
  • 1
  • 1
  • 4
7
votes
1 answer

Rescaling an image with libvips

I have an image which is 6130x5548 pixels and I want to rescale it so that the longest side is 32768 pixels (and then do a pyramid of tiles with 7 zoom levels). I undestand vips resize is the obvious way for something like that, hence I tried the…
Aenaon
  • 3,169
  • 4
  • 32
  • 60
7
votes
2 answers

Ruby-vips image processing library. Are there any good examples of usage?

I am completely new to image processing. I know nothing about what is JPEG internally and how it works. I wonder, if I can find somewhere piece of ruby code performing following simple operation: Open jpeg file. Iterate through each pixel and set…
Stanislav Pankevich
  • 11,044
  • 8
  • 69
  • 129
5
votes
1 answer

How to install libvips on Alpine 3.8?

I try to install vips-dev package to alpine linux 3.8. But get following error: docker run -it --rm alpine:3.8 /bin/sh -c "apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing vips-dev" fetch…
Molfar
  • 1,411
  • 3
  • 18
  • 49
5
votes
1 answer

(Py)Vips vs Pillow upscaling image quality

Resizing an image to 200% yields a difference in quality between Pillow and pyvips. While Pillow is very accurate in the reproduction, vips exaggerates noise and contrast. I need to use vips for very large images, but the quality is…
Horst
  • 292
  • 2
  • 14
4
votes
2 answers

Resize to Specific Height and Width with pyvips

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…
d4riush
  • 370
  • 3
  • 8
4
votes
3 answers

Joining multiple huge images with pyvips

I'm trying to figure out how to join multiple images with vips via python. I have in a folder lets say 30 ( but can be more than 600 ) png files that are stripes, they have resolution 854x289920 ( all the same resolution )... PIL in python will…
VladoPortos
  • 563
  • 5
  • 21
4
votes
2 answers

Static linked vips (libvips) binary

I have been attempting to create a statically linked version of vips but have been unable to. Is it possible to create a statically linked vips command? The platform I am compiling on is Ubuntu 16.04. The make command I am running: make…
SjB
  • 213
  • 4
  • 16
3
votes
2 answers

Adding libvips to a Rails 7 Docker image

I'm new to Docker and trying to create a Dockerfile for this new Rails 7 app. I'm using vips instead of imagemagick for the memory benefits. and my local machine is a mac so brew install vips takes care of my non docker development flow, but it…
NoobException
  • 616
  • 9
  • 20
3
votes
1 answer

Vips - add text on top of image, after resize in Ruby

I'm using Vips to resize images via Shrine, hoping it's possible to use the Vips library to merge a layer of text on top of the image. ImageProcessing::Vips.source(image).resize_to_fill!(width, height) This code works great, how can I add a layer…
Kobius
  • 674
  • 7
  • 28
3
votes
0 answers

Create SVG With Text only, width and height based on text size using librsvg?

I am trying to create an svg with one single text element. The size of the svg should be determined solely by the font size of the text, and it should fit the text perfectly. The closest I have come to what I am looking for is this: …
adam tropp
  • 674
  • 7
  • 22
3
votes
1 answer

How can I use VIPS for image normalization?

I want to normalize the exposure and color palettes of a set of images. For context, this is for training a neural net in image classification on medical images. I'm also doing this for hundreds of thousands of images, so efficiency is very…
Twiffy
  • 425
  • 1
  • 4
  • 10
3
votes
1 answer

libvips rotate is throwing no space left on device

I am using libvips to rotate the images. I am using a VM that have 3002 MB Ram and 512MB temp storage.The AWS Lambda Machine. The command I running to rotate images is vips rot original.jpg rotated.jpg d90 It throwing the following error Exit…
3
votes
5 answers

Extracting a region of interest from an image file without reading the entire image

I am searching for a library (in any language) that is capable of reading a region of an image file (any format) without having to initially read that entire image file. I have come across a few options such as vips, which does indeed not keep the…
andrei
  • 339
  • 3
  • 12
3
votes
1 answer

Converting PIL image to VIPS image

I'm working on some large histological images using Vips image library. Together with the image I have an array with coordinates. I want to make a binary mask which masks out the part of the image within the polygon created by the coordinates. I…
Rune
  • 33
  • 2
1
2 3
11 12