Complete residential site build with Docker Compose & Gitea Actions deployment

This commit is contained in:
CalebLewallen
2026-05-13 17:31:20 -04:00
parent f9c4e13a50
commit 3c22823f72
19354 changed files with 2097331 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
import type { AvifOptions, JpegOptions, PngOptions, ResizeOptions, SharpOptions, WebpOptions } from 'sharp';
import { type BaseServiceTransform, type LocalImageService } from './service.js';
export interface SharpImageServiceConfig {
/**
* The `limitInputPixels` option passed to Sharp. See https://sharp.pixelplumbing.com/api-constructor for more information
*/
limitInputPixels?: SharpOptions['limitInputPixels'];
/**
* The `kernel` option is passed to resize calls. See https://sharp.pixelplumbing.com/api-resize/ for more information
*/
kernel?: ResizeOptions['kernel'];
/**
* The default encoder options passed to `sharp().jpeg()`.
*/
jpeg?: JpegOptions;
/**
* The default encoder options passed to `sharp().png()`.
*/
png?: PngOptions;
/**
* The default encoder options passed to `sharp().webp()`.
*/
webp?: WebpOptions;
/**
* The default encoder options passed to `sharp().avif()`.
*/
avif?: AvifOptions;
}
export declare function resolveSharpEncoderOptions(transform: Pick<BaseServiceTransform, 'format' | 'quality'>, inputFormat: string | undefined, serviceConfig?: SharpImageServiceConfig): JpegOptions | PngOptions | WebpOptions | AvifOptions | {
quality?: number;
} | undefined;
declare const sharpService: LocalImageService<SharpImageServiceConfig>;
export default sharpService;