metadata

How do I append metadata to an image in Matlab?

白昼怎懂夜的黑 提交于 2019-12-22 04:00:42
问题 In writing some image processing routines in Matlab, I found that I don't know how to write metadata in to a newly processed and saved image. To keep it simple, my flow is as follows: image = imread('Base_Pic.jpg'); image_info = imfinfo('Base_Pic.jpg'); %Process image... %Update metadata... imwrite(image,'Updated_Image.jpg','JPEG','Quality',100); I basically want the newly processed image to have all the same metadata attributes as the original image, with a few fields updated of course. How

How do I dynamically find metadata for a Clojure function?

ε祈祈猫儿з 提交于 2019-12-22 01:28:22
问题 Say I have the following code: (defn ^{:graph-title "Function 1"} func-1 [x] (do-something-with x)) (defn get-graph-title [func] (str ((meta func) :graph-title))) I expect this to return "Function 1", but it returns nil. I think this stems from the following difference, which I don't totally comprehend: (meta func-1) => {:ns some-ns-info, :name func-1} (meta #'func-1) => {:ns some-ns-info, :name func-1, :graph-title "Function 1"} Can someone explain this to me? 回答1: The metadata is attached

Meta data dictionary of UIImage does not got value for IPTC key

淺唱寂寞╮ 提交于 2019-12-22 01:07:59
问题 While saving screenshot image I am trying to change meta data of UIImage object for custom title and description of image. Imported headers #import <AssetsLibrary/AssetsLibrary.h> #import <ImageIO/ImageIO.h> #import <ImageIO/CGImageProperties.h> Inside my method NSData* dataOfImageFromGallery = UIImageJPEGRepresentation(imageToSave, 1.0); CGImageSourceRef imageSource = CGImageSourceCreateWithData((CFDataRef)dataOfImageFromGallery, NULL); NSMutableDictionary* metaData = (NSMutableDictionary *)

Creating a jpeg file with metadata

假如想象 提交于 2019-12-22 00:19:41
问题 I have a Java application that creates a BufferedImage and saves it to disk as a JPEG. I'd really like to add a caption to the image. To prevent the image from getting crowded out by text on the image itself, it'd be great if I could write the caption to the JPEG's metadata. I've been searching all over the place for a solution, but haven't found anything satisfactory. Sanselan comes up a lot, but I haven't figured out how to use it properly. I found examples that modify existing metadata,

Get custom order item metadata in Woocommerce 3

泄露秘密 提交于 2019-12-22 00:19:08
问题 I am using Woocommerce latest version 3.4.2. How can I get some order item metadata and assign them a custom value? I get meta data with a common array $item_product_data_array . I need to get a certain value - (Additional modification for the product). And assign custom sku. Example: I have coffe - sku 1001, in array - key [0] Product coffe have additional modification - sugar (meta data) Need found "Sugar" and assign him custom sku - 50005. [label] => Optionally select [value] => Array ( [0

Store metadata outside of file: Any standard approach on modern Windows?

流过昼夜 提交于 2019-12-21 21:54:00
问题 My C# app syncs files from a remote document management system to a filesystem. The document management system has metadata (date of last audit, secrecy, author...) which is associated with each file but not stored WITHIN each file. The files can be anything (bmp, xwd, pdf, unknown binary) I want to make these metadata visible on the local Windows filesystem. But I can't store metadata WITHIN each file. For instance, changing the secrecy of a file must NOT modify the checksum of the file.

Get metadata of local mp3 file using html5 filesystem api

我的梦境 提交于 2019-12-21 20:52:32
问题 I was trying to get the title and artist (and other metadata eventually) of each mp3 file in a directory. Currently the code I have appends the div "thelist" with the file name of the mp3 file. How could I go about getting the title and artist properties/tags of the file instead of the entire file name? Here is my code: <!DOCTYPE html> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Get Directory</title> <script type="text/javascript" src="jquery.min

How to add metadata to a tibble

余生颓废 提交于 2019-12-21 19:24:40
问题 How does one add metadata to a tibble? I would like a sentence describing each of my variable names such that I could print out the tibble with the associated metadata and if I handed it to someone who hadn't seen the data before, they could make some sense of it. as_tibble(iris) # A tibble: 150 × 5 Sepal.Length Sepal.Width Petal.Length Petal.Width Species <dbl> <dbl> <dbl> <dbl> <fctr> 1 5.1 3.5 1.4 0.2 setosa 2 4.9 3.0 1.4 0.2 setosa 3 4.7 3.2 1.3 0.2 setosa 4 4.6 3.1 1.5 0.2 setosa 5 5.0 3

PHP: Read TrueType/OpenType metadata of the font file

时间秒杀一切 提交于 2019-12-21 17:24:01
问题 How to read the fonts details? For example, fonts contain information like copyright, family name, designer, version, and more in their metadata. I would like also the script to be able to count the amount of glyphs in the file, as well as return what languages the font supports. For example, a typical font could contain western, swedish and romain language support, and have hundreds of glyphs. It should support truetype and opentype font files. Thanks in advance for any help on achieving

How do I retrieve the properties of a photo taken on a digital camera using .NET?

会有一股神秘感。 提交于 2019-12-21 16:54:39
问题 Preferably in VB.Net, but C# is fine, how can I access the extra properties added to a file by my digital camera, like Date Picture Taken , Shutter Speed or Camera Model ? 回答1: The following article should be helpful. 回答2: I maintain a library that offers comprehensive support for extracting image metadata from a variety of file formats. https://github.com/drewnoakes/metadata-extractor-dotnet 回答3: When I built something similar I used this article quite a bit. But basically you're looking for