File Attributes/Description - file

I have to put some attributes on a file like you see it on an jpeg file, there you can add many attributes about the image and resolution and also but information in about the camera.
I also saw it on an mp3 file where you can add information about the song, album ,producer etc...
Is there any way to add these attributes to something like an pdf, txt.
Thanks for your time.

I have to put some attributes on a file like you see it on an jpeg file, there you can add many attributes about the image and resolution and also but information in about the camera.
That is part of the JPEG/Exif file specification.
I also saw it on an mp3 file where you can add information about the song, album ,producer etc...
That is part of the MP3 file specification.
Is there any way to add these attributes to something like an pdf, txt.
Metadata is part of the PDF file specification. There is nothing like that for plain text files.

Related

Can we extract thumbnails embedded in TIFF files with metadata-extractor?

I'm able to use ExifTool to extract an embedded thumbnail jpeg from within a TIFF. Is there a way that I can do this with drew noakes' metadata-extractor?
The source file is here:
https://corpora.tika.apache.org/base/docs/commoncrawl3/RD/RDAFESH5CBBJWWQZMZR4MGJIPYYEL7DN
The extracted thumbnail/preview image is .
I see the 5225 byte count in a metadata item (0x0202) with metadata-extractor, but I'm not able to get the bytes.
Thank you!

How to download images and bounding boxes from imageNet such that they have matching names?

I am doing object detection for a specific class, say, chairs .
I want to download images of chairs from imageNet. I also want to download the annotation xml files (bounding boxes) from imageNet.
Both these things are provided on imageNet and I have successfully been able to download them using a tool called ImageNet_Utils
https://github.com/tzutalin/ImageNet_Utils
But the downloaded images and bounding boxes don't have matching names. So it is impossible to tell which xml file is for which image.
How do I download images and bounding boxes from imageNet such that corresponding image and annotation xml files have matching names?
The download image URLs page says
The URLs are listed in a single txt file, where each line contains an
image ID and the original URL
Unfortunately, as of 2020-03-06, all the URL mapping files link to a Oops! The URL is not valid page. However, can however get mappings for each node individually. They are available by wnid: http://www.image-net.org/api/text/imagenet.synset.geturls.getmapping?wnid=n03273913
A bounding box annotation file will contain this element.
<filename>n03273913_16800</filename>
The n03273913 is the synset id and the 16800 is the image id. In the synset mapping file you'll find the line
n03273913_16800 http://farm1.static.flickr.com/186/425238103_8fe80b37de.jpg
You can download the image from that location.
There's a c++ library known as dlib. You can pass your downloaded images from dlib, it has GUI support for drawing blocks in images and save them in vector formats in an XML file. You can refer here for the documentation

How to open and adit such file?

I have export file with products and history data. I need to change information about products storage number. Here is example file:
https://drive.google.com/open?id=1RAC73jM3pbrlbYVaAQL58vN9SvnBvNxM
File looks like it contains another files. Any idea what format is this, how I can open it and edit? Looks kinda like packaged sqlite files or something.

How to create file format with metadata

I am trying to make a new file format for music. It needs to be a file that actually stores multiple audio files, for example a zip file. I am looking for a way to turn the zip file into this new file format. However, I still want to use id3 tags with these new files. I was wondering how I can make this new file format which is one file that holds multiple audio files, but still contains overall id3 tags for that one file, so that I can load it into my mobile applications.
Any help/recommendations would be appreciated.
Cheers,
AJ
The problem with creating your own new file format is that only you can use it. Until you convince lots of other people that it is a useful new format, no one else will have the tools to be able to do anything with the files you create.
For existing music player programs to be able to handle a new file format, you must write a CODEC for your file format in that player's plug-in style. Probably more than one plug-in as your file format is both a container of music and a catalog as well.
One alternative to creating a new file format is to put the MP3 files you have into a new MP3 file with each old file a new TRACK in the new file. Be sure to set each new tracks start time to be after the sum of all previous tracks play duration, so they don't step on each other. Merge the metadata about each file into the metadata of the new file. This might work OK for collections with lots of common metadata (like same artist), but might not work very well if the metadata is extremely varied.
Another alternative is to convert them to CDA format and put then into an Audio-CD image file, just as if you had burned them to a CD.
A third alternative is to put your files into an SQLite database file. Your metadata from each MP3 file fill in records, and you have your choice of leaving the MP3 file external and just linking to it, or storing the blob of your MP3 file in the DB as well. If you do store the blobs, then the SQLite database file is a single file that contains everything you put in it.
-Jesse
Don't create new formats unless you really really have a very good reason to do so.
Its sounds like Matroska can do anything you need. But in contrast to your own format you and other developers will have a bunch of ready to use tools to work with the format. This includes editors, players,... Additionally it you can leave making initial engineering errors to other people.
If you really really want to create your own format: Either just put your audio files that support id3 tags into your zip file, or create a meta file, for example in XML format, into your zip files as well, that contains the meta information that you want to be included.

How to filter the Filelistbox with multiple filetype masking?

Somehow I need to make a custom "file-open form".
I manage to retrieve the file list with filelistbox.
My question is when I enter this in filelistbox1.mask
Image Files|*.jpg;*.jpeg;*.bmp;*.gif;*.png;*.tiff;*.tga
all of the *.jpg files did not show up, but other image files ( .jpeg;.bmp;.gif;.png;.tiff;.tga) shows up. how come this be ?
I'm sure there is the *.jpg files in the folder, but why the they did not show up in the filelistbox ?
how to fix my mask ? any idea what is the correct mask for it ?
You need to list just the extensions.
*.jpg;*.jpeg;*.bmp;*.gif;*.png;*.tiff;*.tga
At least, that's how I read the documentation.
From the comments it looks like you want to store in the control some friendly text that indicates what type of file the mask refers to, e.g. image files, executable files, text files etc. You could perhaps re-purpose the Hint property to do this. You could use the Tag property and store a PChar. You could derive from TFileListBox a new class that contained an extra property. Or you could just store the information in the form class that owns the list box.
Remove Image Files|.
It's for the File Dialogs.

Resources