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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Not able to show some tif - Irfanview is working

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
UBeyerAtWork Posted - Sep 19 2019 : 08:49:53
Hello,

I have problem to show a TIFF image. In Irfanview it's no problem.



It gives no error message on load. Image control stays gray.
Does anyone have same problems?

Uwe

Uwe Beyer
Software Engineering / Consulting (Personalsystem/Archivsystem/Web)

IS International Sourcing AG
Stockwiesenstr. 1
CH-8240 Thayngen



attach/UBeyerAtWork/201991991057_ImageENTifTest.zip
568.75 KB
6   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 30 2019 : 17:03:11
Further information from Fabrizio:

The fourth channel in TIFF images can be interpreted as alpha channel or not. When it represents alpha channel then ExtraSamples tag should be 1 or 2.
However old software may not assign ExtraSamples tag and include anyway the additional channel as alpha channel (as in the test image).

I've added a define in ie.inc that enables current behaviour (until 8.7.0), meaning "always interpret additional channel as alpha". But we should should disable it (from 8.7.1) because with newer TIFFs the ExtraSamples tag is generally assigned correctly (allowing this forum image to be read correctly).


Uwe, You can email email me for a pre-release if you like.

Nigel
Xequte Software
www.imageen.com
UBeyerAtWork Posted - Sep 23 2019 : 06:54:36
Hi Nigel,

perfect thanks a lot

Uwe

Uwe Beyer
Software Engineering / Consulting (Personalsystem/Archivsystem/Web)

IS International Sourcing AG
Stockwiesenstr. 1
CH-8240 Thayngen
xequte Posted - Sep 20 2019 : 23:32:36
Hi Uwe

Actually, it seems you can view the content of this image just fine if you disable the alpha channel, e.g. after loading, call:

ImageEnView1.RemoveAlphaChannel;

I'll investigate this in more depth shortly.


Nigel
Xequte Software
www.imageen.com
xequte Posted - Sep 20 2019 : 17:42:13
Hi Uwe

I'll take a look at it and see if it's practical to support, or at least raise an exception.

We're a bit behind at the moment because of the FireMonkey development.



Nigel
Xequte Software
www.imageen.com
UBeyerAtWork Posted - Sep 20 2019 : 02:00:36
Hi Nigel,

the reason is to switch our archiv system. We have to convert from single pages to multitiff. As I saw it's a format from Leadtools.

In new version of Irfanview it's working fine. Maybe I can ask Irfan, if he can help us.

>> I got answer from Irfan. He takes the newest version of libtiff. I will try to write a wraper for it.

The big problem is that we don't get any error message.

King Regards from south Germany
Uwe

Uwe Beyer
Software Engineering / Consulting (Personalsystem/Archivsystem/Web)

IS International Sourcing AG
Stockwiesenstr. 1
CH-8240 Thayngen
xequte Posted - Sep 19 2019 : 18:18:17
Hi Uwe

I cannot find a single app that loads this TIFF file. It must be a very uncommon format. Is there a particular reason you need to support it?

Nigel
Xequte Software
www.imageen.com