Currently image previews load ALL files in the current directory that match a set of image extensions into memory and then display the preview. This is obviously bad but was easy at the time.
A good solution would look something like this:
When a file with an extension included in the image extensions is clicked to open a preview, the file data is fetched from ipfs. The solution should be ready for files that are not local, it should show a placeholder for the image and progress for the ipfs file fetch in the status component.
The current directory images need to be loaded into memory only on preview but the data could be lazily fetched from ipfs and stored ahead of previewing.
anyone wants to take a stab at it, much appreciated. we will be fixing this eventually depending on time and money.
Currently image previews load ALL files in the current directory that match a set of image extensions into memory and then display the preview. This is obviously bad but was easy at the time. A good solution would look something like this:
When a file with an extension included in the image extensions is clicked to open a preview, the file data is fetched from ipfs. The solution should be ready for files that are not local, it should show a placeholder for the image and progress for the ipfs file fetch in the status component. The current directory images need to be loaded into memory only on preview but the data could be lazily fetched from ipfs and stored ahead of previewing.
anyone wants to take a stab at it, much appreciated. we will be fixing this eventually depending on time and money.