As of iOS 11, with specific iDevices (those with an A9 chip, AKA iPhone 7 and that generation of devices and newer) Apple has introduced a new “High Efficiency” format for photos and videos. What this means is, when you use the iOS client to sync you will see only HEIC and HEVC files when syncing photo and video. To my knowledge, there are no Windows or Linux programs that can open this file format. Currently, I am unable to open my .heic files on Fedora 26. This means anything you sync will basically be unusable unless there comes a desktop client that will convert all those files to jpeg. This means to avoid these conflicts you will need to disable this functionality on iOS by taking these steps:
Go to Camera
Select “Most Compatible”
The end result is your files will continue to save on your iPhone and export as jpeg and mov files. This is mainly a problem with file syncing where you get the “high efficiency” original file vs. connecting your iPhone to Windows or macOS where by default your iPhone will do an export to the more compatible jpeg and mov file formats. My hope is my fellow Apple users will read this before taking lots of pictures and finding they are all in a format you probably can’t open, as support for this format is immature.
just as an aside:
i don’t know about the image format, but
“High Efficiency” (“HEVC”)
with video is usually business-lingo for x265 which ffmpeg has been supporting for quite a while as an external library http://ffmpeg.org/general.html#x265 and which most linux distributions can install w/out problems.
~# apt-cache search x265
libx265-95 - H.265/HEVC video stream encoder (shared library)
libx265-dev - H.265/HEVC video stream encoder (development files)
libx265-doc - H.265/HEVC video stream encoder (documentation)
x265 - H.265/HEVC video stream encoder
if you have a videofile of this kind just do ffmpeg -i <FILE>
and it should give you meaningful info.
Of course, this is not strictly nexcloud-related.
Well, it is a container for heavily patent encumbered (Free software and software patents are basically mutual exclusive) stuff actually. No wonder there is no software outside the Apple universe for it:
One thing I’m not sure about, is I see there is a repo out by nokiatech on heif and there’s supposedly an open source (though doesn’t appear to be very libre) repo for heif reading/writing/etc. I don’t know all the licensing logistics between this and AGPL, but I wonder if there aren’t any conflicts of interest or license breaches having some sort of conversion built into the server or client for heic? Or I also saw that iOS 11 has the ability to auto detect whether to export as an heif file or the more compatible jpeg & mov files. Perhaps there’s some sort of tie that Nextcloud can take advantage of with either one of those two implementations? I’d assume the latter could be easier or at least more respecting of the openness of the Nextcloud platform
On a positive note…
During the initial beta stage of iOS 11, google photos was unable to backup the heic files, but during the final iOS beta stages, google photos did an update and now the files are in and are still .heic files, so I can view them, print them, they are treated the same as when it was jpg files through the photos.google.com.
So, I believe it is a possibility to see the same in nextcloud.
I think with the jankiness of HEIF (and as stated earlier all the patents and non-libre focus of HEIF), it would cause issues with this project which sucks. @ios Does Apple offer a way to tell iOS to switch over to jpeg & mov for that specific app? That way, if users were wanting to take advantage of HEIF on iOS, they could do that and then have Nextcloud sync as jpeg and mov as usual
I’ve turned my heic feature off on my iPhone camera for now, but look forward to a preview option in the app. I do like the idea of increased compression for photos stored on the phone and it would be cool to have a previewer built into nextcloud and convert it to jpg when syncing.
The HEIC file format seems to break the auto upload feature on my phone, so those pictures weren’t even in my nextcloud in the first place. After seeing this post I had to manually select all photos from the last month and “share” the image using the IOS share feature, which then converted them, and selecting to upload to nextcloud.