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

allow changing image derivative sizes via a config file #118

Open
2 tasks
thatbudakguy opened this issue Aug 31, 2020 · 0 comments
Open
2 tasks

allow changing image derivative sizes via a config file #118

thatbudakguy opened this issue Aug 31, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@thatbudakguy
Copy link
Collaborator

thatbudakguy commented Aug 31, 2020

Is your feature request related to a problem? Please describe.
the strategy for automatically generating image derivatives implemented in #117 hard-codes a particular set of image sizes (widths) to generate (500px, 800px, etc) so that the correct size can be used to fit the device. these sizes could be defined in a configuration file so that they're easier to edit later on. for earlier discussion, see #117 (comment).

Describe the solution you'd like

  • a data file is created in the theme folder or project root that defines the image sizes to generate for each image
  • image derivatives are automatically generated using these sizes when someone embeds an image using the figure shortcode on a markdown page

Additional context
see #117 for current image resizing implementation and #115 for example of reading values from a data file

@thatbudakguy thatbudakguy added the enhancement New feature or request label Aug 31, 2020
@thatbudakguy thatbudakguy added this to the Issue 2 milestone Sep 17, 2020
@thatbudakguy thatbudakguy removed this from the Issue 2 milestone Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant