-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Photoswipe outdated, should be upgraded and made an optional feature #16205
Comments
FYI, upstream bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=969159 |
I know, I came from there and started to check what can be done to fix it. |
One further enhancement came into my mind: it should be possible to use a system wide Photoswipe installation (like it is possible with libraw), so distributions can remove the embedded Photoswipe copy from their packages. However, there is currently no package for any distribution (I checked Fedora, Gentoo, Ubuntu, Debian). |
This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue. |
This issue is still present in master. What to the devs think about updating to current Photoswipe? |
This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue. |
@scorpi11 That is, we can use the result of this build by adding the resulting files when exporting to the "web gallery" target? (looking at the project repo) Maybe we can just grab the files we need from |
@scorpi11 Unfortunately, I have not received an answer to the question whether it is possible to simply replace the files with the files of the new version. My thoughts on this issue are as follows:
Considering all the above, I would say that I personally have no motivation to spend time to try to update photoswipe in the absence of a real need (ie, security problems in the used version). Volunteers are welcome though. |
This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue. |
@TurboGit does this count as a bugfix (should I try and get it done before code freeze?) or should it go in 5.2? EDIT: or should we rip it out and replace it with a Lua solution? EDIT 2: I'm currently prototyping it in Lua so that I can distribute to those interested for testing and comments. |
@wpferguson : Not a bug as nothing is broken :) It works even if outdated IIUC. Not sure how one could replace it by Lua. The js for the gallery cannot be Lua? Can you clarify what you have in mind? TIA. |
I guess the idea was to replace the C code in the export function, which builds the "dynamic part" of the gallery, by a Lua script. |
There was a discussion in the darktable channel about this issue started by @victoryforce with @paperdigits, @elstoc, and @scorpi11 participating. Somewhere in the discussion the possibility of replacing the gallery with Lua was raised and before the "smart" part of my brain kicked in I kind of "volunteered". In the discussion the prospect of using CSSBox as a replacement for photoswipe was proposed (discussed?). If you generate a 5 image gallery and replace the index.html with the following and add the cssbox.css file to the style directory then open it in a browser you can see what it looks like and how it works. Also discussed was the current styling of the gallery and how it could use some "help". I've looked at the code ( But, I can build storages with Lua scripts also. So I can build the equivalent storage, then users can drop the script into their existing scripts directory and add the For 5.2 I plan on adding the Lua scripts to the release which will remove the last barrier to entry for those who don't want to|can't install git. At this point the scripts become "built-in". I plan on adding a "system" directory for scripts that should always run because they provide some type of core feature such as group persistence across database instances. With this in place, the website gallery functionality could be a script. I don't have a preference, it's simply a possiblity. |
This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue. |
* github-actions[bot] ***@***.***> [01-27-25 19:23]:
ping
…--
(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
facebook/ptilopteri
Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
|
Guess I should revisit it, since we're past release 😄 |
Describe the bug
The embedded Photoswipe copy is an outdated version from 2015:
/*! PhotoSwipe - v4.1.1 - 2015-12-24
However, the nature of the project changed a lot and Photoswipe is not a "simple jQuery based JS library" anymore but requires npm to build as of version 5.
An upgrade to the recent version is strongly recommended.
Furthermore, Photoswipe support should be made an optional feature which is not turned on by default, in both cases (sticking to the old version and upgrading to the new version). When sticking with the old version, users can be warned that they enable support for an outdated JS library. When upgrading to the new version, only users who want to use Photoswipe will require npm at build time. Another reason is that Linux distributions don't like embedded libraries for multiple reasons.
Steps to reproduce
Go to data/pswp in the source code, check version of Photoswipe.
Expected behavior
darktable should not ship with outdated JS libraries.
Logfile | Screenshot | Screencast
No response
Commit
No response
Where did you obtain darktable from?
downloaded from www.darktable.org
darktable version
4.6
What OS are you using?
Linux
What is the version of your OS?
Debian Sid
Describe your system?
No response
Are you using OpenCL GPU in darktable?
None
If yes, what is the GPU card and driver?
No response
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response
The text was updated successfully, but these errors were encountered: