Apple Intelligence is now available on iPhone, iPad, and Mac!

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Preview in Ventura no longer opens .eps files

Just upgraded from Monterey to Ventura, to try and fix some bugs.


Imagine my surprise to find Preview will not open .eps files.


Does anyone have any background knowledge to WHY Apple did this or any work arounds?


It is a major part of my workflow to use Preview to convert .eps files to make extremely small and efficient .pdf files that are previewable in Finder.


Apple stopped previewing .eps files in Finder a couple of OSes ago. Yet another downgrade.

MacBook Pro 14″, macOS 13.1

Posted on Dec 20, 2022 11:09 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 21, 2022 8:01 AM

Also pstopdf seems to work


The UNIX command pstopdf is available in … - Apple Community


This page's discussion has also a link to EPSView.


"The company did not offer a reason why, although it’s not inconceivable that it was for security reasons. In 2017, Microsoft turned off support for EPS in the Windows versions of Office apps due to vulnerabilities in the EPS format."


https://tidbits.com/2022/10/27/preview-in-ventura-drops-support-for-postscript-and-encapsulated-postscript-files/


29 replies
Question marked as Top-ranking reply

Dec 21, 2022 8:01 AM in response to PeterBreis0807

Also pstopdf seems to work


The UNIX command pstopdf is available in … - Apple Community


This page's discussion has also a link to EPSView.


"The company did not offer a reason why, although it’s not inconceivable that it was for security reasons. In 2017, Microsoft turned off support for EPS in the Windows versions of Office apps due to vulnerabilities in the EPS format."


https://tidbits.com/2022/10/27/preview-in-ventura-drops-support-for-postscript-and-encapsulated-postscript-files/


Dec 21, 2022 1:05 PM in response to Luis Sequeira1

Luis Sequeira1 wrote:

Concerning SVG: Pixelmator Pro can open and can export in this format.
I took the pdf produced from Matti's eps, opened it in Pixelmator Pro (where, again, it clearly shows it's transparent), exported to SVG and out it came, it all worked correctly.

Are you sure about that?


I have Pixelmator Pro and I use it all the time for raster data. It seems to be able to read SVG well enough. But it's conversion to SVG seems to need a little help from...


<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by Pixelmator Pro 3.0.1 -->
<svg width="583" height="575" viewBox="0 0 583 575" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <image id="Image-Layer" x="7" y="7" width="571" height="562" xlink:href="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAjsAAAIyCAYAAAAt2QuTAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACO6ADAAQAAAAB


a PNG decoder! 😄


So far, the only tool I've found that is really able to handle vector PDF is Graphic. It is Intel-only and appears to be abandoned, but is still available in the Mac App Store: https://apps.apple.com/ca/app/graphic/id404705039?mt=12

Dec 21, 2022 4:44 PM in response to PeterBreis0807

Don't know why I am getting variable results.


I have now done thorough tests. I created an eps file with no background in Adobe Illustrator and exported it as:

  1. .ai file
  2. .eps file
  3. .pdf file


I then opened the .eps file in Skim:

4. Saved as .pdf file

5. Exported as .pdf


I then dragged them all into Pages and overlaid them on a coloured shape.



Curiously Preview will open and convert an .ai file to .pdf just like it always has but it will not open or even see a .eps file.


An .ai file without .pdf compatibility will open in both Preview and Pages but has the "Save as PDF Compatible" message instead of the image.


Pages however will let you drag in .ai (keeps as .ai), .eps (converts to .pdf) and .pdf as it always has.

Dec 21, 2022 6:50 AM in response to dialabrain

I reached out to the developers of Skim. This was their response:


