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
2
votes
1 answer

Vips + mozjpeg vs Imagick

I'm looking for a solution to get the best jpeg compression when down scaling an image. I'm comparing Vips + Mozjpeg and Imagick (convert). My original file (pic.jpg) is 6.5 MB. I run: vipsthumbnail pic.jpg --size=1920x1280 --delete -o…
hamochi
  • 47
  • 4
2
votes
1 answer

How to perform perspective distort transformation in VIPS?

Is it possible to do the following ImageMagick perspective distort command using VIPS? If so, what would the command be (using ruby-vips)? $ convert my_file.png -matte -virtual-pixel transparent +distort Perspective '0,0,0,60 1500,0,300,0…
dignoe
  • 1,013
  • 11
  • 17
2
votes
1 answer

Resizing + stretching with vipsthumbnail?

I'm using vipsthumbnail to resize images via the command line. I would like to know if there is a way to resize an image and ignore its aspect ratio, so that no matter what size if I passed 5x500 I would get a 5px by 500px image. I can't fine…
nkkollaw
  • 1,947
  • 1
  • 19
  • 29
2
votes
3 answers

How to convert image to RGBA in `vips` tool? How to make sure two images have the same number of bands?

I'm writing a shell script to concatenate some images, and I'm using the vips command-line because it has low memory requirements (and I intend to work with extremely large images). However, if one image is RGB and the other is RGBA, it fails: $…
Denilson Sá Maia
  • 47,466
  • 33
  • 109
  • 111
2
votes
1 answer

C++ TIFF (raw) to JPEG : Faster than ImageMagick?

I need to convert many TIFF images to JPEG per second. Currently I'm using libmagick++ (Q16). I'm in the process of compiling ImageMagick Q8 as I read that it may improve performance (specially because I'm only working with 8bit images). CImg also…
lepe
  • 24,677
  • 9
  • 99
  • 108
2
votes
1 answer

Extract tiles from tiled TIFF and store in numpy array

My overall goal is to crop several regions from an input mirax (.mrxs) slide image to JPEG output files. Here is what one of these images looks like: Note that the darker grey area is part of the image, and the regions I ultimately wish to extract…
Ryan
  • 3,555
  • 1
  • 22
  • 36
2
votes
1 answer

Ruby-vips getting EXIF orientation

I'm attempting to get image EXIF data from the ruby-vips gem but I keep receiving errors. I've found documentation from others who have attempted to repair this issue and I've attempted their fixes with no…
eabraham
  • 4,094
  • 1
  • 23
  • 29
1
vote
1 answer

vips: unknown action "dzsave"

Ok, I am feeling rather stupid right now... I have installed vips on my windows computer from https://github.com/libvips/build-win64-mxe/releases/download/v8.14.2/vips-dev-w64-all-8.14.2.zip Extracted it and typed vips dzsave from with in the bin…
Gina Marano
  • 1,773
  • 4
  • 22
  • 42
1
vote
1 answer

How to crop images at the center with Rails 7 Active Storage and Vips?

I successfully setup Rails 7 and Active Storage with the Vips library to upload images and now I would like to have a squared image variation with dimensions of 400x400px that is cropped at the center, regardless of the uploaded image. For example,…
Backo
  • 18,291
  • 27
  • 103
  • 170
1
vote
2 answers

Ruby 3 Rails 7 minitest ruby vips warning (from image processing)

I am getting a ton of warnings from ruby vips when running my test suit. Not causing any issues... just really annoying. Does anyone know the root issue here or know how to suppress the ruby vips warnings? ruby '3.1.2' gem 'rails', '~> 7.0.4' gem…
Clark Taylor
  • 323
  • 2
  • 10
1
vote
2 answers

How to overlap animated images with libvips?

I have two gifs: aura.gif which is a 7 frames animation, and character.gif which is a 1 frame image. When I overlay one on top of the other as shown below, I get a 7 frames animated image but the character in character.gif only appears in the first…
Juan Alonso
  • 2,125
  • 2
  • 15
  • 16
1
vote
0 answers

How to use bimg with clang compiler instead of gcc?

I have clang installed and available in PATH, but when I'm trying to build my project, I'm getting this error: # github.com/h2non/bimg cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH% How to make it work with clang?…
Andrew
  • 701
  • 1
  • 8
  • 19
1
vote
0 answers

Unable to Determine why Frame Too Large For GIF Govips

I am trying to resize the following GIF Original Dimensions are: 1270 x 1270 and a total of 149 Pages I am resizing to the following Dimensions: 250 x 250 (Successful) 500 x 500 (Successful) 750 x 750 (Unsuccessful) It fails for the last case and…
1
vote
0 answers

Alpha mask for an image in govips

In govips, how to create an alpha mask - basically an image having black pixels which are transparent and white for the ones which have 0 transparency - so creating an image from the alpha channel of the given image?
Calypso
  • 63
  • 1
  • 6
1
vote
1 answer

Set Resolution of Image in Vips 7.26 C++

i'm trying to convert a .pdf to a .jpeg using Vips version 7.26 with C++. but the quality output is very bad. Is there a way to set the resolution on read file process? Note: Update Vips to newer versions it's not a solution My Code vips::VImage…
Guilherme
  • 33
  • 4
1 2
3
11 12