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
2 answers

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 extension for PHP. I have installed libvips binary for Windows and…
0
votes
1 answer

(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 each along the edges of a square-shaped sample (the…
Paul
  • 211
  • 1
  • 8
0
votes
1 answer

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 correctly rotate them when they are saved to storage.…
0
votes
1 answer

I want to use the openslide functionality in pyvips

I tried to use both openslide and pyvips and my application doesn't find the necesary .dll. I think it is a problem of using both librarys. I have read that pyvips has openslide embed but I can't find how to use it. The main purpose for this is to…
Seakz
  • 11
0
votes
1 answer

I have 40x tiff images and i want to use them to build 20x, 10x levels. How can I do that?

My problem is that I have TIFF images with multiple levels (40x,20x,10x,5x) but some only have 40x level and I need all of them. My question is if there is any way to get 20x or other levels from 40x level images. I read about a library called vips…
Seakz
  • 11
0
votes
1 answer

Strange behavior in pyvips, impossible to write some images

I'm currently trying to make pyvips work for a project where I need to manipulate images of a "big but still sensible" size, between 1920x1080 and 40000x40000. The installation worked well, but these particular 2 lines sometime work, sometime…
Astrosias
  • 23
  • 4
0
votes
0 answers

Getting error while applying background color to .jpg image in libvips

I am using the PHP libvips library, I have a function that applies background colour on images using vips flatten method. The issue is when I am trying to apply background colour to .jpg image it gives me the below error Fatal error: Uncaught…
Vinay Kapoor
  • 47
  • 1
  • 10
0
votes
1 answer

Getting error while applying black and white filter on image in libvips

I am using libvips PHP library, I am applying some effects on my image using the library and it's work very charm, but somehow for one image it's not working properly and giving me below error Note - I m getting this error only the image which I…
Vinay Kapoor
  • 47
  • 1
  • 10
0
votes
1 answer

Getting error while try to write gif image to buffer

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. Fatal error: Uncaught Jcupitt\Vips\Exception: magicksave_buffer: libMagick error: no decode delegate for this…
Vinay Kapoor
  • 47
  • 1
  • 10
0
votes
1 answer

vips thumbnail transparent issue for svg image

I have one transparent SVG image, I am trying to generate the thumbnail of that image. It generates a thumbnail of the image properly, but it removes the transparency of the image and adds a black background to the image. I want to generate…
Vinay Kapoor
  • 47
  • 1
  • 10
0
votes
2 answers

ImageMagick / GraphicsMagick / libvips Images randomly corrupted

We are using ImageMagick for resizing/thumbnailing JPGs to a specific size. The source file is loaded via HTTP. It's working as expected, but from time to time some images are partially broken. We already tried different software like GraphicsMagick…
Webadmin
  • 3
  • 2
0
votes
0 answers

Extent image in libvips with white background

I want to extent the image using vips. In PHP imagick it has method Imagick::extentImage. How can I achieve it with vips. I found this link but it's not giving output as I want https://github.com/libvips/libvips/issues/857 How can I pass x and y…
Vinay Kapoor
  • 47
  • 1
  • 10
0
votes
3 answers

GIF output requires libvips with support for ImageMagick

I'm working on building a website with Gatsby and whenever I try to build I get this error. I have installed libvips with Homebrew and it automatically includes ImageMagick. I then deleted sharp from node_modules and reinstalled sharp, but I still…
paapmc
  • 3
  • 2
0
votes
0 answers

cordova-res returns Error: pngload_buffer : non-recoverable state

I'm trying to generate the resources for an ionic app. The cordova-res command returns an error. Here what is returns with the --verbose option. cordova-res Caught fatal error: [Error: pngload_buffer: non-recoverable state cordova-res…
Lucien Dubois
  • 1,590
  • 5
  • 28
  • 53
0
votes
1 answer

Reducing PNG file size with pyvips: matching ImgBot and ImageMagick optimizations

I'm trying to minimize file size of PNG images written with pyvips.Image.pngsave(). Original files written with just .pngsave(output) are at https://github.com/CDDA-Tilesets/UltimateCataclysm and we'll look at giant.png which is 119536 bytes. ImgBot…
int_ua
  • 1,646
  • 2
  • 18
  • 32