Skip to content

[Gutenberg] Fix guten-gallery image size.#13042

Merged
etoledom merged 1 commit intodevelopfrom
gutenberg/image-sizes-fix-for-gallery-block
Dec 6, 2019
Merged

[Gutenberg] Fix guten-gallery image size.#13042
etoledom merged 1 commit intodevelopfrom
gutenberg/image-sizes-fix-for-gallery-block

Conversation

@etoledom
Copy link
Copy Markdown
Contributor

@etoledom etoledom commented Dec 5, 2019

This PR fixes an issue with gallery blocks, where the image downloaded is of a noticeable lower quality than the expected:

Expected:
image

Actual result:
image

To test:

  • Test the gallery block, adding 3 images.
  • Check that the 3rd image has good quality.
  • Add an image block with an image in a WPCom site.
  • Set the image size to Thumb
  • Check that the image size changes and looks smaller.

PR submission checklist:

  • I have considered adding unit tests where possible.

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@peril-wordpress-mobile
Copy link
Copy Markdown

You can trigger an installable build for these changes by visiting CircleCI here.

@etoledom etoledom added this to the 13.9 milestone Dec 5, 2019
@etoledom etoledom added the Gutenberg Editing and display of Gutenberg blocks. label Dec 5, 2019
Copy link
Copy Markdown
Contributor

@pinarol pinarol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fixing the low resolution image issue on Gallery bock
I also tested size options on Image block and they work as expected.

Screen Shot 2019-12-06 at 19 36 18

Image caching is also improved by including the size into cache key.

We can :shipit: after adding some description

Thanks @etoledom for the fix!

@etoledom etoledom marked this pull request as ready for review December 6, 2019 17:14
@etoledom etoledom merged commit 042e124 into develop Dec 6, 2019
@etoledom etoledom deleted the gutenberg/image-sizes-fix-for-gallery-block branch December 6, 2019 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Gutenberg Editing and display of Gutenberg blocks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants