metadata

PNGj, metadata doesn't get saved

徘徊边缘 提交于 2019-12-22 12:26:30
问题 I'm trying to save metadata, but it doesn't get saved, an i don't get any errors either. The image get saved correctly. I'm using the PNGJ library. Reading metadata, (and the image) works correctly, and i'm checking with imagemagick. The code is: ImageInfo imi = new ImageInfo(size.x, size.y, 8, true); PngWriter pngW = new PngWriter(outputStream, imi); pngW.setCompLevel(compressionLevel); pngW.getMetadata().setText(PngChunkTextVar.KEY_Title, "My image"); ImageLineInt iline = new ImageLineInt

Trying to Pull GPS Metadata from UIImagePickerController but NSLog Shows Null

不问归期 提交于 2019-12-22 12:22:42
问题 Using UIImagePickerController I am attempting to gather GPS info from the metadata of the image. Here is my code sample: NSDictionary *imageMetadata = [info objectForKey: UIImagePickerControllerMediaMetadata]; NSLog(@"Working META: %@",imageMetadata); CGDataProviderRef dataProvider = CGImageGetDataProvider(originalImage.CGImage); CFDataRef data = CGDataProviderCopyData(dataProvider); CGImageSourceRef imageSource = CGImageSourceCreateWithData(data, nil); NSDictionary *metaDict = (__bridge

Getting s3 object metadata then creating stream

删除回忆录丶 提交于 2019-12-22 11:35:30
问题 I'm downloading an object from s3 and creating a read stream object from it to process a video: s3.getObject(params).createReadStream() However, I need to get the metadata from it which is possible when i just get the object by accessing its 'metadata' property: s3.getObject() How would I either: Get the object via s3.getObject() , grab the metadata from its metadata property, and then turn it into a read stream? var stream = fs.createReadStream(response); isn't working - input must be a

How to generate valid metadata from EF DBContext via EdmBuilder for OData v3/BreezeJS

我与影子孤独终老i 提交于 2019-12-22 10:37:13
问题 I'm trying to write an OData v3 Backend for use in an .NET4 application. I want to use BreezeJS on the client side. For the server/OData implementation I use ODataLib v1-3. In order to generate metadata for an existing model I followed the guidelines here: http://www.getbreezenow.com/documentation/ef-design-tool (more specifically the part "The metadata-only DbContext") which describes how to use the Entity Framework as a design time tool to generate a IEdmModel and Metadata. I use the

Having an image stripped of metadata upon upload in PHP

橙三吉。 提交于 2019-12-22 09:47:30
问题 A certain site I know recently upgraded their bandwith from 2,5 TB monthly to 3,5 TB. Reason is they went over the 2,5 limit recently. They're complaining they don't know how to get down the bandwidth usage. One thing I haven't seen them consider is the fact that JPEG and other images that are displayed on the site(and it is an image-heavy site) can contain metadata. Where the picture was taken and such. Fact of the matter is, this information is of no importance whatsoever on that site. It's

Get file owner metadata information with java

╄→尐↘猪︶ㄣ 提交于 2019-12-22 09:24:31
问题 I am trying to retrieve the owner of a file, using this code: Path file = Paths.get( fileToExtract.getAbsolutePath() ); PosixFileAttributes attr = Files.readAttributes(file, PosixFileAttributes.class); //line that throws exception System.out.println(attr.owner.getName()); taken from oracle's page (http://docs.oracle.com/javase/tutorial/essential/io/fileAttr.html) but i always get a UnsupportedOperationException at the line i indicate above. java.lang.UnsupportedOperationException at sun.nio

How do I differentiate between Procedures and Functions in Oracle's Metadata?

天大地大妈咪最大 提交于 2019-12-22 08:51:38
问题 I want to list all the Stored Procedures which use overloading in a given schema. All the procedures are within packages. I can use the SQL below to nearly get there (anything with proc_count > 1). select object_name, procedure_name, count(procedure_name) as proc_count from all_procedures where owner = 'SCHEMA_NAME' group by object_name, procedure_name order by proc_count desc However there seems to be no way to differentiate between a function named 'ask_version' and a procedure named 'ask

How do I edit JPG File Title, Subject, Comments, and Tags/Keywords?

点点圈 提交于 2019-12-22 08:47:49
问题 How do I edit JPG File Title, Subject, Comments, and Tags/Keyowrds?* I have already tried asking this question here: The Exif information provided was helpful, but in the end did not actually solve the real riddle I was working on. So I'll take another angle at describing the desired result: I want my VB.NET app to allow me to edit the following details of a Jfile (see image): Title, Subject, Comments, and Tags/Keyowrds I had a handy image to include but not enough points to post it. Weak.

How do I create named metadata via the llvm-c api?

╄→гoц情女王★ 提交于 2019-12-22 07:58:40
问题 I want to add debug metadata to my generated llvm IR, which is created via the C API. However, I can't figure out how to create named metadata nodes (such as !llvm.dbg.cu), or even how to create metadata nodes with unique numbers (ie. !0, !1, etc.). Adding metadata operands to instructions looks pretty simple, but I cannot figure out how to create standalone metadata nodes. 回答1: As at LLVM 3.0, there is no function exposed in the C API for creating or modifying named metadata. A new function

Which image formats contain meta data, and how can I clear it in PHP?

时光总嘲笑我的痴心妄想 提交于 2019-12-22 05:14:01
问题 Privacy concerns have lead me to believe I should scrub user uploaded images for any meta data. I know that JPEG have EXIF, but I'm not sure about PNG or GIF (both are able to be uploaded to my site from the public). Do these formats have meta data too, and how is it stored? What is the best way to remove it? I'm using PHP 5.29. Thanks 回答1: The easiest way is to copy them to a new image with GD - you keep all the image info, but get rid of the metadata. 回答2: You may try http://www.php.net