Bug 4829 - [PATCH] Support EPS image format (via pdf_viewer)
Summary: [PATCH] Support EPS image format (via pdf_viewer)
Status: NEW
Alias: None
Product: Claws Mail
Classification: Unclassified
Component: UI/Message View (show other bugs)
Version: GIT
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2024-09-28 05:39 UTC by Konstantin Tokarev
Modified: 2024-09-28 05:42 UTC (History)
0 users

See Also:


Attachments
Proposed patch (4.16 KB, patch)
2024-09-28 05:39 UTC, Konstantin Tokarev
Details | Diff
Example EPS file (455.61 KB, image/x-eps)
2024-09-28 05:42 UTC, Konstantin Tokarev
Details

Description Konstantin Tokarev 2024-09-28 05:39:00 UTC
Created attachment 2510 [details]
Proposed patch

EPS is the most common free vector image format in scientific publishing. Not coincidentally, it's also a native image format of LaTeX, and it's commonly used as an intermediate format where all kinds of images are converted (including raster ones, like JPEG and PNG). Hence we often need to send EPS images via e-mail, and ability to view them directly in MUA comes in really handy,

Here, I extend existing pdf_viewer plugin to support EPS in the very same way as a regular PostScript is processed. However, image_viewer plugin grabs all image MIME types for itself, so it needs to be worked around somehow.

Also, it would be better if EPS behaved more like image types handled by GDK, i.e. displayed inline and opened without PDF UI panel. However, there seems to be no support for EPS in GDK for now.
Comment 1 Konstantin Tokarev 2024-09-28 05:42:41 UTC
Created attachment 2511 [details]
Example EPS file

Note You need to log in before you can comment on or make changes to this bug.