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

Format conversion #62

Closed
kleisauke opened this issue Feb 12, 2017 · 5 comments
Closed

Format conversion #62

kleisauke opened this issue Feb 12, 2017 · 5 comments
Assignees
Labels
completed Feature or request has been completed enhancement New feature or request
Milestone

Comments

@kleisauke
Copy link
Member

kleisauke commented Feb 12, 2017

Format conversion [5097964]

Submitted by Seb on 30-11-2013 0:00:00
1 votes on UserVoice prior to migration

As I strictly need progressive jpg images, without knowing input format, please add format conversion.
Parameter &of=png, default to input format if not set.
Please note I only need png2jpg.
Thank you and congrats for this wonderful service!

Response

by Andries Louw Wolthuizen on 8-12-2013 0:00:00

Added output=. Please help testing this feature.
Possible values:
&output=jpg
&output=png
&output=gif
If you specify none, it will keep the origin image format.
Commits: b29abf5 526a59c

Comments

Comment by Seb on 8-12-2013 17:25:00

Thx a lot!

Comment by Anonymous on 24-9-2015 16:59:00

What about output to webp?

Comment by Luuk Lamers on 10-8-2016 10:59:00

It would be nice if in the future WebP were added. Maybe with different headers for browsers that don't support it to fallback to jpg
something like
&output=webp-jpg
&output=webp-png

Original UserVoice Submission

@kleisauke kleisauke added the started This issue is being worked on label Feb 12, 2017
@kleisauke kleisauke added this to the v3.0.0 milestone Feb 12, 2017
This was referenced Feb 12, 2017
@andrieslouw andrieslouw added completed Feature or request has been completed and removed started This issue is being worked on labels Mar 28, 2017
@andrieslouw
Copy link
Member

See #68 for follow-up on WEBP output.

@andrieslouw andrieslouw added the enhancement New feature or request label Mar 28, 2017
@swordfox
Copy link

It would be good if it could server webp automatically if the request contains the header accept: image/webp

KeyCDN does it well:
https://www.keycdn.com/blog/webp-caching

Cheers

@raiyansarker
Copy link

Is there any update on respecting webp format if webp is present on accept header?

@kleisauke
Copy link
Member Author

Due to Cloudflare's caching it's technically impossible to change the output depending on the type browser. Please use the <picture>-tag as explained in #214.

@raiyansarker
Copy link

Ok, now I get it, as the cached request won't go to origin, unless you use worker. Thanks for the fast reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed Feature or request has been completed enhancement New feature or request
Development

No branches or pull requests

4 participants