Apple has introduced a new image format in iOS 11 called HEIF (.heic file extension). I know you can export images as JPG from iOS devices, but I want to upload the HEIC-files to my server and convert them there to JPEG files that can be shown on all other devices.
苹果在iOS 11中引入了一种新的图像格式HEIF (HEIF)。heic文件扩展名)。我知道你可以从iOS设备上以JPG格式导出图像,但是我想把heic文件上传到我的服务器上,并将它们转换为JPEG文件,这些文件可以在所有其他设备上显示。
Can anyone recommend a good and efficient way to achieve this?
有人能推荐一种有效的方法来实现这个目标吗?
ANSWER:
答:
Since this question has been closed, I will edit in my answer here for the rest of you. We now use this library for converting HEIC to JPEG: https://github.com/monostream/tifig
既然这个问题已经结束了,我将在这里编辑我的答案。我们现在使用这个库将HEIC转换为JPEG: https://github.com/monostream/tifig。
Also ImageMagick now support converting HEIC to JPEG thanks to a fork from @toshic
另外,ImageMagick现在支持将HEIC转换为JPEG,这要感谢@toshic提供的fork
Thank you to @monostream and @toshic for your great contributions!
感谢@monostream和@toshic为您所做的巨大贡献!
EDIT1: Edited the wording of the question to be more specific and meet SO guidelines
编辑问题的措辞,使其更具体,符合SO指南
EDIT2: Added answer since this topic is now closed :/
增加了答案,因为这个主题现在已经关闭了:/
4 个解决方案
#1
16
It's complicated because iOS 11 is actually storing tiles of HEVC encoded images in a HEIF container, but there's a demo using the nokia lib to extract them all, ffmpeg to decode them and then stitching them into a single jpeg with imagemagick in the heiftest repo linked from corrupted HEIC tile when converting to JPEG
很复杂,因为iOS 11实际上是瓷砖HEIF HEVC编码图像的存储容器,但是有一个演示使用诺基亚*提取,ffmpeg解码,然后缝合成一个与imagemagick jpeg heiftest回购链接转换成jpeg时损坏HEIC瓷砖
We also have a working one you can use by cloning https://github.com/pushd/heif and then:
我们还有一个可用的,您可以通过克隆https://github.com/pushd/heif来使用,然后:
cmake CMakeLists.txt && make && Bins/heiftojpeg test_001.heic test_001.jpg
#2
1
CloudConvert supports to convert these HEIC files to JPG: https://cloudconvert.com/heic-to-jpg. They also have an API with PHP/node.js/Python SDKs.
CloudConvert支持将这些HEIC文件转换为JPG: https://cloudconvert.com/heicto - JPG。他们还有一个PHP/node的API。js / Python sdk。
#3
0
There is no such library available right now for image conversion on a server for HEIF to JPEG, ImageMagick doesn't have support for that till now.
现在还没有这样的库可以在服务器上对HEIF到JPEG进行图像转换,ImageMagick到现在还没有支持。
The only way you can do this by exporting your images from your device, that should produce a JPEG image.
要做到这一点,唯一的方法是从设备中导出图像,这会生成一个JPEG图像。
Nokia has a HEIF reader javascript implementation which you can have a look at: Nokiatech heif
诺基亚有HEIF阅读器javascript实现,你可以看看:Nokiatech HEIF
Alternate: You can try this website if this works.
备选:如果可以的话,你可以试试这个网站。
Feature Request for ImageMagick
ImageMagick特性要求
#4
-2
Disclaimer: I'm one of the developers of this app.
免责声明:我是这个应用程序的开发者之一。
We made a simple drag & drop app for macOS and Windows which converts HEIF/HEIC files to JPEG. It also includes EXIF and color profile in JPG. It's available for free here: https://imazing.com/heic
我们为macOS和Windows做了一个简单的拖放应用,将HEIF/HEIC文件转换为JPEG。它还包括EXIF和JPG中的颜色配置文件。免费下载:https://imazing.com/heic
#1
16
It's complicated because iOS 11 is actually storing tiles of HEVC encoded images in a HEIF container, but there's a demo using the nokia lib to extract them all, ffmpeg to decode them and then stitching them into a single jpeg with imagemagick in the heiftest repo linked from corrupted HEIC tile when converting to JPEG
很复杂,因为iOS 11实际上是瓷砖HEIF HEVC编码图像的存储容器,但是有一个演示使用诺基亚*提取,ffmpeg解码,然后缝合成一个与imagemagick jpeg heiftest回购链接转换成jpeg时损坏HEIC瓷砖
We also have a working one you can use by cloning https://github.com/pushd/heif and then:
我们还有一个可用的,您可以通过克隆https://github.com/pushd/heif来使用,然后:
cmake CMakeLists.txt && make && Bins/heiftojpeg test_001.heic test_001.jpg
#2
1
CloudConvert supports to convert these HEIC files to JPG: https://cloudconvert.com/heic-to-jpg. They also have an API with PHP/node.js/Python SDKs.
CloudConvert支持将这些HEIC文件转换为JPG: https://cloudconvert.com/heicto - JPG。他们还有一个PHP/node的API。js / Python sdk。
#3
0
There is no such library available right now for image conversion on a server for HEIF to JPEG, ImageMagick doesn't have support for that till now.
现在还没有这样的库可以在服务器上对HEIF到JPEG进行图像转换,ImageMagick到现在还没有支持。
The only way you can do this by exporting your images from your device, that should produce a JPEG image.
要做到这一点,唯一的方法是从设备中导出图像,这会生成一个JPEG图像。
Nokia has a HEIF reader javascript implementation which you can have a look at: Nokiatech heif
诺基亚有HEIF阅读器javascript实现,你可以看看:Nokiatech HEIF
Alternate: You can try this website if this works.
备选:如果可以的话,你可以试试这个网站。
Feature Request for ImageMagick
ImageMagick特性要求
#4
-2
Disclaimer: I'm one of the developers of this app.
免责声明:我是这个应用程序的开发者之一。
We made a simple drag & drop app for macOS and Windows which converts HEIF/HEIC files to JPEG. It also includes EXIF and color profile in JPG. It's available for free here: https://imazing.com/heic
我们为macOS和Windows做了一个简单的拖放应用,将HEIF/HEIC文件转换为JPEG。它还包括EXIF和JPG中的颜色配置文件。免费下载:https://imazing.com/heic