You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote this up in detail over at WordPress/gutenberg#19077. WordPress can show icons (for other file types) or preview images (for PDFs on sites with Imagick) using wp_get_attachment_image( $attachment_id, $size, $icon, $attr) and it would be great to be able to do this with the file block.
I would envision this as a vertically stacked layout:
Image or Icon
Text Link
Download Button
And you'd probably want it to have alignment (does it now?) so you could float it next to a block of text or another file. (Ideally I'd like to be able to create a document gallery, but that's presumably outside the scope of enhancing the file block.)
The text was updated successfully, but these errors were encountered:
wpfangirl
changed the title
Feature Request: Show previw image in file block
Feature Request: Show preview image in file block
Dec 12, 2019
@wpfangirl Seems like core devs will be working on this feature. I'm following the discussion and if ever core devs decided to not include this feature then I'll add it on EditorsKit. Thanks a lot!
I wrote this up in detail over at WordPress/gutenberg#19077. WordPress can show icons (for other file types) or preview images (for PDFs on sites with Imagick) using
wp_get_attachment_image( $attachment_id, $size, $icon, $attr)
and it would be great to be able to do this with the file block.I would envision this as a vertically stacked layout:
Image or Icon
Text Link
Download Button
And you'd probably want it to have alignment (does it now?) so you could float it next to a block of text or another file. (Ideally I'd like to be able to create a document gallery, but that's presumably outside the scope of enhancing the file block.)
The text was updated successfully, but these errors were encountered: