Skip to content

Commit

Permalink
BUGFIX: Apply presets correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mficzel committed Jul 13, 2018
1 parent 6343116 commit 2409b6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Classes/EelHelpers/AbstractImageSourceHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function applyPreset(string $name) : ImageSourceHelperInterface
}
}
}
return $this;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ but can also applied on the returned object. This will override the fusion-setti

All ImageSources support the following fusion properties:

- `preset`: Apply a configuration preset (default null, settings below override the preset)
- `preset`: Set width and/or height via named-preset from Settings `Neos.Media.thumbnailPresets` (default null, settings below override the preset)
- `width`: Set the intended width (default null)
- `height`: Set the intended height (default null)

Expand Down Expand Up @@ -218,7 +218,7 @@ dimensions and to render the `src` and `srcset`-attributes.

Methods of ImageSource-Helpers that are accessible via EEL:

- `applyPreset( string )`: Apply width and height from a thumbnailPreset identified by its name
- `applyPreset( string )`: Set width and/or height via named-preset from Settings `Neos.Media.thumbnailPresets`
- `setWidth( integer )`: Set the intend width
- `setHeight( integer )`: Set the intended height
- `src ()` : Render a src attribute for the given ImageSource-object
Expand Down

0 comments on commit 2409b6b

Please sign in to comment.