photoshopinfo

package module
v0.0.0-...-121dd75 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 6 Imported by: 11 modules, 11 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Build Status Coverage Status Go Report Card GoDoc

Overview

This is a minimal Photoshop format implementation to allow IPTC data to be extracted from a JPEG image. This project primarily services go-jpeg-image-structure.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModuleRootPath

func GetModuleRootPath() string

GetModuleRootPath returns the root-path of the module.

func GetTestAssetsPath

func GetTestAssetsPath() string

GetTestAssetsPath returns the path of the test-assets.

func GetTestDataFilepath

func GetTestDataFilepath() string

GetTestDataFilepath returns the file-path of the common test-data.

func ReadPhotoshop30Info

func ReadPhotoshop30Info(r io.Reader) (pirIndex map[uint16]Photoshop30InfoRecord, err error)

ReadPhotoshop30Info parses a sequence of photoship-info records from the stream.

Types

type Photoshop30InfoRecord

type Photoshop30InfoRecord struct {
	// RecordType is the record-type.
	RecordType string

	// ImageResourceId is the image resource-ID.
	ImageResourceId uint16

	// Name is the name of the record. It is optional and will be an empty-
	// string if not present.
	Name string

	// Data is the raw record data.
	Data []byte
}

Photoshop30InfoRecord is the data for one parsed Photoshop-info record.

func ReadPhotoshop30InfoRecord

func ReadPhotoshop30InfoRecord(r io.Reader) (pir Photoshop30InfoRecord, err error)

ReadPhotoshop30InfoRecord parses a single photoshop-info record.

func (Photoshop30InfoRecord) String

func (pir Photoshop30InfoRecord) String() string

String returns a descriptive string.

Jump to

Keyboard shortcuts

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