ios - How to extract image from a live photo? -


i know how extract video live photo. explained here.

use phassetresourcemanager video file phassetresource.

phassetresourcemanager.defaultmanager().writedataforassetresource(assetres,      tofile: fileurl, options: nil, completionhandler:    {      // video file has been written path specified via fileurl   } 

but how extract image url phlivephoto. motivation behind both video , image url in order upload server.

well assuming have access phasset can following:

[asset requestcontenteditinginputwithoptions:nil                            completionhandler:^(phcontenteditinginput *contenteditinginput, nsdictionary *info) {       nsurl *imageurl = contenteditinginput.fullsizeimageurl; }]; 

Comments

Popular posts from this blog

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -