Nuxt.js

Installation

You can install Cortado.Ai via npm:


npm install cortado-ai

Usage

Nuxt.js applications can greatly benefit from Cortado.Ai's image optimization and resizing capabilities. By using the optimizeImage and resizeImage functions, you can efficiently manage image sizes and improve load times. Here's how to use both methods in your Nuxt.js project:


// Import optimizeImage and resizeImage functions from Cortado.Ai
import { optimizeImage, resizeImage } from 'cortado-ai';

export default {
  methods: {
    async loadImages() {
      // Call optimizeImage with the path to your image
      const optimizedImage = await optimizeImage('image.jpg');
      // Use the optimized image source in your component
      this.optimizedImageSrc = optimizedImage;
      
      // Call resizeImage to resize the image to a specific width and height
      const resizedImage = await resizeImage('image.jpg', { width: 300, height: 200 });
      // Use the resized image source in your component
      this.resizedImageSrc = resizedImage;
    },
  },
};

Cortado.Ai seamlessly integrates into your Nuxt.js workflow, providing both image optimization and resizing capabilities to enhance your application's performance.

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.