Image Compression with Golang

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • OPS - Build and Run Open Source Unikernels
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • GitHub repo bimg

    Go package for fast high-level image processing powered by libvips C library

    For image processing, I will use the bimg library because in my opinion it has a very intuitive API and is easy to use, in addition to being very fast.

  • GitHub repo uuid

    Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services. (by google)

    Another library I'm going to use is google/uuid, because I'm going to want to rename the image that we uploaded, in order to ensure that its name is unique.

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • GitHub repo postman-app-support

    Postman helps you be more efficient while working with APIs. Using Postman, you can construct complex HTTP requests quickly, organize them in collections and share them with your co-workers.

    Now when we test our API using a tool similar to Postman you should get a result similar to this:

  • GitHub repo libvips

    A fast image processing library with low memory needs.

    However, this article has only one prerequisite, which is the installation of libvips, otherwise it will not be possible to process the images. If you happen to have Homebrew installed on your computer, the process is simpler.

  • GitHub repo Fiber

    ⚡️ Express inspired web framework written in Go

    The framework I chose to create today's Api was Fiber, if you're used to working with Express, Koa or Fastify you'll feel at home.

  • GitHub repo HomeBrew

    🍺 The missing package manager for macOS (or Linux)

    However, this article has only one prerequisite, which is the installation of libvips, otherwise it will not be possible to process the images. If you happen to have Homebrew installed on your computer, the process is simpler.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts