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

CremePieSwap AMA Transcript

Getting in the habit of writing semantic HTML

A meme where one bird wants to use semantic HTML elements but a crow is just squawking “div” over and over again.

@MIT: CLOUD & DEVOPS — PART 4

Reactive programming using RxJava in spring-boot: Part 1

Project:- Data Engineering with Azure Data Factory - Weekend project on Covid-19

Permission denied (public key). fatal: Could not read from remote repository

How to setup Post Processing in Unity

Get Spotify Lyrics Right On Your Terminal !

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

The Internet Protocol: Explained

KWOC | Kharagpur Winter Of Code Blog Report

Public IP vs Private IP address

Building Real-time Apps using WebSockets