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

Use generated thumbnail image instead of original image file #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zekefarwell
Copy link

This PR modifies the image url used in the product grid to be a generated file resized to the dimensions of the config settings (enhancedgrid/images/width and enhancedgrid/images/height). This helps thumbnails load much more quickly if the originals are large. It also constrains thumbnails to a square helping to maintain the grid layout when non-square images get uploaded as shown in the screenshots below.

Before:
screen shot 2019-02-15 at 5 13 03 pm

After:
screen shot 2019-02-15 at 5 12 52 pm

rjocoleman added a commit to icecubenz-open-mage/enhancedgrid that referenced this pull request Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant