How to emboss an image in Python

pip install cloudmersive-image-api-client
from __future__ import print_functionimport timeimport cloudmersive_image_api_clientfrom cloudmersive_image_api_client.rest import ApiExceptionfrom pprint import pprint# Configure API key authorization: Apikeyconfiguration = cloudmersive_image_api_client.Configuration()configuration.api_key['Apikey'] = 'YOUR_API_KEY'# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['Apikey'] = 'Bearer'# create an instance of the API classapi_instance = cloudmersive_image_api_client.FilterApi(cloudmersive_image_api_client.ApiClient(configuration))radius = 56 # int | Radius in pixels of the emboss operation; a larger radius will produce a greater effectsigma = 56 # int | Sigma, or variance, of the emboss operationimage_file = '/path/to/file' # file | Image file to perform the operation on.  Common file formats such as PNG, JPEG are supported.try:# Emboss an imageapi_response = api_instance.filter_emboss(radius, sigma, image_file)pprint(api_response)except ApiException as e:print("Exception when calling FilterApi->filter_emboss: %s\n" % e)
Interesting!

--

--

--

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

Bi-Weekly Progress Report: June 8— June 21, 2020

Transaction analysis for the Starbucks mobile app

Ken Wong, Former Software Development Lead at Apple Daily E-Classified, Joins MDT As Engineering…

Comments on Comments

How Low Main Memory Is Handled In Android

How to Handle “Microsoft Access has detected that this database is in an inconsistent state” Error…

How to Handle “Microsoft Access has detected that this database is in an inconsistent state” Error in MS Access

How to Build and Test Your Game in Unity

Announcement: Bounty for Early Bird Users

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

Convert Input Image to GIF Format in Python

How to Send Mail Using Gmail in Python

Build a WhatsApp Chatbot With Python

Build a WhatsApp Chatbot With Python — ultramsg

Python Packages — A beginners guide