Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I copy the images in my clipboard and save them in an HTML file to have single-file galleries:

https://gist.github.com/egeozcan/b27e11a7e776972d18603222fa5...

Live:

https://gistpreview.github.io/?b27e11a7e776972d18603222fa523...

Selecting via file-picker works too. Dragging usually does not. When all works, images are inserted inline as blobs.

After adding images, if you save the page (literally file->save), the blobs are saved together. don't want a part when saving (for example, removing images)? inspect element, remove, save page.

throw the page on some server or just double click on your computer/mobile.



Love it! True to the original vision of the WWW. Tim Berners-Lee's WorldWideWeb browser was also an editor.

https://github.com/cadars/john-doe gives me the same feels.


LOL


That's really neat!

You could add a "Download this page" button on the page which does some tricks to produce an HTML file with the images baked in that the user can download, which could work on mobile.

Here's a quick prototype: https://gistpreview.github.io/?14a2c3ef508839f26377707dbf5dd... - code here: https://gist.github.com/simonw/14a2c3ef508839f26377707dbf5dd...


Can also recommend Single File browser extension https://github.com/gildas-lormeau/SingleFile-MV3


Thank you! Great idea, I'll give it a try :)


That is slick. Offline first in the truest sense.


Very cool design! note if you can't get it to work, make sure you set file type to complete webpage when saving.


This is very cool, thank you for sharing.


Thanks for sharing! Mind: expanded




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: