Get Image Metadata

Get Image Metadata

Get Image Metadata

Get Image Metadata

Information

Retrieve metadata for an image:

  • dimensions;

  • file size.

Usage

Basic API information


Method: GET

API Base URL: https://cortadojs.com/v1/api/metadata

Parameters: 
- imageUrl: URL of the image to retrieve metadata for

Example

Each code snippet provides a clear and concise illustration of making API requests, with comments explaining the purpose of each request and any required parameters. By following these examples, you can seamlessly integrate Cortado.js into your web applications and leverage its powerful features to enhance image optimization, PDF processing, and more.


import axios from 'axios';

const getImageMetadata = async (imageUrl) => {
  try {
    const response = await axios.get('/api/metadata', { params: { imageUrl } });
    console.log('Image metadata:', response.data);
  } catch (error) {
    console.error('Error retrieving image metadata:', error);
  }
};

getImageMetadata('URL_OF_YOUR_IMAGE');

© 2024 Cortado. All rights reserved.

Designed by Ditych. Powered by Framer.

© 2024 Cortado. All rights reserved.

Designed by Ditych. Powered by Framer.