Skip to content

piotrrojek/iptc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iptc

IPTC reader - Go (golang) wrapper for libiptcdata

Dependencies

Requires libiptcdata.

On OS X using Homebrew: brew install libiptcdata

Usage

package main

import (
	"log"
	"os"

	"github.com/melraidin/iptc"
)

func main() {
	data, err := iptc.Open(os.Args[1])

	if err != nil {
		log.Fatalf("Error: %s", err.Error())
	}

	log.Printf("%v\n", data)
}

Output:

$ go run read.go resources/caption.jpg
2014/08/14 15:01:00 map[1:map[90:[1 b   2 5   4 7]] 2:map[0:2 116:Copyright 2014. All rights reserved. 120:Processed with VSCOcam with f2 preset]]

About

IPTC reader - Go (golang) wrapper for libiptcdata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 88.4%
  • C 11.6%