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

Feat: Generating PNG/webP images #308

Open
tsnobip opened this issue Jun 14, 2024 · 2 comments
Open

Feat: Generating PNG/webP images #308

tsnobip opened this issue Jun 14, 2024 · 2 comments

Comments

@tsnobip
Copy link

tsnobip commented Jun 14, 2024

Feature description and goals

How come the only output format for raster images is jpeg? It's not meant to be used for (uncompressed) graphics and it's overall not great for small images.

It would make sense to rather generate PNG (or webP) previews of documents for example.

I have little experience with the matter so I'm all ears if I've overlooked something here.

Prerequisites

Well, I don't think we have to add anything since Magick already supports PNG and WebP, so I guess it's only a matter of adding the API.

@lebouquetin
Copy link
Member

Hello @tsnobip

You right: jpg is not always the best/most efficient image file format. The choice of JPG was because it was the most usable file format.

In a web context (this is the case for example for our software tracim) today the right choice would be webp.

Note: at the very beginning of preview-generator development jpg was the best average rendering.

I'm currently working on an extended version of preview generator which would also allow webp preview.

@tsnobip
Copy link
Author

tsnobip commented Jun 14, 2024

Thanks for your reply @lebouquetin.

I totally understand the situation was different back then, but today indeed WebP seems like the right format for the web.

I'm very interested in such a feature, regarding the timeline are we talking about weeks or more of a long term goal? I could totally contribute to this project if you're open to publish the work in progress.

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

2 participants