Get Details from an Image in Ruby

gem 'cloudmersive-convert-api-client', '~> 2.1.6'
# load the gem
require 'cloudmersive-convert-api-client'
# setup authorization
CloudmersiveConvertApiClient.configure do |config|
# Configure API key authorization: Apikey
config.api_key['Apikey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Apikey'] = 'Bearer'
end
api_instance = CloudmersiveConvertApiClient::ConvertImageApi.newinput_file = File.new('/path/to/inputfile') # File | Input file to perform the operation on.begin
#Get information about an image
result = api_instance.convert_image_get_image_info(input_file)
p result
rescue CloudmersiveConvertApiClient::ApiError => e
puts "Exception when calling ConvertImageApi->convert_image_get_image_info: #{e}"
end

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Working With PHP’s Date and Time Classes

Consolidating Database Technologies

TL;DR InfluxDB Tech Tips — the Easiest Way to Use and Create InfluxDB Templates

How to talk to autonomous driving fanboys in order to make them angry?

Using Nginx Ingress Controller in Kubernetes bare-metal setup

nginx ingress controller

Welcome to the first factory-project for the production of NFTs and tools for implementation in P2E…

Building A Sinatra App

How to extract information from a form photo in Java using OCR

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

Cloudmersive

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

More from Medium

Vue— What is it? — Ch 01

Express vs Koa

Steve Madden clone using pure HTML, ExpressJS & MongoDB

Chokidar