Add support for image sizes/styles
Image sizes

CommentFileSizeAuthor
image-sizes.png5.7 KBmarcofernandes

Comments

marcofernandes created an issue. See original summary.

marcofernandes’s picture

Status: Active » Fixed
marcofernandes’s picture

We can’t have image sizes yet on Drupal Gutenberg because when using <img> data-* attributes, Drupal will ignore the `src` attribute and override it with current file entity original url when rendering the content.
this is about to change: https://www.drupal.org/project/drupal/issues/2061377
so I guess we need to wait for it.

  • marcofernandes committed a22d2b5 on 8.x-1.x
    Issue #3035313: Add support for image sizes (again). Disable "Track...
marcofernandes’s picture

Well, actually we can have image sizes but we need to disable "Track images uploaded..." filter.
Since Drupal doesn't have a UI to edit the sources of a File entity, I think we're going to be ok.
Still we need to keep an eye on the core's issue about supporting image styles/sizes on the editor.

marcofernandes’s picture

Status: Postponed » Fixed

Now we have data-* attributes on <img> tag and with that image styles support.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.