Resize Image

Resize Image

Resize Image

Resize Image

Information

Resize an image to the specified dimensions while preserving its aspect ratio.

Usage

Basic API information


Method: POST

API Base URL: https://cortadoai.fun/v1/api/resize

Parameters: 
- imageUrl: URL of the image to be resized.
- width: Desired width of the resized image.
- height: Desired height of the resized image

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.Ai into your web applications and leverage its powerful features to enhance image optimization, PDF processing, and more.


import axios from 'axios';

const resizeImage = async (imageUrl, width, height) => {
  try {
    const response = await axios.post('/api/resize', { imageUrl, width, height });
    console.log('Resized image URL:', response.data.resizedImageUrl);
  } catch (error) {
    console.error('Error resizing image:', error);
  }
};

resizeImage('URL_OF_YOUR_IMAGE', 300, 200);

11+ Stars

8 Forks

Contributors

Kent Mewhort

Richard Joubert

11+ Stars

8 Forks

Contributors

Kent Mewhort

Richard Joubert

11+ Stars

8 Forks

Contributors

Kent Mewhort

Richard Joubert

11+ Stars

8 Forks

Contributors

Kent Mewhort

Richard Joubert

© 2025 Cortado. All rights reserved.

Developed by Kmewhort. Powered by ESRGAN.

© 2025 Cortado. All rights reserved.

Developed by Kmewhort. Powered by ESRGAN.