[MGNLUI-2905] DefaultImageProvider is difficult to extend to provide support for additional types of preview Created: 19/May/14  Updated: 16/Nov/15  Resolved: 19/May/14

Status: Closed
Project: Magnolia UI
Component/s: image provider
Affects Version/s: 5.0
Fix Version/s: 5.3

Type: Improvement Priority: Neutral
Reporter: Jan Haderka Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLUI-3656 Broken API in DefaultImageProvider cl... Closed
dependency
is depended upon by MGNLDAM-371 Move PDF and video preview from inter... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

To fix the issue it is enough to change following methods from private to protected.

    private String getGeneratorImagePath(String workspace, Node node, String generator) {}
    private boolean isImage(String mimeType) {}

Generated at Mon Feb 12 09:01:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.