Skip to content

Commit

Permalink
Change images public folder name
Browse files Browse the repository at this point in the history
nanoandrew4 committed Mar 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 92498b6 commit 1e44373
Showing 20 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion generate_images.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

for pngImage in $(ls public/assets/*png); do
for pngImage in $(ls public/images/*png); do
convert -resize 15% -quality 100 -antialias $pngImage $(echo $pngImage | sed 's~.png~_high.webp~')
convert -resize 10% -quality 100 -antialias $pngImage $(echo $pngImage | sed 's~.png~_mid.webp~')
convert -resize 7.5% -quality 90 -antialias $pngImage $(echo $pngImage | sed 's~.png~_low.webp~')
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions src/views/HomeView.vue
Original file line number Diff line number Diff line change
@@ -81,15 +81,15 @@ export default defineComponent({
this.loadedImagesSet.clear()
if (this.isPortrait) {
this.carouselImages = [
this.getScaledImage('/assets/sample_vert_1.png'),
this.getScaledImage('/assets/sample_vert_2.png'),
this.getScaledImage('/assets/sample_vert_3.png')
this.getScaledImage('/images/sample_vert_1.png'),
this.getScaledImage('/images/sample_vert_2.png'),
this.getScaledImage('/images/sample_vert_3.png')
]
} else {
this.carouselImages = [
this.getScaledImage('/assets/sample_hor_1.png'),
this.getScaledImage('/assets/sample_hor_2.png'),
this.getScaledImage('/assets/sample_hor_3.png')
this.getScaledImage('/images/sample_hor_1.png'),
this.getScaledImage('/images/sample_hor_2.png'),
this.getScaledImage('/images/sample_hor_3.png')
]
}
}

0 comments on commit 1e44373

Please sign in to comment.