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

Vips writeToBuffer not apply the image quality

I am trying to use libvips writeToBuffer method with quality, but it's not apply the quality to the image is there any other method for set the quality. I have below case if file exists then it call the writeToFile otherwise writeToBuffer. IS there…
Test Human
  • 31
  • 1
  • 7
0
votes
1 answer

Implementing perspective transform using vips

I am trying to implement a perspective transform using vips in Go. I am using opencv's GetPerspectiveTransform method to calculate a transform matrix then computing a map image as follows func DistortPerspective(ref *vips.ImageRef, tiepoints…
axkirillov
  • 31
  • 7
0
votes
2 answers

Laravel Main Thread Blocked

Objective is to convert each page of pdf to image. Therefore I'm using php Imagick and php-vips for this operation. These libraries does the task just fine but the problem is, as soon as the conversion operation begins, main php thread gets blocked.…
Skywarth
  • 623
  • 2
  • 9
  • 26
0
votes
2 answers

Supported formats for libvips CLI output to Windows stdout

I use libvips to convert HEIC images to a more tractable format and pipe the result to another process without writing to disk. I can do that using PNG as an intermediate format: vips copy input.heic .png However the next process in my chain only…
Alreiber
  • 19
  • 4
0
votes
0 answers

Ghostscript identify and crop area ? Possible?

Server generates A student letter which includes two parts. one about information of student and admission details and other is the identity card. I want to crop out the identity card of student to jpeg file and print it. But the problem is the…
0
votes
2 answers

Images are not showing in the spree based rails app

I am a noob with Spree. I have set up a spree app with sample data, now after uploading the images for a product from Admin, the images are still not showing in the frontend. Also getting lots of TypeError (no implicit conversion to float from…
Piyush Chaudhary
  • 183
  • 2
  • 12
0
votes
1 answer

Add svg path on image using vips

I am using vips PHP library. I want to add svg path on my image. I implemented below code for that but it's not giving me expected output. The problem is how can I set svg path according to the actual image height & width. I tried using resize and…
Vinay Kapoor
  • 47
  • 1
  • 10
0
votes
1 answer

Vips library threads limit

How i can limited number of active threads in vips lib from php code? I want to cut big image for tiles but have kill script from hoster for limit of proc i guess. In web i cant fined good examples for use vips like a php module. I make this code…
FridayJew
  • 11
  • 5
0
votes
0 answers

How can i read image in vips like php imgick

I am using php vips library. I want to readImage from filename in vips. I want to know that $imagick->readImage() in php Imagick and Vips\Image::newFromFile($arg[1]) both are same? If no then is there any method in vips which is similar to…
Amv
  • 59
  • 8
0
votes
1 answer

Getting error if my source and destination files are same in vips

I am using php libvips library. I applied one image operation on one image file, now i want to store same file in my folder. But vips give me error if my source and destination both file are same. Is there any solution for that? I am using…
Vinay Kapoor
  • 47
  • 1
  • 10
0
votes
1 answer

How to do merge image layers like imagick does in libvips

I am using libvips php library i want to merge image layers using libvips. Does any method in libvips for merge the image layers like imagick has as below $img = $img->mergeImageLayers(Imagick::LAYERMETHOD_FLATTEN);
Vinay Kapoor
  • 47
  • 1
  • 10
0
votes
1 answer

Create a shape with libvips ruby

How can I convert a picture with any color and form to its shape? As an example I attached an input image and desired output. I need to make this conversion with ruby and ruby-vips gem. Generally speaking, I need to fill anything that is not alpha…
Molfar
  • 1,411
  • 3
  • 18
  • 49
0
votes
1 answer

How to compile libvips with libjpeg-turbo8 instead of libjpeg

I would like to compile libvips with libjpeg-turbo8 to get a better performance, but I'm having trouble replacing it. When both libjpeg and libjpeg-turbo8 are installed, the regular libjpeg seems to be used during compilation as the performance is…
duocorn
  • 43
  • 1
  • 8
0
votes
1 answer

NetVips: Create composite with 1 band and applying an icc-profile

Im using NetVips to create png composites out of b-w separations. Pseudo code looks like this: List sources = new List() sources.Add(NetVips.Image.Pngload(cFilePath, access:…
Vik
  • 333
  • 5
  • 14
0
votes
1 answer

Saving multi channel (n > 3) images with JPEG compression (python)

I'm working with some biomedical images with more than 3 channels. The images are rather large so I'd prefer to store them as pyramidal TIFF files with JPEG compression. This gives an order of magnitude compression ratio compared to other…
matohak
  • 535
  • 4
  • 19