ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TImageEnMView: Browse SVG images from ZIP?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
PeterPanino Posted - Oct 19 2024 : 12:23:27
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
6   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 03 2024 : 22:10:22
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
xequte Posted - Oct 24 2024 : 18:30:57
Nice one, Peter

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Oct 24 2024 : 10:56:25
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).
xequte Posted - Oct 22 2024 : 18:00:58
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
PeterPanino Posted - Oct 21 2024 : 07:46:06
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!
xequte Posted - Oct 19 2024 : 17:20:28
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