Get inspired by Picasa #10472
rodrigopolo
started this conversation in
General
Replies: 2 comments
-
About the jump to a date, here is a workaround using bookmarklets in any web browser, just create a bookmark, edit it, and paste this JS code in the address, it will jump to the date of the current displayed picture based on the HMTL: javascript:!function()%7Blet%20e%3Ddocument.querySelector(%22%23detail-panel%20%3E%20section%20%3E%20div.px-4.py-4%20%3E%20button%22)%2Ct%3De.innerText.match(%2F(%5Cw%2B%20%5Cd%7B1%2C2%7D%2C%20%5Cd%7B4%7D)%2F)%3Bif(t)%7Blet%20n%3Dnew%20Date(t%5B0%5D)%3Bn.setUTCHours(n.getTimezoneOffset()%2F60)%3Blet%20i%3Dnew%20Date(n.getTime()%2B86399999)%2Co%3DJSON.stringify(%7BtakenAfter%3An.toISOString()%2CtakenBefore%3Ai.toISOString()%7D)%2Cr%3D%60https%3A%2F%2F%24%7Bwindow.location.hostname%7D%2Fsearch%3Fquery%3D%24%7BencodeURIComponent(o)%7D%60%3Bwindow.location.href%3Dr%7Delse%20alert(%22Date%20not%20found%20in%20the%20provided%20string.%22)%7D()%3B This is the JS code: javascript:(function() {
const button = document.querySelector("#detail-panel > section > div.px-4.py-4 > button");
const dateMatch = button.innerText.match(/(\w+ \d{1,2}, \d{4})/);
if (dateMatch) {
const takenAfter = new Date(dateMatch[0]);
takenAfter.setUTCHours(takenAfter.getTimezoneOffset() / 60);
const takenBefore = new Date(takenAfter.getTime() + 86399999); // 24 hours - 1 millisecond
const query = JSON.stringify({
takenAfter: takenAfter.toISOString(),
takenBefore: takenBefore.toISOString()
});
const url = `https://${window.location.hostname}/search?query=${encodeURIComponent(query)}`;
window.location.href = url;
} else {
alert('Date not found in the provided string.');
}
})(); Also, a bookmarklet to go to an specific date: javascript:!function()%7Bvar%20e%3Dprompt(%22Please%20enter%20a%20date%20(YYYY-MM-DD)%3A%22)%3Blet%20t%3De.match(%2F(%5Cd%7B4%7D%5C-%5Cd%7B02%7D%5C-%5Cd%7B02%7D)%2F)%3Bif(t)%7Blet%20n%3Dnew%20Date(t%5B0%5D)%3Bn.setUTCHours(n.getTimezoneOffset()%2F60)%3Blet%20o%3Dnew%20Date(n.getTime()%2B86399999)%2Ci%3DJSON.stringify(%7BtakenAfter%3An.toISOString()%2CtakenBefore%3Ao.toISOString()%7D)%2Cr%3D%60https%3A%2F%2F%24%7Bwindow.location.hostname%7D%2Fsearch%3Fquery%3D%24%7BencodeURIComponent(i)%7D%60%3Bwindow.location.href%3Dr%7Delse%20alert(%22Date%20not%20found%20in%20the%20provided%20string.%22)%7D()%3B And the JS code: javascript:(function() {
var date = prompt('Please enter a date (YYYY-MM-DD):');
const dateMatch = date.match(/(\d{4}\-\d{02}\-\d{02})/);
if (dateMatch) {
const takenAfter = new Date(dateMatch[0]);
takenAfter.setUTCHours(takenAfter.getTimezoneOffset() / 60);
const takenBefore = new Date(takenAfter.getTime() + 86399999); // 24 hours - 1 millisecond
const query = JSON.stringify({
takenAfter: takenAfter.toISOString(),
takenBefore: takenBefore.toISOString()
});
const url = `https://${window.location.hostname}/search?query=${encodeURIComponent(query)}`;
window.location.href = url;
} else {
alert('Date not found in the provided string.');
}
})(); |
Beta Was this translation helpful? Give feedback.
0 replies
-
I too miss Picasa and look forward to Immich getting some of the Picasa simplicity and usability. In fact I am still holding on to my old Picasa install on my main library, but only open it every year or so these days. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Picasa was so good that Google acquire it to make it's transition to Google Photos, the very service Immich is trying to emulate:
July 30, 2004 - Google Reveals Details of Picasa Deal
https://www.wsj.com/articles/SB109121493116979168
2016 - We've decided to retire Picasa in order to focus on a single photo service in Google Photos
https://picasa.google.com/
Even though Immich is inspired by Google Photos, I think it should get more inspiration from Picasa and even some from Synology Photos, here are some of the things where Picasa shines:
Face metadata saved into the files:
Sorting
Folder or flat view
Filters by stars, with faces, by type, location and date range
Folder view and sorting inside each folder
General features
Global search
Search into folder names, image file names, tags, peoples names, etc:
And there are other features I guess it should consider, some are already under the feature request here, some are not:
[Feature] 'View Timeline at this date' button #4115
[Feature] Star rating for filtering, maybe color tagging, as in photo editors. #3619
[Feature] Folder view #5409
[Feature] Ability to add non detected faces #7301
[Feature]: Image rotation #1695
Web Photo Editor #9575
feat(web): photo editor #3271
[Feature] general sorting options for views #10400
[Feature] user-wide default album sorting #8068
[Feature] Organize & search with tags #8304
Another thing that is missing, is clear guides on how tu upgrade Immich to the latest version, the release notes only show some of the lines that have to be changed. Overall, I love Immich, that is why I strongly believe it should consider get some inspiration in the good old Picasa.
Beta Was this translation helpful? Give feedback.
All reactions