metadata

Strip metadata from files in Snow Leopard

扶醉桌前 提交于 2019-12-04 21:21:25
I found the command "mdls" which will show the metadata but I can't see how to delete it. I want to get rid of the comments "kMDItemFinderComment", "kMDItemWhereFroms" from my files. Is there a way to do this? I think you're looking for the xattr command, available in Terminal: xattr -pr com.apple.metadata:kMDItemFinderComment / that will print all the finder comments for all files on your boot volume. To delete, use the -d switch: xattr -dr com.apple.metadata:kMDItemFinderComment / You should test this out on a single file before running it in bulk. usage: xattr [-l] [-r] [-v] [-x] file [file

Error: Cannot obtain Metadata from http …?wsdl

北城余情 提交于 2019-12-04 21:08:25
问题 I have been in the process of converting a http application to https and ssl with a self signed certificate. for some reason i have to go in the browser to localhost:##### to start the service. Once the service is started, i test it with the following call in the visual studio 2012 comman prompt: svcutil.exe https://localhost:10201/?wsdl and it comes back with Error: Cannot obtain Metadata from https://localhost:10201/?wsdl If this is a Windows (R) Communication Foundation service to which

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

狂风中的少年 提交于 2019-12-04 20:43:38
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 *) CFBridgingRelease(CGImageSourceCopyPropertiesAtIndex(imageSource,0,NULL)); //--> metaData dictionary

Easy way to clean metadata from an image?

倖福魔咒の 提交于 2019-12-04 19:39:41
I'm working on a service for a company project that handles image processing, and one of the methods is supposed to clean the metadata from an image passed to it. I think implementation I currently have works, but I'm not sure if it's affecting the quality of images or if there's a better way to handle this task. Could you let me know if you know of a better way to do this? Here's the method in question: public byte[] CleanMetadata(byte[] data) { Image image; if (tryGetImageFromBytes(data, out image)) { Bitmap bitmap = new Bitmap(image); using (var graphics = Graphics.FromImage(bitmap)) {

Creating a jpeg file with metadata

流过昼夜 提交于 2019-12-04 19:07:08
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, but my files don't contain metadata as they are simply created from ImageIO.write() or Sanselan

Get custom order item metadata in Woocommerce 3

本秂侑毒 提交于 2019-12-04 18:30:32
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] => Cinnamon [1] => Sugar [2] => Mint ) That is, this additive should be in one cycle as a price or

how to get informed of new song info while retrieving metadata from shoutcast stream

时光怂恿深爱的人放手 提交于 2019-12-04 17:09:00
Background: I'm streaming radio using double buffering approach for html shoutcast. I get metadata information from stream using http://www.smackfu.com/stuff/programming/shoutcast.html Problem I have three problems. 1- I already use a urlconnection and inputstream for listening radio. I don't want to open a new connection to retrieve metadata. But when I tried to get both from same inputstream, I couldn't listen radio anymore. I guess this is not possible and I have to use two seperate connection? Isn't it bad for performance? 2- When the application started, I retrieve the info of the current

Is there way to get metadata of the image file in iOS? [duplicate]

扶醉桌前 提交于 2019-12-04 17:04:44
Possible Duplicate: Access metadata (exif tags) of image taken by UIImagePickerController - iOS/iPhone How to get image metadata in ios I have some image file in the iOS application local folder. How can i get it's metadata? You can use the ImageIO Framework like explained in QA1654 : To access the image properties you: create a CGImageSourceRef for your image. get a copy of the image properties dictionary by calling CGImageSourceCopyPropertiesAtIndex. access the values in the dictionary by calling CFDictionaryGetValue with the property key that you are interested in. The available keys are

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

杀马特。学长 韩版系。学妹 提交于 2019-12-04 16:17:51
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. What is the best way to store this metadata? I have heard about NTFS extended file attributes , is it

Is it possible to add custom metadata to a Lucene field?

纵饮孤独 提交于 2019-12-04 15:16:54
I've come to the point where I need to store some additional data about where a particular field comes from in my Lucene.Net index. Specifically, I want to attach a guid to certain fields of a document when the field is added to the document, and retrieve it again when I get the document from a search result. Is this possible? Edit: Okay, let me clarify a bit by giving an example. Let's say I have an object that I want to allow the user to tag with custom tags like "personal", "favorite", "some-project". I do this by adding multiple "tag" fields to the document, like so: doc.Add( new Field(