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
 Image save by ImageEn vs. ImageLib?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

lamv@ftechi.com

USA
2 Posts

Posted - Feb 03 2016 :  12:38:50  Show Profile  Reply
Hi,
Does anyone know what is the difference on how ImageEn save its content to the database vs. ImageLib?
I am having problem with image saved by ImageEn (BMP works fine but other like JPEG, GIF, PNG, etc) does not work when Reportbuilder by Digital-Metaphors try to render it on the report (return with invalid image error code 53).
Any suggestion is greatly appreciated.
I am using these components in Delphi 7 and Delphi XE8. The reason for the switch is because ImageLib is no longer in business.
Thanks,
Vinh,

xequte

38943 Posts

Posted - Feb 03 2016 :  21:50:52  Show Profile  Reply
Hi

I'm not sure why ReportBuilder should be so picky about a standard such as JPEG, but I would try changing the JPEG parameters such as:

http://www.imageen.com/help/TIOParams.JPEG_OptimalHuffman.html
http://www.imageen.com/help/TIOParams.JPEG_Progressive.html
http://www.imageen.com/help/TIOParams.JPEG_ColorSpace.html
http://www.imageen.com/help/TIOParams.JPEG_DCTMethod.html

e.g.

ImageEnView1.IO.IOParams.JPEG_OptimalHuffman := True;
ImageEnView1.IO.Save...

ImageEnView1.IO.IOParams.JPEG_DCTMethod := ioJPEG_IFAST;
ImageEnView1.IO.Save...


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

lamv@ftechi.com

USA
2 Posts

Posted - Feb 09 2016 :  10:33:27  Show Profile  Reply
Hi,
My apology for our dump mistake in code. The short story is we have a line of code at runtime to tell ReportBuilder the image type to load and for whatever the reason the image extension save by ImageEn is different than what ReportBuilder is expected in the GraphicType property so it failed to load.
To solve this problem, we set the GraphicType property in ReportBuilder to "AutoDetect" and program is working as intended.
Thank you,
Vinh,
Go to Top of Page

xequte

38943 Posts

Posted - Feb 09 2016 :  12:48:08  Show Profile  Reply
Thanks for the update, Vinh

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