- in IDE:
- open /modules/custom/units/widgets/widgets_config.php file for editing
- add *.svg to allowed file extensions in Image field declaration and save changes
- in Admin Console:
- go to Custom → Widgets section
- add 1 record with JPG file (square image with dimensions larger than 120x120) uploaded in Image field
- add 1 record with SVG file (square image with dimensions larger than 120x120) uploaded in Image field
- confirm, that for both records image thumbnail is shown and it's dimensions are 120x120
- open record with JPG file uploaded
- confirm, that thumbnail in Image field is displayed
- close record
- open record with SVG file uploaded
- confirm, that thumbnail in Image field isn't displayed (as if non-image was uploaded)
- close record
Details
Details
- Reviewers
erik - Commits
- rINP16556: Fixes INP-1656 - Emulate SVG file resize in "ImageHelper"
Diff Detail
Diff Detail
- Repository
- rINP In-Portal
- Branch
- /in-portal/branches/5.2.x
- Lint
Lint Errors Excuse: Not sure how to fix. Severity Location Code Message Error core/units/helpers/image_helper.php:116 PHPCS.E.Generic.Files.LineLength.MaxExceeded Generic.Files.LineLength.MaxExceeded - Unit
No Unit Test Coverage - Build Status
Buildable 615 Build 615: arc lint + arc unit