media_vector

package module
v0.0.0-...-f656fe7 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.vector

Work in Progress Go Report Card GoDoc Release

Overview

media.vector is a specialized library within the SmartMediaFiles ecosystem. Its purpose is to define and categorize all file types and extensions related to vector graphic files. This library provides the necessary definitions for the main @/media library to recognize and classify vector files like SVG, AI, etc.

Features

  • File Type Definitions: Provides a list of FileType constants for each supported vector format.
  • File Extension Definitions: Provides a list of all corresponding FileExtension constants.
  • Type-to-Extension Mapping: Contains the VectorFileTypesExtensions 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 parsing vector graphics and extracting relevant metadata.

Installation

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

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 (
	VectorSvg types.FileType = "svg" // Scalable Vector Graphics
	VectorAi  types.FileType = "ai"  // Adobe Illustrator
	VectorPs  types.FileType = "ps"  // Adobe PostScript
	VectorEps types.FileType = "eps" // Encapsulated PostScript
)

List of supported media.Vector file types.

Variables

View Source
var VectorFileTypesExtensions = maps.MapFileTypeExtensions{
	VectorSvg: {".svg"},
	VectorAi:  {".ai"},
	VectorPs:  {".ps", ".ps2", ".ps3"},
	VectorEps: {".eps", ".eps2", ".eps3", ".epi", ".ept", ".epsf", ".epsi"},
}

VectorFileTypesExtensions is a map of supported media.Vector file types and their 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