Programmable Media

Vue.js sample projects

Last updated: Mar-21-2024

We've created some sample projects to get you started with integrating Cloudinary into your Vue.js application.

Photo Album

Adhering to Vue.js best practices, the Photo Album app demonstrates uploading and displaying images. See how to upload images to your product environment using the Upload widget and the REST API, automatically tagging them as they're uploaded. Then see how each of the tagged images is transformed on the fly and displayed on the site.

This is the Photo Album app in action:


Here's an excerpt from the code showing the AdvancedImage component being used to deliver a square thumbnail image, automatically focused on the most interesting part of the image, and automatically optimized for format and quality. The placeholder plugin is used to load a low quality image initially, until the full image is downloaded, preserving the layout.

CldImage.vue


Image and video transformations

See all the image and video transformations that are shown in the Vue.js SDK guide.

This is the image and video transformations app in action:


Here's an excerpt from the code showing an image being cropped to 200 x 300 pixels, automatically focusing on the most interesting part of the image.

AutoGravity.vue


Vue.js plugins

The Cloudinary Vue.js library provides plugins to render the media on your site in the optimal way and improve your user's experience. This app demonstrates how to implement:

  • Image accessibility to make your images more accessible to your users with visual disabilities.
  • Responsive images to resize your images automatically based on the viewport size.
  • Lazy loading to delay loading images if they are not yet visible on the screen.
  • Image placeholders to display a lightweight version of an image while the target image is downloading.

This is the Vue.js plugins app in action:


Here's an excerpt from the code showing images being rendered with the lazy load and placeholder plugins.

LazyLoadPlaceholder.vue

✔️ Feedback sent!

Rate this page: