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
At the moment when you create a link to an image saved inside Nextcloud Files, Tables creates a very small preview image of that file (actually, this worked some time ago, has been gone and now should work again when #1393 is accepted).
Looking at the code I think this value at the moment is hardcoded to 25x25px.
My idea would be to let the user choose how big this preview should be. This would give us the chance to use Tables for example for:
some sort of inventory with a preview of the item (workshop tools, borrowed things)
create a todo list where people can add a picture of something to do (for example a photo of a defective asset)
a list of members of a club with their photo beside
Although it would be even greater to be able to upload new images directly from the input form (like already requested in the "additional columns" discussion) I would expect that having bigger previews of linked images would already be an enhancement.
As I'm new to this I asked myself if enhancing Tables to let the user choose the preview size would be very difficult?
Some of the points that would be needed and that came into my mind are:
Some kind of preference dialog where a user could set the preview size of the images. Maybe this should be settable for every table because the users sometimes would need bigger images in one table and just small ones in an other.
The possibility to save this preference inside the database beside the other values like name of the table.
Remove (or adapt) the preview link that at the moment is saved to the database when an image is linked in a column: at the moment every link inside thumbnailUrl is saved with an url like index.php/core/preview?fileId=123456&x=32&y=32 and therefore when setting Tables to show a bigger preview should use an other preview format (like x=128&y128).
Is there someone who could give me some more input / ideas and some hints how to get such a thing done? 🙂
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
At the moment when you create a link to an image saved inside Nextcloud Files, Tables creates a very small preview image of that file (actually, this worked some time ago, has been gone and now should work again when #1393 is accepted).
Looking at the code I think this value at the moment is hardcoded to 25x25px.
My idea would be to let the user choose how big this preview should be. This would give us the chance to use Tables for example for:
Although it would be even greater to be able to upload new images directly from the input form (like already requested in the "additional columns" discussion) I would expect that having bigger previews of linked images would already be an enhancement.
As I'm new to this I asked myself if enhancing Tables to let the user choose the preview size would be very difficult?
Some of the points that would be needed and that came into my mind are:
thumbnailUrl
is saved with an url likeindex.php/core/preview?fileId=123456&x=32&y=32
and therefore when setting Tables to show a bigger preview should use an other preview format (like x=128&y128).Is there someone who could give me some more input / ideas and some hints how to get such a thing done? 🙂
Beta Was this translation helpful? Give feedback.
All reactions