04-25-2021, 12:29 PM
(This post was last modified: 09-19-2021, 02:45 PM by joyrider3774.)
Hi,
I created a plugin to export your complete playnite library to static html files. It uses a template system so in theory you can create your own templates for exporting. I have provided 3 templates myself a GRID based view, a LIST View and a TEXT Only version. The text only version can easily be used to share your games library with friends or to host this on a website. If you use the images version you either must self host the html files using your own webserver (for example using Wamp on windows) and some dynamic dns provider (for example usin NO-IP). Another option is to upload your files to Onedrive or google drive and use https://drv.tw/ to make a website out of your shared files on those cloud services (this will be slower). For syncing with real webhosting using ftp or to another pc or raspberry pi hosting your website i personally use freefilesync
Example Export
http://htmlexporterexample.joyrider3774.xyz/
release / help video
V3.0
V2.0
V1.0
Export Speed:
Ok so the very first time when you export with images enabled it will take a longer time than the second time you will export. The very first time it has copy all images while the next times it only has to copy new images (it won't copy them again). Also generating the very first page takes longer than all other pages as the very first page also generates all detail pages of games. Also having playnite installed on a SSD and exporting to an SSD folder will be a lot faster than having playnite installed / exporting on platter disk or even worse an SMR platter disk.
Here are some statistics from my pc where i have about 2250 games in my library all containing images for every game when exporting with the default grid template and copying images:
1st export on (non SMR) platter disk: 3 minutes 9 seconds
2nd export on (non SMR) platter disk: 1 minute 15 seconds
1st export on ssd disk: 50 seconds
2nd export on ssd disk: 23 seconds
Export Size:
Export size highly depends on library size (nr of games), and when exporting images, images resolutions and the amount of games having all images (icons, cover, background). In my playnite all game images are optimzed according to playnite (not one games shows the optimazation warning for images). Here are the sizes for my current real export for about 2250 games:
Grid + Images: 2,14 GB
List + Images: 2,17 GB
List Text only (no images): 113 MB
As of version 2.0 of html exporter you can now reduce the size of the export by converting icon files to png and cover / background images to jpeg as well as resize images. Here are some results of my real export of about 2600 games:
Grid Copy only: 2,33 GB
Grid Resize + Force 100% Jpeg Quality: 1,20 GB
Grid Resize + Force 85% Jpeg Quality: 554 MB
Grid Resize + Convert + Force 100% Jpeg Quality: 1,17 GB
Grid Resize + Convert + Force 85% Jpeg Quality: 469 MB
Grid Convert 100% Jpeg Quality: 2,28 GB
Grid Convert 85% Jpeg Quality: 2,18 GB
Grid Convert + Force 100% Jpeg Quality: 1,92 GB
Grid Convert + Force 85% Jpeg Quality: 895 MB
Github:
https://github.com/joyrider3774/Playnite_html_exporter/
Release History:
Version 3.0:
HTML_Exporter_2_2.pext (Size: 247.82 KB / Downloads: 300)
I created a plugin to export your complete playnite library to static html files. It uses a template system so in theory you can create your own templates for exporting. I have provided 3 templates myself a GRID based view, a LIST View and a TEXT Only version. The text only version can easily be used to share your games library with friends or to host this on a website. If you use the images version you either must self host the html files using your own webserver (for example using Wamp on windows) and some dynamic dns provider (for example usin NO-IP). Another option is to upload your files to Onedrive or google drive and use https://drv.tw/ to make a website out of your shared files on those cloud services (this will be slower). For syncing with real webhosting using ftp or to another pc or raspberry pi hosting your website i personally use freefilesync
Example Export
http://htmlexporterexample.joyrider3774.xyz/
release / help video
V3.0
V2.0
V1.0
Export Speed:
Ok so the very first time when you export with images enabled it will take a longer time than the second time you will export. The very first time it has copy all images while the next times it only has to copy new images (it won't copy them again). Also generating the very first page takes longer than all other pages as the very first page also generates all detail pages of games. Also having playnite installed on a SSD and exporting to an SSD folder will be a lot faster than having playnite installed / exporting on platter disk or even worse an SMR platter disk.
Here are some statistics from my pc where i have about 2250 games in my library all containing images for every game when exporting with the default grid template and copying images:
1st export on (non SMR) platter disk: 3 minutes 9 seconds
2nd export on (non SMR) platter disk: 1 minute 15 seconds
1st export on ssd disk: 50 seconds
2nd export on ssd disk: 23 seconds
Export Size:
Export size highly depends on library size (nr of games), and when exporting images, images resolutions and the amount of games having all images (icons, cover, background). In my playnite all game images are optimzed according to playnite (not one games shows the optimazation warning for images). Here are the sizes for my current real export for about 2250 games:
Grid + Images: 2,14 GB
List + Images: 2,17 GB
List Text only (no images): 113 MB
As of version 2.0 of html exporter you can now reduce the size of the export by converting icon files to png and cover / background images to jpeg as well as resize images. Here are some results of my real export of about 2600 games:
Grid Copy only: 2,33 GB
Grid Resize + Force 100% Jpeg Quality: 1,20 GB
Grid Resize + Force 85% Jpeg Quality: 554 MB
Grid Resize + Convert + Force 100% Jpeg Quality: 1,17 GB
Grid Resize + Convert + Force 85% Jpeg Quality: 469 MB
Grid Convert 100% Jpeg Quality: 2,28 GB
Grid Convert 85% Jpeg Quality: 2,18 GB
Grid Convert + Force 100% Jpeg Quality: 1,92 GB
Grid Convert + Force 85% Jpeg Quality: 895 MB
Github:
https://github.com/joyrider3774/Playnite_html_exporter/
Release History:
Version 3.0:
- Playnite 9 Support
- Fix Links sometimes not clickable on details page
- Make list templates use fixed table to prevent table repositioning
- New "Table" Template using Tabulator which also works fast on phones
- New "Tag" Group & export field / page
- Load Templates from both Plugin as Plugin data Folder, Plugin folder having preference
- Don't check for Image Magick existance of every function call, do it once before starting export
- AgeRating, Region and Platform are no longer sortfields, they still are groupfields.
- Added Tags on Game Details page
- Fix Library Field not always available in templates
- Fix bug in Templates javascript where collapsed groups would still show collapsed icon after search
- Added Viewport the templates for better mobile usage
- Add Support for "Add to Homescreen" option in the templates for mobile usage
- Fix Gif, Tif, Ico generating multiple files when not used as icon
- Make Links Clearer / more visible in exported html pages.
- Use FileDeDuplicator per image type instead of global one
- Fix bug with image conversion failing if paths contained spaces
- Fix Playtime Category "Not Played"
- Added new image deduplication option
- Fixed bug with saving of the file that contains the original image data
- Added image conversion and resizing options through Image Magick
- Fixed layouts related to certain translations
- Fix and improve search functionality with list templates
- Fix Return key not working to invoke search after doing an initial search in list templates
- Fix Search button missing id in specific list template
- Fix export failing when a game has "NULL" weblinks
- New templates including a search / filter game section
- Fix export failing when a game has no platform set!
- Fix Name Grouping (Quicklinks)
- Initial Release