@shironeko1052/autoimg-core
v0.1.1
Published
Core library for resizing and shifting images to keep content focused
Maintainers
Readme
AutoImg Core
Description
Core library for AutoImg - provides the fundamental algorithms and models for content-aware image resizing and focusing. This package contains the core logic for calculating optimal image positioning based on defined focus areas, enabling images to maintain visual focus when displayed in containers of varying dimensions.
Installation
npm install @shironeko1052/autoimg-coreUsage
import { AutoImgModel } from '@shironeko1052/autoimg-core';
import { autoImgAPI } from '@shironeko1052/autoimg-core/api';
// Use the API to load and render images
autoImgAPI.loadAll('[data-auto-img]');For more details and examples, see the main repository.
