tangled
alpha
login
or
join now
phaz.uk
/
VRChat-Photo-Manager
0
fork
atom
A photo manager for VRChat.
0
fork
atom
overview
issues
pulls
pipelines
Fixed resizing images (again)
phaz.uk
4 months ago
820aafe9
9359fd41
verified
This commit was signed with the committer's
known signature
.
phaz.uk
SSH Key Fingerprint:
SHA256:zxJQhKgYCHHuwxrAXidvE/hMnTWnFw5vch6xe716hh8=
+9
-7
3 changed files
expand all
collapse all
unified
split
build-release.sh
changelog
src
Components
PhotoViewer.tsx
+1
-1
build-release.sh
reviewed
···
1
1
#!/bin/bash
2
2
3
3
-
VERSION=0.2.7
3
3
+
VERSION=0.2.7-hot1
4
4
5
5
# Linux builds
6
6
NO_STRIP=true pnpm tauri build
+4
-1
changelog
reviewed
···
127
127
- Fixed image resizing when window is thinner than image
128
128
- Fixed closing settings with keybinds
129
129
- Fixed the behaviour of changing the photo path
130
130
-
- Fixed loading photos in folders that aren't VRChat folders
130
130
+
- Fixed loading photos in folders that aren't VRChat folders
131
131
+
132
132
+
Hotfix 1:
133
133
+
- Fixed resizing images (again)
+4
-5
src/Components/PhotoViewer.tsx
reviewed
···
154
154
let dstWidth;
155
155
let dstHeight;
156
156
157
157
-
let imgHeight = imageViewer.height;
158
158
-
let imgWidth = imageViewer.width;
157
157
+
let imgHeight = imageViewer.naturalHeight;
158
158
+
let imgWidth = imageViewer.naturalWidth;
159
159
160
160
if(
161
161
imgWidth / window.innerWidth <
···
178
178
utils.set(photoLayerManager, { translateY: '20px', opacity: 0, display: 'none' });
179
179
180
180
window.addEventListener('keyup', switchPhotoWithKey);
181
181
-
182
182
-
resizeImage();
183
183
-
184
181
window.addEventListener('resize', () => resizeImage());
185
182
186
183
let contextMenuOpen = false;
···
262
259
if(photo){
263
260
imageViewer.src = (window.OS === "windows" ? "http://photo.localhost/" : 'photo://localhost/') + window.PhotoViewerManager.CurrentPhoto()?.path.split('\\').join('/') + "?full";
264
261
imageViewer.crossOrigin = 'anonymous';
262
262
+
263
263
+
imageViewer.onload = () => { resizeImage(); }
265
264
266
265
animate(imageViewer, {
267
266
opacity: 1,