ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Canon .HIF file support - Delphi 10.1
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

tjarrault

France
9 Posts

Posted - Oct 03 2022 :  12:00:04  Show Profile  Reply
Hello,

I am currently evaluating the ImageEn library to process Canon .HIF generated pictures.
I have compiled the Magnify demo and when I try to open a sample image, the below Exception is raised:



I have noted this behavior on several other demo project.

I have attached a sample picture here to help reproducing the issue:

attach/tjarrault/2022103115410_IMG_0369.zip
8453.73 KB

Thanks & regards
Thomas

Thomas

xequte

38608 Posts

Posted - Oct 03 2022 :  20:41:07  Show Profile  Reply
Hi Thomas

For HEIF files you are better to use the ImageMagick plug-in. This images loaded for me with ImageMagick (though the .HIF extension is not supported by default, so you are better to use .HEIF):

https://www.imageen.com/help/TIEMiscPluginsImageMagick.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

tjarrault

France
9 Posts

Posted - Oct 04 2022 :  02:51:58  Show Profile  Reply
Hi Nigel,

thanks for your swift reply.

I have installed ImageMagick addon and compiled the provided demo.
Unfortunately the same expection is raised on my sample file.

I have tried to open the same .HIF file directly in ImageMagick and it opens properly.



I have then added the following code to prevent using WIC:
IEGlobalSettings().WICFileTypes:= '-';

Exception is not raised anymore but image still not loaded.

thank you for your support
regards

Thomas
Go to Top of Page

xequte

38608 Posts

Posted - Oct 04 2022 :  15:31:56  Show Profile  Reply
Hi Thomas

Does it work if you call:
IEGlobalSettings().WICFileTypes:= '-';
ImageEnView1.IO.LoadFromFile( 'D:\IMG_0369.HIF' );

Or
ImageEnView1.IO.LoadFromFile( 'D:\IMG_0369.HIF', iomscHEIF );

How about if you change the extension to .heif?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

tjarrault

France
9 Posts

Posted - Oct 05 2022 :  14:45:26  Show Profile  Reply
Hi Nigel,

Same results trying your suggestions.
I have individually tested the following 4 cases, WIN10 64bits compiled with delphi 10.1 and 10.4.2:

in this case below => image is not loaded and WIC exception is raised:
IEGlobalSettings().WICFileTypes:= '-';
ImageEnView1.IO.LoadFromFile( 'C:\IMG_0369.HEIF' );


in the 3 cases below => image is not loaded and no exception raised:

IEGlobalSettings().WICFileTypes:= '-';
ImageEnView1.IO.LoadFromFile( 'C:\IMG_0369.HIF' );
----
ImageEnView1.IO.LoadFromFile( 'C:\IMG_0369.HIF', 8197 );  // iomscHEIF = 8197
----
ImageEnView1.IO.LoadFromFile( 'C:\IMG_0369.HEIF', 8197 );  // iomscHEIF = 8197

Thanks & regards

Thomas
Go to Top of Page

xequte

38608 Posts

Posted - Oct 05 2022 :  16:04:22  Show Profile  Reply
Hmm, I'm not seeing that. What version of ImageEn is this?

HEIF support via ImageMagick was added in v10.3.5 and there have been a lot of other ImageMagick enhancements in 11.3.0.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

tjarrault

France
9 Posts

Posted - Oct 05 2022 :  17:24:06  Show Profile  Reply
I have finally succeed in loading my picure using (works also with .HEIF extension)

ImageEnView1.IO.LoadFromFile( 'C:\IMG_0369.HIF', 8197 )


It seems few ImageMagick's dlls were missing even if demo indicates "plugin registered".

I have also noticed that HEIF is not displayed in available format as seen below



Anyway thank you very much for your support

Best regards

Thomas
Go to Top of Page

xequte

38608 Posts

Posted - Oct 06 2022 :  00:01:37  Show Profile  Reply
Hi Thomas

What version of ImageEn are you using?


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

tjarrault

France
9 Posts

Posted - Oct 06 2022 :  02:04:04  Show Profile  Reply
Hi Nigel,

I am using v10.3.5 trial version with ImageMagickPlugIn1100.

regards

Thomas
Go to Top of Page

xequte

38608 Posts

Posted - Oct 06 2022 :  04:17:39  Show Profile  Reply
Hi Thomas

You can email me for a newer trial.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

tjarrault

France
9 Posts

Posted - Oct 07 2022 :  06:35:00  Show Profile  Reply
Hi Nigel,

I can't email you via your profile, seems I am too recent here :)
can you email me?

thanks
Thomas

Thomas
Go to Top of Page

xequte

38608 Posts

Posted - Oct 07 2022 :  19:32:31  Show Profile  Reply
Please email sales@xequte.com. I do not have easy access to your email address on the forum.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: