@keenpix/astro
v0.3.1
Published
Keenpix external image service and attributes for Astro.
Downloads
282
Maintainers
Readme
@keenpix/astro
Stable Astro external image service and a lightweight attribute helper. The service integrates Keenpix with Astro's built-in <Image />, <Picture />, and getImage() APIs.
pnpm add @keenpix/astro// astro.config.ts
import { defineConfig } from 'astro/config'
export default defineConfig({
image: {
service: {
entrypoint: '@keenpix/astro/service',
config: {
baseUrl: 'https://images.example.com',
projectId: 'website',
},
},
},
})---
import { Image } from 'astro:assets'
---
<Image src="photos/hero.jpg" alt="Hero" width={1200} height={675} quality={80} />Keenpix is an external service, so source dimensions must be supplied unless your application resolves them separately. Numeric quality is forwarded; Astro's named quality presets remain Astro-specific.
