mirror of
https://github.com/mue/mue.git
synced 2026-07-23 16:57:25 +02:00
feat: attempt image blur
This commit is contained in:
@@ -97,15 +97,15 @@ function PhotoInformation({ info, url, api }) {
|
||||
const ddgProxy = localStorage.getItem('ddgProxy') === 'true';
|
||||
|
||||
// get resolution
|
||||
const img = new Image();
|
||||
img.onload = (event) => {
|
||||
setWidth(event.target.width);
|
||||
setHeight(event.target.height);
|
||||
};
|
||||
img.src =
|
||||
ddgProxy && !info.offline && !url.startsWith('data:')
|
||||
? variables.constants.DDG_IMAGE_PROXY + url
|
||||
: url;
|
||||
// const img = new Image();
|
||||
// img.onload = (event) => {
|
||||
// setWidth(event.target.width);
|
||||
// setHeight(event.target.height);
|
||||
// };
|
||||
// img.src =
|
||||
// ddgProxy && !info.offline && !url.startsWith('data:')
|
||||
// ? variables.constants.DDG_IMAGE_PROXY + url
|
||||
// : url;
|
||||
|
||||
// info is still there because we want the favourite button to work
|
||||
if (localStorage.getItem('photoInformation') === 'false') {
|
||||
@@ -132,7 +132,6 @@ function PhotoInformation({ info, url, api }) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const zoom = 12;
|
||||
const tile = variables.constants.API_URL + `/map?latitude=${info.latitude}&longitude=${info.longitude}`;
|
||||
showingPhotoMap = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user