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
Is your feature request related to a problem? Please describe.
There's currently no way to preview an asset type that isn't a video or image. This has come up when adding raw asset types. They aren't caught by the first condition in src/components/AssetPreview.tsx and so a preview is attempted with an img tag, but there are other resource_types available that won't preview properly with the default return value
(this particular asset is .doc type, but this happens with other formats like pdfs)
Describe the solution you'd like
Add another condition to render resource types other than images or videos, or allow the consumer to define their own preview config
Describe alternatives you've considered
I'm considering recreating the cloudinary asset schema type for the instances where files or other raw assets types are often used, so that we can define our own preview config, but this is not an ideal solution
The text was updated successfully, but these errors were encountered:
It would be nice to be able to pass in/use a customized AssetPreview component that had access to the Cloudinary schema, so one could customize the preview with either text or perhaps a transformed version of the asset if it is a convertible but not tag supported image type.
Is your feature request related to a problem? Please describe.
There's currently no way to preview an asset type that isn't a video or image. This has come up when adding
raw
asset types. They aren't caught by the first condition insrc/components/AssetPreview.tsx
and so a preview is attempted with animg
tag, but there are other resource_types available that won't preview properly with the default return value(this particular asset is
.doc
type, but this happens with other formats like pdfs)Describe the solution you'd like
Add another condition to render resource types other than images or videos, or allow the consumer to define their own preview config
Describe alternatives you've considered
I'm considering recreating the cloudinary asset schema type for the instances where files or other raw assets types are often used, so that we can define our own preview config, but this is not an ideal solution
The text was updated successfully, but these errors were encountered: