Skip to main content

image-info


Use the image-info endpoint to get metadata from an image.


The image-info endpoint takes an HTTP POST form submission, where an image is sent as binary data.

info

Refer to the following Users Guide page if you need more information illustrating how to call the endpoint directly as a REST call.

The complete example is available via one of the following GitHub projects depending upon the language you wish to use.

LanguageGitHub Users Guide ProjectClassLocation/Package/Namespace
C#https://github.com/dynamicpdf-api/dotnet-client-examplesImageInfoExample.csnamespace Users_Guide_C_Sharp
Javahttps://github.com/dynamicpdf-api/java-client-examplesImageInfoExample.javacom.dynamicpdf.api.examples
Node.jshttps://github.com/dynamicpdf-api/nodejs-client-examplesImageInfoExample.jsnode-js-users-guide
PHPhttps://github.com/dynamicpdf-api/php-client-examplesImageInfoExample.phpphp-client-examples

For all four languages the syntax and logic is similar.

  • Create a new ImageResource instance that holds the path to the image.
  • Create a new ImageInfo instance that holds the resource and then calls the endpoint.
  • The endpoint then returns the image metadata as a JSON document.