Bug #79836

fluid f:image SVG processing

Added by David C. over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2017-02-15
Due date:
% Done:

100%

TYPO3 Version:
8
PHP Version:
7.0
Tags:
fluid
Complexity:
Is Regression:
Yes
Sprint Focus:
Stabilization Sprint

Description

Introduced in 8.6, when using SVG files with the f:image view-helper, frontend output is broken.
Seems like the SVG is tried to be processed.

Example frontend rendering:
8.5 >

<img src="/typo3conf/ext/myextension/Resource/Public/Images/image.svg" width="" height="" />

8.6 >
<img src="/typo3_temp/assets/_processed_/#/#/###.svg" width="" height="" />

fluid.png View (37.1 KB) Patrick Crausaz, 2017-02-15 21:20


Related issues

Related to TYPO3 Core - Story #75880: Add art direction capabilities to BE Closed 2017-02-23
Related to TYPO3 Core - Bug #79903: Processing of SVG, AI etc is broken Closed 2017-02-19

Associated revisions

Revision 19ff2d0f (diff)
Added by Frans Saris over 2 years ago

[BUGFIX] Only apply image cropping when cropping is set

Resolves: #79836
Releases: master
Change-Id: I29fb6f0f31a54b6f20c937881a8b523b844dde69
Reviewed-on: https://review.typo3.org/51749
Tested-by: TYPO3com <>
Reviewed-by: Wouter Wolters <>
Reviewed-by: Andreas Fernandez <>
Reviewed-by: Markus Klein <>
Tested-by: Markus Klein <>
Reviewed-by: Georg Ringer <>
Tested-by: Georg Ringer <>

History

#1 Updated by Georg Ringer over 2 years ago

  • Status changed from New to Needs Feedback

how to you render those images? using typoscript, fluid_styled_content, ... please add some code to reproduce that

#2 Updated by Patrick Crausaz over 2 years ago

He renders these images with the Fluid ViewHelper of fluid_styled_content in a Fluid template file. Like this:

<f:image image="{image}" />

#3 Updated by David C. over 2 years ago

Yes, images are rendered as mentioned in description:

<f:image src="EXT:my_ext/Resources/Public/Images/image.svg" />

#4 Updated by Frans Saris over 2 years ago

  • Status changed from Needs Feedback to Accepted

Breaks also when adding a SVG to a text-media CE. In 7.6 this works. And when cropped a .gif image is created

#5 Updated by Frans Saris over 2 years ago

  • Sprint Focus set to Stabilization Sprint

#6 Updated by Gerrit Code Review over 2 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51749

#7 Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51749

#8 Updated by Frans Saris over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#9 Updated by Riccardo De Contardi almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF