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
 G4 Fax-Compression Quality
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Christian

2 Posts

Posted - Nov 23 2012 :  00:57:51  Show Profile  Reply
Hi,

I'm using ImageEn (Version 4.0.2) to compress TIFF-Images (Output from AutoCad) from LZW to Group4 Fax. As you can see in the attached files, the quality of the contained photo is very bad after the process.

For comparison, I attached an output from IrfanView (Save as -> Tiff (G4 Fax)).

Is there any possibility to enhance the quality?

Thanks in advance,

Christian



Download Attachment: 2012112305615_Test.zip

fab

1310 Posts

Posted - Nov 23 2012 :  06:05:58  Show Profile  Reply
Hi,
this is not related to the compression used. The quality depends by the algorithm used to convert from gray scale to black/white.
For default ImageEn used a threshold, that makes better compression but low quality (when there are images inside the document).
You can use another algorithm converting the image to B/W manually, for example:

ImageEnView1.Proc.ConvertToBW_FloydSteinberg();

or

ImageEnView1.Proc.ConvertToBWLocalThreshold

or

ImageEnView1.Proc.ConvertToBWOrdered()

Do it before save. It seems IrfanView uses a dithering algorithm (like ConvertToBWOrdered).
Go to Top of Page

Christian

2 Posts

Posted - Nov 23 2012 :  07:37:25  Show Profile  Reply
Hi Fabrizio,

thank you very much, that was exactly what I was searching for. The FloydSteinberg algorithm worked out perfectly for me :)

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: