How to Get Info from an Image in Go

Need to retrieve details from an image? You can circumvent the manual process by utilizing the following API in Go. This easy-to-use operation will retrieve information such as size, MIME type, compression level, DPI, transparency information, and more, allowing you to simplify any image manipulation or information processing you may need to accomplish.

To call the function, you simply need to input the image file and your API key into the following example code:

package main

If you need to obtain an API key, visit the Cloudmersive website and register for a free account; this will provide access to 800 monthly calls across any of our APIs.

--

--

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.