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
 Error in loading SVG file (13.5)
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

perauto

Italy
9 Posts

Posted - Sep 03 2024 :  04:19:04  Show Profile  Reply
Loading the svg file in attachment gives error with ImageEn 13.5 and Delphi 11.3.

xequte

38529 Posts

Posted - Sep 03 2024 :  15:16:23  Show Profile  Reply
Hi

Please email me for the latest beta which has many SVG improvements. It loads correctly with the native SVG loading, but there are too many tags to import it all as layers.

You can try increasing the maximum tag count:

http://www.imageen.com/help/TIEGlobalSettings.SVGParams.html

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

perauto

Italy
9 Posts

Posted - Sep 04 2024 :  06:27:46  Show Profile  Reply
with the latest beta it loads the svg without problems, but it doesn't draw it well. You can't recognize the drawing and it's very slow.




Go to Top of Page

xequte

38529 Posts

Posted - Sep 04 2024 :  16:19:22  Show Profile  Reply
Hi

It definitely won't be quick, our native code is intended for importing rather than rendering and it not significantly optimized at this time.

If you are looking for rendering you are better to use the ImageMagick plug-in from our download page (or turn on Skia in Delphi 12).

However it should still display correctly. Can you show me your loading code?



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

perauto

Italy
9 Posts

Posted - Sep 05 2024 :  02:36:58  Show Profile  Reply
// Prevent downloading of web based files
IEGlobalSettings().SVGParams.AllowWebDownload := False;

// Allow more complex SVG files to be imported (may overwhelm application)
IEGlobalSettings().SVGParams.MaxTagCount   := 15000;
IEGlobalSettings().SVGParams.MaxPointCount := 10000;
IEGlobalSettings().SVGParams.MaxLayerSize  := 20000;

ImageEnView1.IO.ImportFromFileSVG( 'C:\SORGENTI\TriaTel\ViewSVG\Win32\Debug\0050718.svg' );

Go to Top of Page

perauto

Italy
9 Posts

Posted - Sep 05 2024 :  02:49:27  Show Profile  Reply
I have downloaded the ImageMagick Plug-In and unzipped, copied from Demo EXE the file ImageMagik in Binaries 32bit\Core_Files and executed; but i have "32 bit plugin not found".
I have made the same with Binary 64bit with the same message.
What i'm mistaking?
Go to Top of Page

perauto

Italy
9 Posts

Posted - Sep 05 2024 :  10:49:51  Show Profile  Reply
with ImageMagik the svg is good, but the image is raster not vectorial!
But importing the svg with the previus code result in an incomprensible image
Go to Top of Page

xequte

38529 Posts

Posted - Sep 05 2024 :  16:13:47  Show Profile  Reply
Hi

You are importing layers above, rather than rendering (much more memory intensive process). Can you tell me more about your usage here, so I can recommend the best solution (e.g. layer editing and exporting, display of SVG, etc)?



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

perauto

Italy
9 Posts

Posted - Sep 06 2024 :  08:25:08  Show Profile  Reply
I need to display the svg, and change fill color to some nodes (layers). To display svg imagemagik is fine but i cannot edit the layers/nodes.
Go to Top of Page

xequte

38529 Posts

Posted - Sep 07 2024 :  00:33:02  Show Profile  Reply
Hmmm, using ImportFromFileSVG() works fine for me in the latest beta.

Can you try testing it in a new empty project (e.g. with only a TImageEnView and a button).



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