media_raw

package module
v0.0.0-...-7ea6a03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 2 Imported by: 1

README

📷 media.raw

Work in Progress Go Report Card GoDoc Release

Overview

media.raw is a specialized library within the SmartMediaFiles ecosystem. Its purpose is to define and categorize all file types and extensions related to RAW image files from digital cameras. This library provides the necessary definitions for the main @/media library to recognize and classify RAW files (e.g., CR2, NEF, DNG).

Features

  • File Type Definitions: Provides a list of FileType constants for each supported RAW format.
  • File Extension Definitions: Provides a list of all corresponding FileExtension constants.
  • Type-to-Extension Mapping: Contains the RawFileTypesExtensions map that links each file type to its extensions, which is then consumed by the central @/media registry.
  • Future-proofing: This library will be expanded to include functions for extracting RAW-specific metadata.

Installation

go get -u github.com/smartmediafiles/media.raw

License

This project is licensed under the MIT License - see the LICENSE.md file for details.


⚠️ Note: This README will be updated regularly as the project progresses. Check back often for the latest information!

Documentation

Index

Constants

View Source
const (
	ImageRaw types.FileType = "raw" // RAW Image
	ImageDNG types.FileType = "dng" // Adobe Digital Negative
)

List of supported media.Raw file types.

Variables

View Source
var RawFileTypesExtensions = maps.MapFileTypeExtensions{
	ImageDNG: {".dng"},
	ImageRaw: {
		".3fr",
		".ari", ".arw",
		".bay",
		".cap", ".crw", ".cr2", ".cr3",
		".data", ".dcs", ".dcr", ".drf",
		".eip", ".erf",
		".fff",
		".gpr",
		".iiq",
		".k25", ".kdc",
		".mdc", ".mef", ".mos", ".mrw",
		".nef", ".nrw",
		".obm", ".orf",
		".pef", ".ptx", ".pxn",
		".r3d", ".raf", ".raw", ".rwl", ".rwz", ".rw2",
		".srf", ".srw", ".sr2",
		".x3f",
	},
}

RawFileTypesExtensions is a map of media.Raw file types to their file extensions.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL