@cvp, you’re a genius! Thank you so much for the script you shared, it does exactly what is supposed to do :-)
As the files were created by iOS I do not have to modify any metadata. But thanks anyway for the detailed explanation.
—Pat
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
@cvp, you’re a genius! Thank you so much for the script you shared, it does exactly what is supposed to do :-)
As the files were created by iOS I do not have to modify any metadata. But thanks anyway for the detailed explanation.
—Pat
Hi cvp,
I really appreciate your effort! How did you manage to create the PHLivePhoto? Could you please share the code?
I checked the link you shared: I also thought of some metadata issue, but I have checked 'a.heic' and 'a.mov' again, both have sames dates. I really don't know why it is not working...
Do you have any other ideas? Thank you!
--Pat
Hi cvp,
thanks for that script. It adds a video file to Camera Roll. But how can I manage to add an image and a video to Camera Roll so that they will be displayed as a Live Photo?
What do you think of method 'requestLivePhotoWithResourceFileURLs' of class 'PHLivePhoto'? Is it possible to create a Live Photo that way in Pythonista?
Thank you for your help!
--Pat
Hi cvp,
thank you for trying! I look forward to your reply.
--Pat
Hi cvp,
saving images by calling photos.create_image_asset() works fine, but I would like to save an image with a related video file so that iOS recognizes both files as live photo. Saving the video by photos.create_image_asset() will not work.
Any ideas how to handle this? Thanks!
--Pat
Hi guys,
I have an image (a.heic) and a video file (a.mov) stored in Pythonista's Documents folder. I would like to save both files to Camera Roll so that iOS recognizes them as a Live Photo.
Is it possible to create instance of Objective-C class 'PHLivePhoto' and access method 'requestLivePhotoWithResourceFileURLs' to load 'a.heic' and 'a.mov' resource files and save the created 'PHLivePhoto' to Camera Roll? How would this be done by using 'objc_util'?
Any help would be greatly appreciated. Thank you!
--Pat