Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FeatureRequest] Any plan to support vector image files preview? Such as emf, wmf, svg... #385

Closed
WalterMa opened this issue Oct 8, 2018 · 11 comments
Milestone

Comments

@WalterMa
Copy link

WalterMa commented Oct 8, 2018

Want to to do we have any plan to support vector images?
For example, emf, svg, wmf and eps.

Currently when preview emf, it shows like:
image

Additional Information
I'm not fammilar with development of windows appliction. But I tried to search related posts on Google (Hope these will be useful):
For emf and wmf:
How to: Load and Display Metafiles
For svg:
SVG.NET
For eps and ai:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/a28b4305-7f58-48ad-ad63-03fce656fb93/cwpf-viewing-and-eps-ai-vector-looking-for-tutorial-examples-api?forum=wpf

@WalterMa
Copy link
Author

WalterMa commented Oct 8, 2018

Alternate Solution
Found two extension for Windows File Manager:
https://github.com/maphew/svg-explorer-extension
https://github.com/kareldonk/WMFPreview

A new and much powerful exploer extension:
https://www.cherubicsoft.com/en/projects/sagethumbs

@WalterMa
Copy link
Author

WalterMa commented Oct 8, 2018

Update:
Related Issues: #336

  1. NConvert (used for image preview now) does support eps, emf, wmf...
    https://www.xnview.com/en/nconvert/#formats
  2. There has a GFL sdk also supports these formats.
    https://www.xnview.com/en/GFL/index.php
    Moreover, found a c# wrapper for this sdk: https://newsgroup.xnview.com/viewtopic.php?f=4&t=33986&sid=62e852aa1f50633c2845221050ce4eaa
  3. Actually, GFLSDK, Nconvert, XnView, ... use same library.
    According to their author

@xupefei
Copy link
Member

xupefei commented Oct 8, 2018

For .ai, I am afraid the link you provided is a plugin for Adobe Illustrator, it just allows Adobe Illustrator to save a file into .xaml.

For .eps, it can be converted into PDF first.

Let me test NConvert for emf and wmf.

@xupefei xupefei added this to the 0.3.7 milestone Oct 8, 2018
@JacobDB
Copy link

JacobDB commented Mar 11, 2019

Any status update on this?

@StefanKrapf
Copy link

I would like to have previews of EPS files too. SVG and the other vector formats would be even nice. Thanks a lot for considering to integrate it.

@rabelux
Copy link
Member

rabelux commented Aug 21, 2019

@xupefei did you get to try emf files with nconvert? I don't know if my thinking is too narrow here but if formats are supported by NConvert (see NConvert/docs/Formats.txt) shouldn't it be possible to just add them to the format-list in QuickLook.Plugin.ImageViewer/Plugin.cs?
Here is a sample file if you need one, rename it to .emf first

@rabelux
Copy link
Member

rabelux commented May 4, 2020

@xupefei may I remind you of my last unanswered question?

@xupefei
Copy link
Member

xupefei commented May 5, 2020

Sorry for not answering your question.

I just switched the ImageViewer from NConvert to ImageMagick in the latest Nightly. ImageMagic might be able to handle all formats the OP mentioned (haven't tried).

Yes, just add it to the format list is enough.

@rabelux
Copy link
Member

rabelux commented May 5, 2020

No problem, thx for replying now ;)
Maybe to be of some form of help, I looked up which of the requested formats are supported by imagemagick und what notes they mention on https://imagemagick.org/script/formats.php

file extension notes from imagemagick
emf Only available under Microsoft Windows. Use -size command line option to specify the maximum width and height.
eps Requires Ghostscript to read
wmf Requires libwmf. By default, renders WMF files using the dimensions specified by the metafile header. Use the -density option to adjust the output resolution, and thereby adjust the output size. The default output resolution is 72DPI so -density 144 results in an image twice as large as the default. Use -background color to specify the WMF background color (default white) or -texture filename to specify a background texture image.

@xupefei
Copy link
Member

xupefei commented May 9, 2020

EPS plugin is now available: https://github.com/QL-Win/QuickLook/wiki/Available-Plugins

Enjoy :)

@xupefei xupefei closed this as completed May 9, 2020
@rabelux
Copy link
Member

rabelux commented May 14, 2020

Thanks a lot!!!! 🎉
Have really been looking forward to emf-support for almost 2 years 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants