@teamnovu/vue-cloudinary-image-statamic

Statamic Adapter for @teamnovu/vue-cloudinary-image and @teamnovu/nuxt-cloudinary-image
4,843
Install
npm install @teamnovu/vue-cloudinary-image-statamic
Latest Version:1.1.0
Vue:3
Older releases:2
License:MIT
Last Updated:Aug 5, 2026
Links: GitHub  ·  npm
Maintainer: strebl

Vue-Cloudinary-Image-Statamic

Statamic adapter for @teamnovu/nuxt-cloudinary-image and @teamnovu/vue-cloudinary-image.

Features

✅ Handles Statamic Image Assets
✅ Automatically applies alt attribute for the current locale * ✅ Automatically applies Statamic focal point

  • For the i18n support, alt_{langcode} fields are assumed on asset blueprint and data. It will fallback to alt if not available.

Prerequisites

Install and configure either @teamnovu/nuxt-cloudinary-image or @teamnovu/vue-cloudinary-image first. Visit these projects for instructions.

Make sure the asset includes width, height, focus and the different alt_{langcode} data.

Example Statamic CustomAsset:

<?php

namespace App\Entries;

use Statamic\Assets\Asset;

class CustomAsset extends Asset
{
    protected function shallowAugmentedArrayKeys()
    {
        return ['id', 'url', 'permalink', 'api_url', 'extension', 'is_image', 'focus', 'width', 'height', 'alt_de', 'alt_fr'];
    }
}

Example Statamic GraphQL fragment:

  fragment AssetImage on AssetInterface {
    id
    url
    permalink
    extension
    is_image
    focus_css
    width
    height
    ... on Asset_Assets {
      alt_de
      alt_fr
    }
  }

Installation

yarn add @teamnovu/vue-cloudinary-image-statamic

or

npm i @teamnovu/vue-cloudinary-image-statamic

For vue2 use a version < v1.0.0

Setup

Global

import AppImage from '@teamnovu/vue-cloudinary-image-statamic'

Vue.use(AppImage);

Local

<script>
import AppImage from '@teamnovu/vue-cloudinary-image-statamic'

export default {
  components: {
    AppImage,
  }
}
<script>

Usage

<!-- just provide the statamic asset object as parameter -->
<AppImage :src="data.image" />

The component uses the data

Example

Minimal example

<!-- just provide the statamic asset object as parameter -->
<AppImage :src="data.image" />

Simple Avatar Crop

<AppImage
  :src="data.image"
  :aspect-ratio="1"
  crop="thumb"
  focus="face"
/>

Overwrite alt attribute

<AppImage
  :src="data.image"
  alt="this is used instead of the asset alt attribute"
/>

Related Packages

@teamnovu/kit-composables

A collection of composables

5,342 2
@teamnovu/kit-components

A collection of vue(3) components for jkweb

3,752 2
@teamnovu/nuxt-image-module

Responsive image module for Nuxt 4 with provider-agnostic focal-point handling a...

1,124
@teamnovu/nuxt-statamic-gtm

Geo-aware Google Consent Mode v2 and Google Tag Manager for headless Statamic si...

273

Version History

Version Released Vue License
1.1.0 ^3.2.45 MIT
1.0.6 ^3.2.45 MIT
1.0.3 ^3.2.45 MIT
1.0.2 ^2.6.11 MIT
1.0.0 ^2.6.11 MIT