有什么办法可以给一个JPG图片加个tag或者comment之类的呢?[已解决]

sh/bash/dash/ksh/zsh等Shell脚本
回复
sanz
帖子: 1010
注册时间: 2006-09-29 5:11

有什么办法可以给一个JPG图片加个tag或者comment之类的呢?[已解决]

#1

帖子 sanz » 2009-04-15 18:05

我需要给JPG图片加注,随便什么类型的指,boolean都可以,用来区分一些图片。是隐藏的值,不是在图片上写字。
试着用exif的--set-value=,但是总是报错,而且还自动生成新文件。放弃了。
上次由 sanz 在 2009-04-16 16:37,总共编辑 1 次。
Dell D620 -> Asus U44SG
Dapper->Edgy->Feisty->Gutsy->Hardy->Karmic->Lucid -> Oneric -> Precise->Trusty
Python+JS
头像
hellojinjie
帖子: 1150
注册时间: 2007-09-14 21:03
来自: 浙江

Re: 有什么办法可以给一个JPG图片加个tag或者comment之类的呢?

#2

帖子 hellojinjie » 2009-04-15 21:11

自己弄个数据库来保存这个些信息不就行了
Say hello to everyday!
头像
yjcong
帖子: 2470
注册时间: 2006-02-28 3:11

Re: 有什么办法可以给一个JPG图片加个tag或者comment之类的呢?

#3

帖子 yjcong » 2009-04-16 6:48

下面是我google出来的

# to dump exif data
$ exiv2 -p s filename.jpg

# adjust date/time +1 day (in hours)
$ exiv2 ad -a 24 filename.jpg

## or use jhead ##

# to dump exif data
$ jhead filename.jpg

# adjust date/time
$ jhead -ta+24 P1000616.JPG
一梦三年,
松风依旧,
萝月何曾老.


灵幽听微, 谁观玉颜?
灼灼春华, 绿叶含丹.
sanz
帖子: 1010
注册时间: 2006-09-29 5:11

Re: 有什么办法可以给一个JPG图片加个tag或者comment之类的呢?

#4

帖子 sanz » 2009-04-16 16:36

谢了。。。。
Dell D620 -> Asus U44SG
Dapper->Edgy->Feisty->Gutsy->Hardy->Karmic->Lucid -> Oneric -> Precise->Trusty
Python+JS
回复