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

Gutenberg: Image block: Can't insert large images at original size #29874

Closed
codebykat opened this issue Jan 2, 2019 · 3 comments
Closed

Gutenberg: Image block: Can't insert large images at original size #29874

codebykat opened this issue Jan 2, 2019 · 3 comments
Labels
[Goal] Gutenberg Working towards full integration with Gutenberg [Type] Bug

Comments

@codebykat
Copy link
Member

codebykat commented Jan 2, 2019

This is a strange one that doesn't seem to always happen. Might be related to #29367

Steps to reproduce

  1. In the wp-admin Gutenberg, add an image block.
  2. Select a large image from the libary (mine are 4000px wide).
  3. In the block options in the sidebar, observe that the maximum size is much less (seems to be 700px for me) -- update: this is based on the theme's declared width

What I expected

For the image size in the sidebar to allow me to set the image to the original size.

What happened instead

The width is limited to either 700px or 1024px.

Browser / OS version

Firefox / OSX. This is on a blog with the (old) theme Spun.

Screenshot / Video

Video in wp-admin: https://cloudup.com/coPQYrQivIV
Video in Gutenlypso: https://cloudup.com/cU9uh5kkex9

Screenshots:
screen shot 2019-01-02 at 2 46 55 pm
screen shot 2019-01-02 at 2 47 16 pm
screen shot 2019-01-02 at 2 48 52 pm
screen shot 2019-01-02 at 2 49 12 pm

Context / Source

#dogfooding for my photo blog

@codebykat
Copy link
Member Author

I am also able to manually set the size to the original size after inserting it, and that seems to stick.

@arunsathiya
Copy link
Contributor

Just a note that I was able to reproduce this on a free WordPress.com site with Twenty Nineteen theme.

Note: This happens only when choosing the image from the media library after adding an Image block.

The first image is from Gutenlypso and the second from Calypsoified Gutenberg on wp-admin.

screenshot 2019-01-03 at 13 35 54

screenshot 2019-01-03 at 13 35 56


This is not reproducible when I drag-drop image to editor, or add Image block and then drag-drop image.

The first image is from Gutenlypso and the second from Calypsoified Gutenberg on wp-admin.

screenshot 2019-01-03 at 13 32 29

screenshot 2019-01-03 at 13 32 31

@arunsathiya arunsathiya added [Type] Bug [Goal] Gutenberg Working towards full integration with Gutenberg labels Jan 3, 2019
@codebykat
Copy link
Member Author

Closing this out in favor of related core Gutenberg issues:

WordPress/gutenberg#11530
WordPress/gutenberg#12276

@codebykat codebykat changed the title Gutenlypso and Gutenberg: Image block: Can't insert large images at original size Gutenberg: Image block: Can't insert large images at original size Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Goal] Gutenberg Working towards full integration with Gutenberg [Type] Bug
Projects
None yet
Development

No branches or pull requests

2 participants