Image manipulation library for V programming language
GNU Lesser General Public License v3.0 or later (see LICENSE)
// Please note that module will not be added to VPM until version 1.0.0 is released
import jeffangelion.vimage
image, _ := vimage.read_from_file('path/to/image_file') or {
println('failed to read from file')
}
// You can also read image format from []u8{} (i.e. downloaded from website)
cats, _ := vimage.read_from_array(cool_image_from_network) or {
println('image is too cool for vimage')
}
-
farbfeld support
-
basic PNG support
-
basic GIM support
-
get/set pixels by coordinates
-
invert colors
-
rotate/flip image
-
more image formats
-
complete support of included formats (i.e. PNG Adam7 interlace)
Image format | VPM command | Module repo |
---|---|---|
PNG | v install Henrixounez.vpng |
https://github.com/Henrixounez/vpng |
Other formats | ¯\_(ツ)_/¯ |
Feel free to add via PR/issues |