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
0
votes
0 answers

How to merge declaration files in typescript

I'm creating a library that creates GJS bindings for the Vips image processing library. Vips exposes an Image class, but that class does not have several required methods (operators) such as invert, zoom etc. since they are meant to be written…
vixalien
  • 347
  • 2
  • 10
0
votes
0 answers

Error after removing gem image_processing because using cloudinary as image processor

I have just upgraded from rails 6 to rails 7. Started getting errors on heroku related to vips : LoadError Could not open library 'vips.so.42': vips.so.42: cannot open shared object file: No such file or directory. (LoadError) Could not open library…
0
votes
0 answers

Install Vips-8.9.2 on UCRT64 windows11

I am trying to install vips-8.9.2 on UCRT64 for windows 11. And after "./configure" I got: configure: creating ./config.status config.status: creating vips.pc config.status: creating vips-cpp.pc config.status: creating Makefile config.status:…
0
votes
1 answer

msys64/ucrt64/include/vips/vips8:35:10: fatal error: glib-object.h: No such file or directory #include

I am trying to compile with mingw32-make but the following error is displayed: g++ fitscli.cpp vipsoperations.cpp fits.cpp ConsoleTable.cpp `pkg-config vips-cpp ` -lcfitsio -ltiff -o fitscli In file included from…
0
votes
1 answer

How can I read a specific level in TIF image with pyvips?

I'm trying to read a specific level (level=3) using pyvips: image = pyvips.Image.new_from_file(data/imagestif/SUH_BR_0002.tif,level=3) But I get this error: KeyError: 'level' I don't why I can't specify the level with that argument, as the…
Seakz
  • 11
0
votes
2 answers

Chroma Key Removal using Elixir / Vix / libvips

This is just some handler code copied from the Vix examples defmodule VixExt do alias Vix.Vips.Image alias Vix.Vips.Operation @max_height 500 def show(%Image{} = image) do height = Image.height(image) # scale down if image height…
GenericJam
  • 2,915
  • 5
  • 31
  • 33
0
votes
1 answer

libvips perlin to rgb

Using NetVips, using var per = Image.Perlin(800,800,33,true,3434); using var per2 = Image.Perlin(800,800,13,true,3435); using var per3 = Image.Perlin(800,800,13,true,3435); using var comp = per.Composite(new []{per2, per3},new…
maxfridbe
  • 5,872
  • 10
  • 58
  • 80
0
votes
1 answer

Adjusting contrast in VIPS the same way as the matching CSS filter

I have a web app where users can use the filter contrast in order to modify an image : filter: contrast(1.1) that I would like to reproduce in VIPS. (In Ruby) Though I have not found any information on how to do that in Vips yet. I saw Vips…
Maxence
  • 2,029
  • 4
  • 18
  • 37
0
votes
2 answers

Could not open library 'vips.42'; Library not loaded: '@@HOMEBREW_PREFIX@@/opt/libpng/lib/libpng16.16.dylib'

Everything was running fine locally in my Rails 7 application on Apple M1 macOS Monterey, until I did brew update. Now I am running into issues with vips. I've seen another thread saying I need to run brew install vips, but I am still getting this…
AKN
  • 196
  • 3
  • 13
0
votes
1 answer

How to use libvips to shrink giant images with limited memory

I have a Ruby on Rails web application that allow users to upload images which then automatically get resized as small thumbnails using libvips and the ImageProcessing ruby gem. Sometimes users legitimately need to upload 100MP+ images. These large…
Dauncing
  • 107
  • 1
  • 8
0
votes
4 answers

php libvips: memory leak and GLib errors

I have a server running Ubuntu 22.04 where I have apache and php installed. I have recently started using libvips for php, and I have noticed that every time a php script is run, the amount of ram used increases more and more. For example, if the…
Gabry
  • 33
  • 1
  • 6
0
votes
1 answer

How can I converting multi page PDF file to many images .jpeg with Vips in C++?

I'am trying using vips in c++ to read a .PDF and convert to .jpeg files. The problem is that the code save all the pages in a single file .jpeg. How can i save in many .jpeg files? My Code VOption *voptions = new VOption(); …
Guilherme
  • 33
  • 4
0
votes
1 answer

libvips in C++ on Mac

I trying to write a program in CLion IDE that read a pdf file with C++ vips library and I get this error. What it's wrong? Undefined symbols for architecture x86_64: "vips::VImage::pdfload(char const*, vips::VOption*)", referenced from: …
Guilherme
  • 33
  • 4
0
votes
1 answer

Get "Vips::Error Exception: VipsJpeg: out of order read at line 1440" in ActiveStorage custom alalyzer

My custom analyzer class BlurhashAnalyzer < ActiveStorage::Analyzer::ImageAnalyzer::Vips def metadata read_image do |image| if rotated_image?(image) { width: image.height, height: image.width } else { width:…
Fangxing
  • 5,716
  • 2
  • 49
  • 53
0
votes
1 answer

Not able to install Saltcorn in Windows 10

I tried to install saltcorn using this wiki page. https://wiki.saltcorn.com/view/ShowPage/install-on-windows-10 It is failing due to vips error npm 8.1.0 node…