Giter Site home page Giter Site logo

liuziangexit / heif-utility Goto Github PK

View Code? Open in Web Editor NEW
385.0 17.0 62.0 139.91 MB

HEIF Utility - View/Convert Apple HEIF images on Windows.

Home Page: https://liuziangexit.com/HEIF-Utility

License: GNU General Public License v3.0

C# 100.00%
heif hevc h265 apple heic

heif-utility's Introduction

heif-utility's People

Contributors

bitching avatar gigaf avatar liuziangexit avatar liuziangexit2 avatar philipwilber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heif-utility's Issues

生成了HUD.dll后,C#如何调用

你好,我在win7 x64 上生成HUD解决方案,得到了HUD.dll后,怎么在c#的项目(比如console应用)中使用,我添加HUD.dll引用时提示不是有效的程序集或COM组件

high dpi support

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.

Parameter is not valid

invoke_dll.invoke_heif_to_jpg works great on most heic files, however a few files return exception "Parameter is not valid".

Cannot open .heic files on Windows 10 Pro 1703 64 bit

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 尽管公开声称不再支援这些系统,微软仍然为这些系统提供更新

Using on an ASP.NET site > image invalid format

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

部分转换失败

非常好用,感谢。
但部分转换失败,貌似是因为这些图片在手机上被编辑过的原因(只用苹果自带图片编辑或snapspeed),能否研究一下。
再一个能否保存上一次批量转换的设置,输出路径和质量

Issue when converting images from URI

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!

Code is not Running in System

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".

Error Unable to open this file

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

jpeg2heif

近期 Google 相册已经支持了 HEIF 格式的备份,此工具可以将 JPEG 图片转化为 HEIF 格式吗。为硬件、网盘同时节省空间。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.