nocodb icon indicating copy to clipboard operation
nocodb copied to clipboard

Feature Request: If column value is HTTP, try show an preview of it. This can be image / website.

Open flobaader opened this issue 3 years ago • 6 comments

Hi,

we currently have a Postgres DB that stores let's say a product image as a plain URL in a text column. NocoDB stores attachments in a JSON array (with url, mimetype and size), so our images are not displayed nor can be used for the gallery view.

Is there any way to support that kind of image definition or do we have to migrate all the URLs to your JSON format?

Are the size and mime type parameters important or could we potentially leave them out?

Cheers!

flobaader avatar May 29 '21 19:05 flobaader

mime is not so important but it's using to show the thumbnail based on file type

pranavcbalan avatar May 30 '21 06:05 pranavcbalan

@o1lab has this issue been resolved or is it not important?

flobaader avatar Jun 12 '21 08:06 flobaader

hey @flobaader : making images/files support multiple internal formats (read json) is not something that we would like to do.

Having said that, I rethought about this - we can do something like this.

If there is an HTTP url within text, we can fetch preview of it. That should be good.

Thanks for the checking back, I will edit the title of the issue.

o1lab avatar Jun 12 '21 10:06 o1lab

Sounds nice, thank you for the effort! It would be especially cool if this would support different kinds of images like svgs, pngs and so on.

flobaader avatar Jun 12 '21 13:06 flobaader

Any news on the img preview ?

oolonek avatar Jun 19 '22 06:06 oolonek

This would be really great to generate thumb's on the fly from hard links to jpg/mp4 +1

benborges avatar Nov 27 '22 17:11 benborges

Any updates on when this would be available ?

roshan1988 avatar Feb 23 '23 12:02 roshan1988

@o1lab Is this issue still up?

frankMagoba avatar May 02 '23 10:05 frankMagoba

If you mean, you wanted to pick this up ? Pls look at others as this can involve lot of changes and not our top priority at the moment

o1lab avatar May 02 '23 10:05 o1lab

If you mean, you wanted to pick this up ? Pls look at others as this can involve lot of changes and not our top priority at the moment

Okay noted.

frankMagoba avatar May 02 '23 10:05 frankMagoba

Can I work on this? @o1lab ~If I'm right, I should update the urlUtils~ Nvm got it

DarkPhoenix2704 avatar May 17 '23 05:05 DarkPhoenix2704