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 0,2100,0,2310 1500,2100,300,2100' -crop 300x2310+0+0 回答1: There isn't a built-in thing for perspective distort, but you can make one using mapim : http://jcupitt.github.io/libvips/API/current/libvips-resample.html#vips-mapim #!/usr/bin/ruby require 'vips'