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

PeterPanino

926 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?

xequte

38531 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

926 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
   Topic Next Topic  
 New Topic  Reply to Topic
Jump To: