gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Image reset button issues after image is resized: images don't look the right size on the back end

Open abrightclearweb opened this issue 8 years ago • 6 comments

Describe the bug When an image is added and resized and then the Image Dimensions Reset button is pressed, the dimensions revert to their previous values, but the image does not look like the original size in the Gutenberg editor.

To Reproduce Steps to reproduce the behavior:

  1. Create a post.
  2. Add an image block.
  3. Use the image resize handles to resize the block from Full size.
  4. Use the Reset button under Image Dimensions to return it to the original size as shown in the Image Size dropdown.

Alternatively:

  1. Create a post.
  2. Add an image block.
  3. Change the image size using the Image Size dropdown to e.g. Medium and then select one of the % button sizes.
  4. Use the Reset button under Image Dimensions to return it to Medium size.

Expected behavior I would expect that the image would return to its original size in the block. While the image dimensions update back to what was originally chosen, the image does not look the correct size visually in the Gutenberg block. This is confusing.

If I preview or publish the post, images are the correct size on the front end.

Screenshots Some of the below images have had resizing but no resetting for comparison.

full size 1920 x 1280

reszed full and reset -1920 x 1280

resized full 406 x 270

resized full and reset - 1920 x 1280 2

resized medium - 150 x 100

resized medium reset - 300 x 200

The front end:

image sizing and reset

Desktop (please complete the following information):

  • OS: Windows 10 64-bit
  • Browser: Firefox Quantum
  • Version 61.0.2 (64-bit)

Additional context

  • Gutenberg 3.5.0

abrightclearweb avatar Aug 14 '18 11:08 abrightclearweb

Are you still experiencing this error with Gutenberg 4.1.0?

I tested on Chrome 69.0.3497.100 on Mac 10.13.6 and can't replicate so I'm wondering if the issue was fixed or if it's present only on Windows.

Video of what I found - http://cld.wthms.co/RSzhGM

davoraltman avatar Oct 24 '18 20:10 davoraltman

I'm still having issues. See this screencap:

reset image size

I'm using Firefox Quantum, 63.0.1, Windows 10 64-bit, Gutenberg 4.3.

abrightclearweb avatar Nov 15 '18 23:11 abrightclearweb

Just tested this and it's still happening.

youknowriad avatar Oct 02 '19 10:10 youknowriad

Testing

WordPress 5.7 beta 1 One active plugin - WordPress Beta Tester plugin. Theme: Twenty Twenty One local site Chrome OSX 10.15.7

Testing instructions:

  1. Create a post.
  2. Add an image block.
  3. Use the image resize handles to resize the block from Full size.
  4. Use the Reset button under Image Dimensions to return it to the original size as shown in the Image Size dropdown.

Made a new post. Added an Image block. Image size: Full Size. Dragged the image resize handles to resize the image. Clicked the Reset button to return to original size. (Does not work - I believe the Reset only affects the Image dimensions settings and not the resize handlebars.)

paaljoachim avatar Feb 10 '21 12:02 paaljoachim

I think I accidentally fixed this issue via #29919. The fix should be part of the Gutenberg 10.4 release.

Current testing screen recording:

https://user-images.githubusercontent.com/240569/120218506-e3ca8180-c24a-11eb-9e88-6a953563f760.mp4

Mamaduka avatar May 31 '21 16:05 Mamaduka

Great! We can then go ahead and close this issue.

paaljoachim avatar May 31 '21 17:05 paaljoachim