189 questions
0
votes
0
answers
49
views
VIPS: How to convert ActiveStorage attachment to webp or avif
I would like to resize and transform jpg image to webp and avif
I tried several solution, but always get a jpg image.
<%= image_tag @attachment.variant(resize_and_pad: [300, 300, background: [255]])...
0
votes
1
answer
92
views
Netvips Thumbnail does not preserve resolution or remove some parts of image
I'm using NetVips to create some diferent sizes of my image
This is my original img
And this is the result
This is my code:
public static void GetThumbNail(
string sourcePath,
...
0
votes
2
answers
115
views
how to rotate and pad huge numpy arrays without consuming too much memory?
I'm working with big wsi images, while making wsi I'm using opencv for calculations and appending frames into a huge numpy array(50kx50kx3 array taking 7.5gb memory), for saving I was using opencv ...
0
votes
0
answers
35
views
Viplibs dzsave zsh: no matches found:
I am using dzsave on viplibs to convert a PNG to jpg-tiles for a zoomify / openseadragon project using the following prompt in terminal:
vips dzsave file.png myzoom --layout zoomify myfiletiles --...
0
votes
1
answer
142
views
How do I best scale png to 1 bit BMP (pyvips or PIL)
For a project I need to convert a PDF to strips of (large) BMP images, in 1 bit.
Quality is not the major issue here, but conversion speed is.
The input is a PDF document, the output is a series of ...
0
votes
1
answer
147
views
libvips to crop an image with an origin point
The goal is to take an image and generate multiple variants of an image, with a predefined height, but varying width, thus cropping based on the top,left origin point.
Selecting the libvips library ...
2
votes
0
answers
163
views
VipsJpeg: Wrong JPEG library version: library is 90, caller expects 80
When running this github.com/davidbyttow/govips package within a Gin backend server, facing the below error:
VipsJpeg: Wrong JPEG library version: library is 90, caller expects 80
When running the ...
0
votes
1
answer
81
views
NetVips Mosiac how to calculate the merge point
Doing some work to merge a bunch of images into one large image. I found the vips library and the mosaic function (Link to vips doc which worked how I want it to work in an example. The issue I'm ...
0
votes
1
answer
101
views
Choosing a file structure for large scan images and libvips
Hi and thanks in advance !
I am writing a desktop application that uses industrial line-scan cameras to scan strips of photographic film. The total dimensions of the images captured is about 4,000x250,...
1
vote
1
answer
215
views
Is it possible to use libvips to rasterize a PDF in 16-bit depth?
I have a PDF that contains a gradient that I'd like to render to a bitmap with more than 8 bits of resolution.
I've come to the conclusion that I can't do this with ghostscript, even using the ...
0
votes
0
answers
105
views
Python program freezes when multiprocessing call follows sequential call
I encountered a strange problem with a Python program processing images with the pyvips library. Here is a simplified version of my problem.
I try to create a numpy array (coming from zeros in my ...
0
votes
1
answer
214
views
dzsave method not installed when including libvips-dev in dockerfile
I am fairly new to docker, and I am trying to make a docker image which gives me jupyter server with pyvips.
The building of the image and running the container is going fine. Accessing the jupyterlab,...
0
votes
2
answers
137
views
How to get a telegram bot to send an svg image https://phys-ege.sdamgia.ru/get_file?id=69140
I'm making a telegram bot that sends tasks from the site https://phys-ege.sdamgia.ru / You need to send an Image.
As I understand it, you need to convert svg to png or jpeg, but when using the pyvips ...
1
vote
0
answers
97
views
How to extract frames as individual webp/jxl files from a mov file with H.264/265 format?
I have a movie file like example.mov, in H.264 or H.265 (HEVC) format (from iPhone) and I want to extract all frames as individual image files in lossless webp format and jxl format.
I've looked for ...
1
vote
0
answers
566
views
Could not open library 'vips.42' - Ruby/Jekyll
Everything was running smoothly until... I ran into this error when running the brew upgrade vips command:
bundle exec jekyll s -l
bundler: failed to load command: jekyll (/Users/gschiavon/.gem/ruby/2....
0
votes
0
answers
529
views
Can I get a list of required packages to install libvips, libvips-dev, libvips-tools for version 8.14.4?
I'm trying to install libvips (https://github.com/libvips/libvips/releases/tag/v8.14.4) on a alpine distribution of Linux. Can I please get help with list of required packages? I want to get https://...
0
votes
1
answer
90
views
Efficient "bandmax" function in pyvips?
I'm looking for a way to efficiently find the band that has the maximum value in a large multi-band image.
For example if we had an image that looked like
band 1 band 2 band 3
[1 2 3] [3 4 5] [0 ...
-1
votes
1
answer
912
views
Install libvips on golang docker container
How to install libvips on a docker container.
1
vote
1
answer
494
views
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 ...
0
votes
1
answer
1k
views
Creating a Deep Zoom Image(.dzi) using pyvips library
I have 360000 images of 800x600 pixel size. I need to stitch with overlap all these images to create a full image that can be zoomed in to view details. How do I make a .dzi image from these base ...
2
votes
1
answer
1k
views
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,...
0
votes
1
answer
571
views
VIPs-Warning ** error in tile 0 x 1104 - Gif Crashing website - Ruby on Rails
I've deployed my app to fly.io and found an interesting error that only affects production. The same gif doesn't cause this issue using local storage. The gif is uploaded to AWS S3
First I get the ...
-1
votes
1
answer
328
views
How to package vips for distribution?
I am trying to package the vips repository for distribution so I can double-click on it and install it on any Mac OS version. On Windows, this is easy - I just have to put the folder containing the ...
3
votes
2
answers
1k
views
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 ...
0
votes
0
answers
316
views
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-...
0
votes
1
answer
475
views
msys64/ucrt64/include/vips/vips8:35:10: fatal error: glib-object.h: No such file or directory #include <glib-object.h>
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 ...
1
vote
2
answers
417
views
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 ...
1
vote
0
answers
164
views
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": ...
1
vote
0
answers
137
views
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 ...
0
votes
1
answer
738
views
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 ...
0
votes
2
answers
106
views
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....
0
votes
1
answer
155
views
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 ...
2
votes
1
answer
1k
views
Rails 7, vips on M1 MacBook Air
I'm unable to use Rails 7.0.3.1 with vips on an M1 MacBook Air due to the error:
rails aborted!
LoadError: Could not open library 'glib-2.0.0': dlopen(glib-2.0.0, 0x0005): tried: 'glib-2.0.0' (no such ...
0
votes
1
answer
341
views
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 ...
0
votes
2
answers
2k
views
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 ...
0
votes
1
answer
2k
views
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 ...
1
vote
0
answers
102
views
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 ...
0
votes
1
answer
158
views
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 ...
0
votes
4
answers
838
views
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 ...
0
votes
1
answer
457
views
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 ...
0
votes
1
answer
566
views
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 ...
0
votes
1
answer
753
views
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, ...
0
votes
1
answer
388
views
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 16.13.0
C:\Users\varsha\AppData\Roaming\...
0
votes
2
answers
642
views
libvips FFI use on Windows PHP cannot find glib functions
I am attempting to use the libvips package on Windows 11.
I have installed the composer package "jcupitt/vips": "2.0.0"
My local PHP setup is laragon, and I have enabled the FFI ...
1
vote
1
answer
2k
views
(Live) viewing of large images using pyvips
I recently discovered the awesome pyvips package and would like to use it to analyze data that was taken on a homebuilt slide scanner (not built by me). I scan about 4000 tiles of 1024x1024 pixels ...
0
votes
1
answer
404
views
Ruby on Rails Carrierwave-vips: Auto Orient not working if exif data is stripped at same time
I'm on Ruby 2.4.0 and Ruby on Rails 4.2.8.
I've moved from mini_magick to vips for handling images on my Ruby on Rails uploader. Due to wkhtmltopdf not supporting EXIF data for images, i have to ...
5
votes
2
answers
4k
views
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 ...
1
vote
1
answer
378
views
Parallel overlaying of multiple images in govips
In Govips, is there a functionality to overlay multiple images on a base image parallelly?
There is a function - compositeMulti which takes a list of images but does it render it parallelly? Also, ...
1
vote
1
answer
2k
views
Using libvips with Rust on Alpine
I have a Rust application with Actix Web which resizes images using libvips (https://crates.io/crates/libvips). Now I am trying to dockerize it. Here is my Dockerfile:
#################################...
1
vote
1
answer
767
views
How can i watermark or stamp pdf file with active storage rails 7. Is it possible?
I want to show watermarked PDF file to end user on .erb view file on my application.
For testing purpose firstly i tried to do this with jpeg image.
My resources are;
ImageProcessing Gem
...