Skip to content

Commit

Permalink
Merge remote-tracking branch 'sulu/release/1.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
danrot committed Jan 9, 2019
2 parents 5369c6d + bfed878 commit d6edce8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions app/config/image-formats.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<formats xmlns="http://schemas.sulu.io/media/formats"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.sulu.io/media/formats http://schemas.sulu.io/media/formats-1.1.xsd">

<!-- See: http://docs.sulu.io/en/latest/book/image-formats.html how to define image-formats -->

<!-- Fixed width and dynamic height
<format key="300x">
<meta>
<title lang="en">Example Image</title>
<title lang="de">Beispielbild</title>
</meta>
<scale x="300"/>
</format>
-->

<!--
Render an image from the media_selection in a specific format the following way:
<img src="{{ image.thumbnails['300x'] }}" alt="{{ image.title }}" title="{{ image.description|default(image.title) }}">
-->
</formats>

0 comments on commit d6edce8

Please sign in to comment.