Skim is in the end a viewer for PDF, we just also provide a facility to view postscript, including eps, as PDF. It is not interpreted as an image format, Skim is not an image viewer. And this always draws on a white page brackground. BTW, that is a display fact, that we cannot even change (Apple's PDFKit draws the background and allows no customization). BTW, even PDF does not have a page background from itself. it is just always drawn by viewers. That is not a bug, it is the way it is drawn.

Dec 21, 2022 7:09 AM in response to PeterBreis0807

PeterBreis0807 wrote:

Does anyone have any background knowledge to WHY Apple did this or any work arounds?

Why? Apple regularly deprecates old technologies that it doesn't want to deal with anymore.


The only workaround is to download some 3rd party app that can open these files.

It is a major part of my workflow to use Preview to convert .eps files to make extremely small and efficient .pdf files that are previewable in Finder.

You can still use the "sips" command line tool for this. I'm pretty sure that all of the functionality in sips is available in AppleScript via the "Image Events" dictionary.

Apple stopped previewing .eps files in Finder a couple of OSes ago. Yet another downgrade.

I wrote a little quick-n-dirty preview tool for eps files. You'll have to e-mail me to get it as I can't post links to my own products. I also wrote a more extensive tool to restore the PS and EPS functionality that was removed from Preview. I haven't made that tool publicly available. I can't find any way to monetize it and PS is way too annoying and unpopular to bother trying to start dealing with it now.

Dec 21, 2022 10:59 AM in response to VikingOSX

VikingOSX wrote:

The Skim application uses Apple's pstopdf tool when one chooses to export an eps to PDF. Whether the processes rasterizes, or retains a vector image in the PDF is not clear.


At the least in the case of the eps file that Matti posted, I can tell you that the pdf resulting from it is vectorial.


I was able to place it in Motion, turn off "fixed resolution" and scale it perfectly to over 3000%


EDIT: I went over 8000% and it scaled perfectly.

Dec 21, 2022 11:53 AM in response to Luis Sequeira1

Luis Sequeira1 wrote:

At the least in the case of the eps file that Matti posted, I can tell you that the pdf resulting from it is vectorial.

I wasn't able to catch the link before it was moderated away.


But this was interesting so I poked around a bit more. I think the problem stems from how Apple's default frameworks display PDF data. PDF is inherently a page-based format. Therefore, it is either always transparent, or never transparent, depending on how you look at it. But the idea is that a PDF is always rectangular and the page is always white, so that is how it is displayed.


Postscript clip art is almost never rectangular. When one views it in a rectangular window, it looks transparent. But this is just how it appears. This is fundamentally different from the transparency in a raster format PNG or GIF. Raster formats implement transparency with transparent pixels. In a PDF, in most cases, there simply isn't any object there. It might still be possible to have objects with transparent colour. You might see that in the form of a gradient perhaps.


There are several different ways to handle either a Postscript or PDF file internally. In my EPSView app, I use what is probably the simplest method. I just read an EPS URL into an NSImage and display that image using and NSImageView. It displays the EPS without any white background.


In my more recent PSOpen app for Ventura, I was trying to find a way to monetize it rather than just displaying the image. I was hoping to be able to convert PS/EPS into SVG, but that's way too difficult. But in this app, I used a PDFView instead. I think my idea was to be able to automatically convert these PS/EPS files into PDF. But the PDFView always draws with a white background.


It seems reasonable that any app using a PDFView is going to display the PDF with a white background. I can confirm that this does not apply a white background to the PDF. It just looks that way. But this means that most apps are going to display a PDF with a white background. However, it can be tricky to find an app that will open a PDF in such a way as to show you that that background isn't actually there.


If anyone wants to use it, I will re-do the PSOpen app to use NSImage in a way to show the transparency. Just e-mail me. I should still be able to save as PDF using a different technique. Converting from one vector format to another vector format like SVG is a whole different problem. What everyone is doing with PS/EPS/PDF is leveraging Apple's existing logic to render these three, very similar formats using macOS's built-in logic derived from NeXTSTEP's Display Postscript. Even Apple hasn't made its internal SVG frameworks available. I've found some good frameworks to read and display SVG, but converting is a whole different problem. Of course, it is technically possible. But the effort required is more than any potential return, unless someone could convince me otherwise.

Preview in Ventura no longer opens .eps files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.