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
 TImageEnMView: Browse SVG images from ZIP?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

933 Posts

Posted - Oct 19 2024 :  12:23:27  Show Profile  Reply
I need to browse SVG images from a ZIP folder.

I have tried the ZipBrowser demo in: \Demos\Other\ZipBrowser

It can browse the image files from a ZIP archive if they are normal pixel images, such as PNG.

Unfortunately, it cannot display the SVG images in a ZIP archive.

Is this a general problem, or is there a workaround?

v13.6.0

xequte

38609 Posts

Posted - Oct 19 2024 :  17:20:28  Show Profile  Reply
Hi Peter

I'll need to investigate that. I assume you mean using native SVG support, rather than the ImageMagick DLLs?


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

PeterPanino

933 Posts

Posted - Oct 21 2024 :  07:46:06  Show Profile  Reply
Yes, I mean using native SVG support. This should be working very well in ImageEnView by now.

Is TImageEnFolderMView or ImageEnMView able to display SVG images? If so, I could extract the SVG images from the ZIP archive myself and insert them into ImageEnMView.

UPDATE: TImageEnFolderMView can show SVG images from a folder if Vcl.Skia is added to the uses clause, and Skia is ENABLED in Project Options (in the Project Manager).

UPDATE 2: Heureka! The same applies to the ZIP-BROWSER:



UPDATE 3: It loaded 1,426 (!) SVG files from a ZIP file in less than one second (due to LoadOnDemand):

ImageEnMView1.FillFromZip(
ZipFilename,
ZipPath,
iefAllFiles,
'',
True); // Load on demand

UPDATE 4: I improved the ZIP-BROWSER demo with a Search capability, as 1,426 files need searching:

procedure TForm1.LabeledEditSearchChange(Sender: TObject);
var
  ThisSearchTerm: string;
begin
  ThisSearchTerm := Trim(LabeledEditSearch.Text);
  ImageEnMView1.Filter := '*' + ThisSearchTerm + '*';
end;


The search speed is impressive because it is practically immediate.

SUGGESTION: Please add a simple property (e.g., OleDragAllowed) to TImagenMView that, when set to True, allows dragging an image from ImageEnMView to Windows File Explorer. This would be very helpful. Thank you!
Go to Top of Page

xequte

38609 Posts

Posted - Oct 22 2024 :  18:00:58  Show Profile  Reply
Hi Peter

TImageEnFolderMView allows dragging to file Explorer. It is not possible in TImageEnMView at this time, because often the content exists in memory only (without a physical file), but we'll look into it.

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

PeterPanino

933 Posts

Posted - Oct 24 2024 :  10:56:25  Show Profile  Reply
Hi Nigel,

I have solved the problem:



I will publish the source code soon, as I am continuously adding new features to it (I am addicted to programming).
Go to Top of Page

xequte

38609 Posts

Posted - Oct 24 2024 :  18:30:57  Show Profile  Reply
Nice one, Peter

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

xequte

38609 Posts

Posted - Nov 03 2024 :  22:10:22  Show Profile  Reply
Hi Peter

I'm not able to reproduce this. SVG images in a zip load fine for me natively. Can you email me your test zip?

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