liuziangexit / heif-utility Goto Github PK
View Code? Open in Web Editor NEWHEIF Utility - View/Convert Apple HEIF images on Windows.
Home Page: https://liuziangexit.com/HEIF-Utility
License: GNU General Public License v3.0
HEIF Utility - View/Convert Apple HEIF images on Windows.
Home Page: https://liuziangexit.com/HEIF-Utility
License: GNU General Public License v3.0
其实我们要的是把相机RAW格式或者JPG转换转成heic格式。
Hi I'm trying to convert a batch of HEIC's to JPG. I'm getting an error: "Unable to open this file". Tried other online converters. All giving me errors. Can you please help me figure out whats going on?
One of the photos: IMG_1163.zip
近期 Google 相册已经支持了 HEIF 格式的备份,此工具可以将 JPEG 图片转化为 HEIF 格式吗。为硬件、网盘同时节省空间。
invoke_dll.invoke_heif_to_jpg works great on most heic files, however a few files return exception "Parameter is not valid".
It seems like under Windows 10 1703 (creators update) 64 bit the utility program cannot open any .heic files, even if Visual C++ 2015 redistributable is installed. Suggested testing/keeping compatibility on the following Windows Platforms (see below).
标题: 无法在Windows 10 专业版 1703 64位系统打开 .heic 文件
内容: 貌似该应用程序在Windows 10 1703 (创造者更新) 64位系统下无法打开任何的 .heic 文件,即便Visual C++ 2015 redistributable 已经安装在了系统上。建议在以下的Windows平台上进行该应用程序的测试,或者保证应用程序在以下平台的兼容性(见下)。
32 and 64 bit of
32位和64位的
Windows Vista SP2 (NT 6.0) [1]
Windows 7 SP1 (NT 6.1)
Windows 8 (NT 6.2) [1]
Windows 8.1 (NT 6.3)
Windows 10 1507 (NT 10.0.10240) [2]
Windows 10 1511 (NT 10.0.10586)
Windows 10 1607 (NT 10.0.14393)
Windows 10 1703 (NT 10.0.15063)
[1] Microsoft no longer support these systems 微软已经不再为这些系统提供支援
[2] Although publicly announced as "not supported", Microsoft is still providing updates to these systems 尽管公开声称不再支援这些系统,微软仍然为这些系统提供更新
I have an issue where i get an error message after converting images from URI "this is not a valid bitmap file, or its format is not currently supported" when i try and open the jpg after it has been converted. I do not get any error messages from the invoke_dll during the conversion process.
By default the read_heif method does not accept a URI as the filename. I have had to add the following code to that method to read the URI:
HttpWebRequest request = null;
HttpWebResponse response = null;
request = (HttpWebRequest)WebRequest.Create(filename);
response = (HttpWebResponse)request.GetResponse();
if (request.HaveResponse)
{
if (response.StatusCode == HttpStatusCode.OK)
{
Stream receiveStream = response.GetResponseStream();
using (BinaryReader br = new BinaryReader(receiveStream))
{
byte_array = br.ReadBytes((int)response.ContentLength);
br.Close();
}
}
}
i then sucesfully get a byte[] and can make a call to invoke_heif2jpg() and i get a converted jpg back. But when i try and open that jpg i get the error mentioned.
Have you seen this error at all or know of any way to correct this error?
Thank you for the great utility!
I followed the instruction here https://liuziangexit.com/HEIF-Utility/Help/No14.html.
Here is the ouput:
$ sha1sum HEIF-Utility-Thumbnail-Provider.dll
3c03912eaf49dd76ed2f66d27ddd48d4a8344609 HEIF-Utility-Thumbnail-Provider.dll
Anybody has any idea?
The UI blurs on my 150% dpi monitor.
你好,我在win7 x64 上生成HUD解决方案,得到了HUD.dll后,怎么在c#的项目(比如console应用)中使用,我添加HUD.dll引用时提示不是有效的程序集或COM组件
Hello Sir,
I had tried to build this code on my machine with visual studio 2015 on windows 10 operating system. I got an error "The core component is missing. HEIF UTILITY cannot start".
I used your libraries to convert HEIF to JPEG. And on a windows machine (Console-Application) it works like a charm.
Now I try to do the same thing on an ASP.NET site (Web-API) to convert incoming images.
I don't get an error message from the HUD.dll while converting the file. It seems like it works, because I successfully get a ByteArray as a result form the "invoke_heif2jpg" method.
But when I try to save this result-byte-array as a jpeg, the image is corrupted. The format is wrong.
I get a "System.ArgumentException: Invalid parameter" exception when I call the following code:
var image = Image.FromStream(new MemoryStream(jpegByteArray));
I have this problem when I call the HUD.dll directly form withing the API-Method and (like your ONLINE-code) when I start a separate process.
What can be wrong? Thanks
Convert JPEG images to Apple HEIF images please!
測試用文件: https://github.com/nokiatech/heif/blob/gh-pages/content/images/cheers_1440x960.heic
拿到app去, 只顥示無法打開文件,並沒有進一步報錯。
謝謝
target project to .net framework 4.6 and add the following code to app.config
:
<appSettings>
<add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
</appSettings>
and add a manifest file app.manifest
, the settings should be generated automatically, enable the following section:
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
and rebuild.
the ui will support high dpi.
What is that?
Hello,
I just downloaded your utility from your dropbox link, i am trying to use the english version on Windows 7. When i open the file i get the error:
"Unable to open this file."
Please see example files here: https://wetransfer.com/downloads/85ba7bab2c08ccab582bc0c15812a77b20170918174707/9ac949e960baa80db1c5952fc53cfff820170918174707/2ef3df
非常好用,感谢。
但部分转换失败,貌似是因为这些图片在手机上被编辑过的原因(只用苹果自带图片编辑或snapspeed),能否研究一下。
再一个能否保存上一次批量转换的设置,输出路径和质量
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.