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

Image Size Parameter #147

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

PanisSupraOmnia
Copy link
Member

Summary

Closes #131.

This PR adds the ability to specify a size for the image returned for a variety of CDN endpoints. I also improved the Overcommit configuration since I happened to run into an issue with it while committing the changes for this PR; I realize these are unrelated changes so I can split them to a separate PR if you'd like.


Added

  • The size of image can now be requested for CDN-served images.

Fixed

  • Made Overcommit invoke RuboCop via Bundler, to ensure we are using the currently specified version.
  • Re-enabled Overcommit's AuthorName check because the original behavior of the check that prompted it to be disabled has been changed upstream; first and last name are no longer required, anything of non-zero length is sufficient.

@swarley
Copy link
Member

swarley commented Oct 9, 2022

I'm fine with size being a kwarg here, but for consistency's sake I wonder if we should keep it as an optional positional. I'd like some input

@swarley swarley added enhancement New feature or request need input Need input from other contributors hacktoberfest-accepted labels Oct 9, 2022
The RuboCop check should be invoked using bundler so that the correct
RuboCop version is used, otherwise we'll get unexpected results.
Also, We can re-enable the AuthorName check because the original
behavior of the check that prompted it to be disabled has been changed
upstream; first and last name are no longer required, anything of non-0
length is sufficient.
The basic image_url API methods now take a size param and I also added
it to the user-facing methods that currently expose the image format
parameter; this means there are some places where the size param is not
available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest-accepted need input Need input from other contributors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support size parameter for images
2 participants