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

Support EPS files #1270

Open
dbackeus opened this issue Apr 10, 2024 · 1 comment
Open

Support EPS files #1270

dbackeus opened this issue Apr 10, 2024 · 1 comment

Comments

@dbackeus
Copy link

dbackeus commented Apr 10, 2024

Pro user here.

We just realized that imgproxy doesn't appear to support EPS files.

It is my understanding that libvips supports it.

Is there a reason it's not supported? Could support be added?

@dbackeus dbackeus changed the title No EPS support? Support EPS files Apr 10, 2024
@DarthSim
Copy link
Member

Hey @dbackeus!

Libvips supports loading EPS with ImageMagick. We did a lot of work to get rid of IM and I really don't want to bring it back:

IM is a large attack surface. More specifically, libvips have to decode the whole image with IM even to parse its header. This is a huge drawback when working with vector formats. When imgproxy loads vector formats, it first reads the image dimension and then decodes the image to the requested size to reduce memory usage and protect itself from image bombs (images with huge sizes). If an image is fully decoded right away, we're in danger.

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

No branches or pull requests

2 participants