-
Notifications
You must be signed in to change notification settings - Fork 10
Add support for image optimization #198
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
Conversation
3180d65
to
9b07972
Compare
8d78f80
to
a094f59
Compare
a094f59
to
246da3c
Compare
PTAL. Squashed and ready to merge. Docs copied from the Rust SDK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, FWIW, url.Values.Encode does sort by key.
fsthttp/imageopto/imageopto.go
Outdated
return nil | ||
} | ||
|
||
var rePixelsOrPercentage = regexp.MustCompile("^[0-9]+(.[0-9]+)?p?$") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var rePixelsOrPercentage = regexp.MustCompile("^[0-9]+(.[0-9]+)?p?$") | |
var rePixelsOrPercentage = regexp.MustCompile("^[0-9]+(\.[0-9]+)?p?$") |
// RequestID is the current Fastly request ID | ||
RequestID string | ||
|
||
ImageOptimizerOpts *imageopto.Opts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it may make sense to name this ImageOptimizerOptions
? I ask because this struct already has CacheOptions
and DecompressResponseOptions
.
The Rust SDK uses ImageOptimizerOptions
, and that was also what it was named in the rough design doc we shared.
No description provided.