File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed
src/frontend/src/components/slideshow Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 4545 ```
4646 .
4747 ├── config.json # config must be named config.json
48- ├── image1.jpg # image file names must suffix with .jpg
49- ├── image2.jpg
50- └── ...
48+ ├── normal # folder to put normal images
49+ | ├── image1.jpg # normal image
50+ | └── ...
51+ └── blur # folder to put blur images
52+ ├── image1.jpg # blur image
53+ └── ...
5154 ```
5255 - See [Configuration](#configuration) for more information about `config.json`.
53562. Upload the zipped folder to a cloud storage services(ex: dropbox) and generate a share link.
@@ -129,15 +132,15 @@ Visit http://localhost:5566/admin-index.html and login(default password:happy) t
129132
130133## Images
131134
132- Put your images into `src/public/images/`.
135+ Put your images into `src/public/images/normal`.
136+ Put the blur images into `src/public/images/blur`.
133137
134138Compress image:
135139```shell
136140src=PATH/TO/INPUT/IMAGES
137- dst=PATH/TO/OUTPUT/IMAGES
138141for i in `ls $src`; do
139- gm convert -size 1280x1280 $src/$i -resize 1280x1280 $dst /normal/$i
140- gm convert $dst /normal/$i -blur 0x4 $dst /blur/$i
142+ gm convert -size 1280x1280 $src/$i -resize 1280x1280 images /normal/$i
143+ gm convert images /normal/$i -blur 0x4 images /blur/$i
141144done
142145```
143146
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ curl -L -o /tmp/wedding/file.zip ${DOWNLOAD_URL}
2727unzip /tmp/wedding/file.zip -d /tmp/wedding
2828rm -f /tmp/wedding/file.zip
2929rm -f ./src/config/config.json
30- rm -f ./src/public/images/*
30+ rm -rf ./src/public/images/*
3131find /tmp/wedding -name ' config.*' | xargs -I ' {}' mv ' {}' ./src/config/config.json
32- find /tmp/wedding -type f -not -path ' */\.*' | xargs -I ' {}' mv ' {}' ./src/public/images/
32+ # find /tmp/wedding -type f -not -path '*/\.*' | xargs -I '{}' mv '{}' ./src/public/images/
33+ find src/ -type d -name normal | xargs -I ' {}' mv ' {}' ./src/public/images/normal
34+ find src/ -type d -name blur | xargs -I ' {}' mv ' {}' ./src/public/images/blur
3335rm -rf /tmp/wedding
Original file line number Diff line number Diff line change 11.bulletcomment {
2- font-size : 32 px ;
2+ font-size : 40 px ;
33 position : fixed;
44 left : 0px ;
55 transition-timing-function : linear;
You can’t perform that action at this time.
0 commit comments