Compressed image and prompt archive for MeiGen prompt examples.
Install dependencies:
npm installBuild the compressed archive from the local scrape:
npm run build:meigenDefault source directory:
E:/image-garllery-wesite/meigen_export
Useful options:
npm run build:meigen -- --quality=76 --max=1280 --concurrency=8
npm run build:meigen -- --raw-base=https://raw.githubusercontent.com/mrslimslim/awesome-prompt/main
npm run build:meigen -- --clean=falseIf origin is a GitHub remote, the script detects the raw base automatically.
After adding a GitHub remote, regenerate only the JSON URL fields without recompressing:
npm run build:meigen -- --clean=falseimages/compressed prompt imagesvideo-thumbnails/compressed video thumbnailsdata/prompts-all.jsonprompt metadata withcdnImagesdata/prompts-images.jsonimage prompt metadatadata/prompts-videos.jsonvideo prompt metadatadata/prompts-all.csvCSV exportdata/summary.jsonbuild and compression summary
Start a tiny local static server:
npm run serveThen open:
http://127.0.0.1:4173/
Raw GitHub URL pattern:
https://raw.githubusercontent.com/mrslimslim/awesome-prompt/main/images/2054962469810978916/0.webp
Convert a normal GitHub page URL:
https://github.com/mrslimslim/awesome-prompt/blob/main/images/1924288320881750108/0.webp
to a raw image URL:
https://raw.githubusercontent.com/mrslimslim/awesome-prompt/main/images/1924288320881750108/0.webp