I am creating an application that takes a user's hand signature, input on the Blackberry playbook. When the JPEG is created, I would like to add Exif data such as the date/time to the JPEG. Does anyone know how to do this, or if it is possible?
Thanks
Phil
I couldn't find anything online about writing exif data, but I did find this interesting article on reading exif data. It mentions what bytes does what. I suggest you take that library to create something to write exif data. Seems fairly simple, just need to set the proper tags in the ByteArray, append the image byte array between 2 tags and write to the file.
i found two libries
As3 seems to be writing it to xml, but flash builder does not take in import com.adobe.xmp.*;
Metaphile
Related
I have binary asd i want to save as a myvideo.mp4, So my question is that if you have binary and you want to store your file,
So how it would accomplished any one idea i didn't work yet with binary and streaming i am new with these all things so if any one know please share a piece of example which solve my problem.
like response.outStream in this i am getting binary so can i save as a myvideo.mp4 what would be that process actually this binary is generating for mp4 conversion so any idea.
thanks.
You will need to create a FileStream to write to and then you will read the source stream in a loop, reading a block and then writing that block to the FileStream. It should be fairly easy to find an example of reading a stream in a loop using its Read method.
how to get thumbnail image from the video file using Qt/C++.i use TagLib ,its not worked out.
You can use the libVLC or ffmpeg, it's more easily than using Qt
Basically any Video is in 'frame' and that frame is you thumbnail.
We can image like box, where inside of box are all information about 'image' like where is positioned (in time), how big it is (Full HD, 720 ...), and all other sort of information.
Biggest question is what video format you like to extract, and how you like to extract.
For example file format like AVI is well known see:
how to read avi files
In case when you read som other format, you need to know how to read correctly in binary format, or you can use any library that will handle 'unpack format' for you.
Last question is if library can 'extract' image for 'this' frame ... but this is up to library.
To answer your question, you can use any external library, or read manually by yourself on binary level.
PS: If TagLib is not working for you can try any other library, just make sure you read documentation and try to find is library allow you to get images from frames.
I'd like to use the EXIF data that comes in the photos that have been uploaded into a gallery. In particular, I like to be able to sort images in a plonetruegallery view of a folder or collection on the EXIF date the photo was taken. Googling tells me that the ATImage type did store the EXIF data, but I haven't seen anything more recently that uses it. Even if I could just get the image import to change the Created date to be that taken from the EXIF DateTimeOriginal then that would be great.
Has anyone else tried to achieve this?
As your use case is very narrow it is unlikely others have tried to do the same with Plone. Some general pointers:
Poke the orignal image data stored in ImageField using EXIF-py
https://github.com/ianare/exif-py
Misc. info about Archeypes image and file fields:
http://collective-docs.readthedocs.org/en/latest/content/archetypes/files.html
for iptc meta data (most image tools store both metadata) you can try http://pypi.python.org/pypi/unweb.iptc
it's a slick and modern solution using event-subscribers.
if you only have exif metadata you can re-use the code and do the same using exif-py
ATPhoto (http://plone.org/products/atphoto/) is extremely out of date, and you should not use it wholesale, but you could look at how it parses EXIF tags for inspiration (and code-reuse).
By default ATImage object inherits from imagetransform so they have a method called getExif(): https://github.com/plone/Products.ATContentTypes/blob/master/Products/ATContentTypes/lib/imagetransform.py#L87
Integration to gallery is up to you and should not be difficult than doing context/getExif in the caption and display the way you want.
The main issue with addons here is about performance and dependencies. Doing parsing with python, store, synchronize, a source of issue that is quite big IMO.
I have already try many python package promize to extract and structure exif without real working out of the box solution.
I have used Evil DICOM library to read a DICOM file.It is displaying the Raw DICOM file correctly but it is not displaying the other formats.Plz suggest me solution or suggest me any other C# library which reads all the formats correctly.
I assume you are talking about DICOM files with compressed images. You can access the fragments in the pixel data element and uncompress them yourself in Evil Dicom:
DicomFile df = new DicomFile("compressed.dcm");
Fragment[] frags = df.PixelData.Fragments;
but obviously this is more complicated than you probably want. I will try to get the CompressionHelper class running within the next few versions. Many compression formats are proprietary and code for decompression is hard to find.
I believe Grassroots DICOM may be what you are looking for. Not as easy as Evil Dicom, but it supports the formats you want.
I need to parse a large trace file (up to 200-300 MB) in a Flex application. I started using JSON instead of XML hoping to avoid these problems, but it did not help much. When the file is bigger than 50MB, JSON decoder can't handle it (I am using the as3corelib).
I have doing some research and I found some options:
Try to split the file: I would really like to avoid this; I don't want to change the current format of the trace files and, in addition, it would be very uncomfortable to handle.
Use a database: I was thinking of writing the trace into a SQLite database and then reading from there, but that would force me to modify the program that creates the trace file.
From your experience, what do you think of these options? Are there better options?
The program that writes the trace file is in C++.
Using AMF will give you much smaller data sizes for transfer because it is a binary, not text format. That is the best option. But, you'll need some middleware to translate the C++ program's output into AMF data.
Check out James Ward's census application for more information about benchmarks when sharing data:
http://www.jamesward.com/census/
http://www.jamesward.com/2009/06/17/blazing-fast-data-transfer-in-flex/
Maybe you could parse the file into chunks, without splitting the file itself. That supposes some work on the as3 core lib Json parser, but it should be doable, I think.
I found this library which is a lot faster than the official one: https://github.com/mherkender/actionjson
I am using it now and works perfectly. It also has asynchronous decoder and encoder