Save metadata in swift4 - metadata

I have searched many pages trying to find the code to save the metadata that is captured with an image using UIViewController, using Swift4.1
Is there a sample code that I can use for reference?

Related

How to compress video after getting result from PHPickerViewController xcode swift

I know that UIImagePickerController allows you to compress media content upon selection. However, I'm not sure how to do the same with PHPickerViewController. How can I compress a video after getting a result (didFinishPicking), (so I can reduce the amount of time to upload and download the data from then on)
I don't think PHPickerViewController does that, but there are other ways to do it depending on how you work with the picker:
If you're using the default picker configuration (i.e. creating a PHPickerConfiguration without passing the photo library and therefore not having the need to request permissions), you'll have to work with NSItemProvider. From what I learned, the only option might be to save the video to a temporary file using the item provider and the convert it to a lower resolution/bitrate using AVAssetExportSession (see some examples here: How can I reduce the file size of a video created with UIImagePickerController?).
If you are using the picker with an explicitly passed photo library, the PHPickerResult will have the assetIdentifier provided to you, and you can use it to get a respective PHAsset. Then, use PHImageManager's requestAVAsset method to get a video asset of a desired quality. You'll still need to export the AVAsset via AVAssetExportSession though, but with this approach you won't have a (potentially large) full-res temporary file on disk. I was recently working on a open source app that uses this technique, you can find some examples here: https://github.com/vadimbelyaev/TbilisiCleanups/blob/main/TbilisiCleanups/Services/MediaUploadService.swift

TYPO3 store Extension-Builder image via FormFields.html

Images currently are not handled by the extension-builder.
I am looking for a kind of "f:form", where I can store the image file name with the submit function, inside FormFields.html.
If I use f:form.textfield I get in trouble with format.
I already tries
...originalResource.url and
...originalResource.name
I am using TYPO3 7.6.14
How I have to handle this task?
Implementing a File Upload with FAL in Extbase is not that easy. Here is an example extension in Github - mostly I do it like there: https://github.com/helhum/upload_example
But be warned: It's not for beginners...

how to get data from wcf service using WCDL2OBJC

hi i got project files using WCDL2OBJC, and included it in my project.
but i don't know how to give inputs and get data, i am blank here can not move forward.
were as my url:
[http://parentportal.technologyorg.com/ParentPortal.svc?wsdl][1]
and i want to pass the parameter studentID='E6A83233-7D7F-49AF-B54E-375BBF3E3E59' to this url and get the out put in IBAction from the files of WSDL2OBJC.
can any one have some examples or source code to do this.
i have #class GetSchoolEvents, which is my method to get data in WCDL2OBJC file. how to access this and get data?
On the WSDL2OBJC pages you can find some samples how you can use the generated code. http://code.google.com/p/wsdl2objc/wiki/UsageInstructions
Just create a ..OperationRequest object and set properties for the variables

How to read PDF file from right to left on iOS

I am working on a basic project that reads pdf files from a server and show them on the screen.
The issue is that i want to read that files from right to left as a page.
Like Massimo Cafaro say :
If you want to extract some content from a pdf file, then you may want to read the following:
Parsing PDF Content
from the Quartz 2D programming guide.
Basically, you will use a CGPDFScanner object to parse the contents, which works as follows. You register a few callbacks that will be automatically invoked by Quartz 2D upon encountering some pdf operators in the pdf stream. After this initial step, you then actually start parsing the pdf stream.
Taking a brief look at your code, it appears that you are not following the steps required to parse the pdf content of the page you get through CGPDFDocumentGetPage(). You need first to setup the callbacks using CGPDFOperatorTableCreate() and CGPDFOperatorTableSetCallback(), then you get the page, you need to create a content stream using that page (using CGPDFContentStreamCreateWithPage()) and then instantiate a CGPDFScanner through CGPDFScannerCreate() and actually start scanning through CGPDFScannerScan().
The "Parsing PDF Content" section of the document pointed out by the above URL gives you all of the information required to implement pdf parsing.
if you don't try anything you can start with this project link

Exif and iPhone files

Im using a library for extracting EXIF data from google code.
I assume with iPhone OS 3 that you can use UIImagepicker to do it.
I just want to be able to extract the f-Stop, Shutter Speed and ISO data from the image.
I want to discard the image and just use the information that I store up.
Would I end up extracting the tag data in the viewcontroller.m or h?
This part of coding seems to baffle me a little bit and I cant figure out what to put where.
Can anyone help me out? I still havent figured out XCode all that well.
Whatever executable code you have needs to go in a .m (implementation) file, not a .h (header file). The headers are just for declaring things like classes, protocols, and methods, not for any real processing work.
Are there any tutorials that you know of that explain using exif step by step?
im using the one found here -
http://iphone-land.blogspot.com/2008/06/geo-tagging-images-using-iphone-exif.html
However, for a newbie like me, its not all that thorough because im coming up with errors and i am not sure how to resolve them.
I guess im just shy in all this. need a good place to start
You will likely have trouble getting access to an images metadata if you get it via UIImagePickerController, due to the issues described in this question: UIImagePickerController and extracting EXIF data from existing photos