본문 바로가기

exif read library link: http://www.exiv2.org/index.html Exiv2 Overview Exiv2 is a C++ library and a command line utility to manage image metadata. It provides fast and easy read and write access to the Exif, IPTC and XMP metadata of images in various formats. Exiv2 is available as free software and with a commercial license, and is used in many projects. The Exiv2 library provides fast read and write access to th.. 더보기
.net 파일 감시 File System Watcher class control에서 CrossThread에 의한 Side effect를 줄이고자 할 경우 다음과 같이 사용할 수 있다. CheckForIllegalCrossThreadCalls = false; FileSystemWatcher w = new FileSystemWatcher(); //w.Path = path string w.NotifyFilter = NotifyFilters.LastAccess| NotifyFilters.LastWrite |NotifyFilters.FileName|NotifyFilters.DirectoryName; w.Filter = "*.jpeg"; w.Changed += new FileSystemEventHandler(OnChanged); w... 더보기
image metadata WPF wpf에서는 jpeg 뿐 만이 아니라 여러 파일에서 메타데이터를 기록하도록 도움을 준다. JpegBitmapEncoder클래스를 사용하여 jpeg 인코딩을 할 수 있고, Metadata Property를 사용하여 메타데이터 기록을 가능하게 한다. Metadata는 BitmapMetadata르는 클래스형식으로 정의되어 있다. 다음 예제에서는 IFD 및 Exif 스키마를 사용하여 메타데이터를 TIFF(Tagged Image File Format) 이미지에 쓰는 방법을 보여 줍니다. BitmapMetadata tiffMetadata = new BitmapMetadata("tiff"); tiffMetadata.SetQuery("/ifd/{ushort=1000}", 9999); tiffMetadata.Se.. 더보기