At least before we cannot handle image styles, we should display images as is.
It can be done by adding svg_image_preprocess_image_style() as it suggested in template_preprocess_image_style():

// Don't render the image by default, but allow other preprocess functions
// to override that if they need to.

Comments

kala4ek created an issue. See original summary.

kala4ek’s picture

Title: Handle image styles » Handle image styles [workaround]
Status: Active » Needs review
StatusFileSize
new804 bytes
kala4ek’s picture

A small update:
1. Added detailed comment to the preprocess
2. Also added special class "no-image-style" for SVG images, that allow to accurately apply styles.

markdc’s picture

Works. Looking forward to full implementation of Image Styles.

komlenic’s picture

Is there an issue created for supporting image styles, or is this the one to follow?

imyaro’s picture

Assigned: Unassigned » imyaro

  • zvse committed 8f8d277 on 8.x-1.x authored by kala4ek
    Issue #3014141 by kala4ek, zvse: Handle image styles [workaround]
    
imyaro’s picture

Status: Needs review » Fixed

Thanks for patch, commited in dev.

Status: Fixed » Closed (fixed)

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