metadata

Fastest way to read PNG metadata in PHP

情到浓时终转凉″ 提交于 2019-12-06 07:47:59
I would like to extract two fields from a PNG file. Namely, the geometry field and one of the fields from the metadata. What is the fastest way I could go about doing this? I have benchmarked my script that currently performs this and by far the slowest action is executing the actual ImageMagick "identify" program on the PNG file. (.4 seconds vs .0001 seconds to parse the outputted array for the geometry and 8.39E-5 seconds to parse key phrases from the metadata) Thanks in advance for any help, Jonathan I'm not familiar with any ready-made libraries or classes to do it in PHP without a

Embedding Metadata to H.264 encoded file

可紊 提交于 2019-12-06 07:28:14
问题 I am currently developing an application which produces certain metadata with respect to preview frames coming from the camera. I can see this metadata being produced properly and I have no problems here. However, I have to embed this metadata to these frames of interest (frames are processed by a native algorithm to produce this metadata). I am using ffmpeg with x264 to encode the frames into H.264. I have checked x264.h and some documentations but failed to find what I seek. My question is;

SQL select for all records that may holds specific value

强颜欢笑 提交于 2019-12-06 07:25:57
How to select all records,that may contain specific value that is known, without referring to specific column in SQL expression? For instance, i know,that some unknown column holds value 'xxx' and there are many columns and records in table. Thank you. So, you want to do a Google-like free text search over your database. This can be done but the performance will be Teh Suck! Google is fast because it has indexes on its indexes, duplicate data stores and generally optimizes everything for precisely this kind of search. Anyway, here is a proof of concept using dynamic SQL and the Oracle data

Must I include all column attributes in an SQL statement when I want to alter only one?

流过昼夜 提交于 2019-12-06 07:13:51
I have a MySQL database that, I would like to annotate by adding comments to all of the columns, From what I read on the MySQL documentation , it is necessary to include the data type and all attributes when changing any single one of these. For example, I must type ALTER TABLE `dbname`.`tablename` CHANGE COLUMN `columnname` `columnname` INT(11) NULL DEFAULT NULL COMMENT 'this is my comment`; It would be much faster for me to avoid having to restate the column info for each change, for example, by only having to submit a command such as: ALTER TABLE `dbname`.`tablename` CHANGE COLUMN

ODATA WebService, get $metadata C#

雨燕双飞 提交于 2019-12-06 06:38:22
I have a WebService that expose this $metadata : <?xml version="1.0" encoding="UTF-8" standalone="true"?> <edmx:Edmx xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" Version="1.0"> > <edmx:DataServices m:DataServiceVersion="1.0" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <Schema xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2007/05/edm" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" Namespace="NAV"> <EntityType Name="PAsset"> <Key> <PropertyRef Name="No"/> </Key>

How do you configure WCF to support FaultContracts where both the host and client are in the same process using a net.pipe?

天涯浪子 提交于 2019-12-06 06:33:52
问题 I'm trying to create an in-process unit test for my service to client interactions using net.pipe binding. Like a good WCF service it uses FaultContractAttribute on service operations to expose possible faults (wrapped exceptions) to metadata. I would like to have the client and service endpoints configured thru XML (App.config). However, whenever a fault is thrown, it's just a CommunicationException "pipe has closed", and not the typed Fault I was expecting. System.ServiceModel

How to update exif of ALAsset without changing the image?

随声附和 提交于 2019-12-06 06:13:24
问题 I use setImageData:metadata:completionBlock: of ALAsset to update the exif(metadata) of an asset. I just want to update the metadata, but this method require an imageData as the first parameter. I use the code below to generate imageData , but it modified my image(I checked the file size and file hash). ALAssetRepresentation *dr = asset.defaultRepresentation; UIImage *image = [UIImage imageWithCGImage:dr.fullResolutionImage scale:dr.scale orientation:dr.orientation]; NSData *data =

iOS 8 UIImage Metadata

蓝咒 提交于 2019-12-06 06:09:20
This is my first question I've a a "little" problem: when i read UIImage metadata on iOS 7 I use this code and it works great #pragma mark - Image Picker Controller delegate methods - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage* image = [info objectForKey:UIImagePickerControllerOriginalImage]; [self metaDataFromAssetLibrary:info]; [picker dismissViewControllerAnimated:YES completion:NULL]; } From imagePickerController i choose the image and call metaDataFromAssetLibrary method - (void) metaDataFromAssetLibrary:

PNGj, metadata doesn't get saved

谁说我不能喝 提交于 2019-12-06 06:06:36
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(imi); for (int row = 0, c = 0; row < pngW.imgInfo.rows; row++) { for (int col = 0; col < imi.cols; col++

Publishing data in a data warehouse

雨燕双飞 提交于 2019-12-06 05:43:20
Are there best practices or well known methods for publishing/announcing (via metadata etc) what data has been loaded, verified and is currently available for reporting in a data warehouse? I've seen several in-house systems for doing this - some pretty fragile. Are there some well-known concepts or good search terms I could look for? I'm not sure exactly what you're looking for here, but what exactly are the users waiting for? If it's for the system to be available again after a well-defined and consistent daily ETL process runs, then it's easy to send an email, re-enable your reporting