Skip to content

ImageField image preview on forms? #5410

@quentint

Description

@quentint

Short description of what this feature will allow to do:

Add an option to display an image preview to the ImageField. Maybe passing a view (Twig) that would receive the entity/instance?

Example of how to use this feature

Here's a theoretical implementation:

ImageField::new('thumbnailName')->setPreviewTemplatePath('admin/media/thumbnail-preview.html.twig')

This view would be prepended or appended to the current file uploader.
I would have loved to propose a PR for such a request, but I currently don't understand how it would be possible.

Any help would be appreciated 😉

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions