Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
import { logger } from '../../utils/logger'
import {
calculateHistogram as histogram,
calculateHistogramFromBuffer as histogramFromBuffer,
} from '@chronoframe/media/histogram'
export type { HistogramData } from '@chronoframe/media/histogram'
export const calculateHistogram = (image: Parameters<typeof histogram>[0]) =>
histogram(image, logger.image)
export const calculateHistogramFromBuffer = (buffer: Buffer) =>
histogramFromBuffer(buffer, logger.image)