Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Vulpix
an image processing library
Vulpix is a tiny wrapper over image magick using magick_rust wrapper. It allows you process images quickly for regular tasks, like cropping, sharpening, brightening, changing formats easily. It also supports cropping on face. A usage of this library can be found here, where vulpix is used to securely serve images from aws s3 and process them.
installation
you need to have image magick v7 installed, check imagemagick installation documentation for macos, you simply can.
install vulpix in your rust project
you would also need async trait library
usage
initialise vulpix, you only need to do it once
init;
implement ImageAceess async trait for your use case, this requires you to impletemnt 3 methods, for accesisng image, for saving an image (processed images as cache) and detecting face in an image.
you can see a practical implementation of this trait using aws s3 and rekognation apis here
use ;
async
async
}
finally we can process image by passing image params
use ;
let image_params =
ImgParams
let image_access = MyImageRepo ;
let processed_image_bytes = handle_img
.await?