Skip to content

Instantly share code, notes, and snippets.

@greenbigfrog
Created May 30, 2021 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greenbigfrog/2c1867c741bd11d3483b8d7d76ed592d to your computer and use it in GitHub Desktop.
Save greenbigfrog/2c1867c741bd11d3483b8d7d76ed592d to your computer and use it in GitHub Desktop.
lib LibVips
alias Img = LibVips::Image
fun vips_resize(input : Img*, output : Img*)
end
class Vips::Image
def resize
LibVips.vips_resize(self, out something)
something # this gets auto as LibVips::Image, but I want a Vips::Image
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment