Compare commits
4 Commits
92b722b141
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
e23cbc2ed5
|
|||
|
797615877b
|
|||
|
9620aabbc7
|
|||
|
fc73e79f7c
|
40
README.md
40
README.md
@ -1,3 +1,41 @@
|
|||||||
# Curator
|
# Curator
|
||||||
|
|
||||||
A program to manage the collections for [Art Museum](https://gitlab.com/Zander671/art-museum).
|
[1]: https://git.zander.im/Zander671/art-museum
|
||||||
|
|
||||||
|
A program to manage the collections for [Art Museum][1].
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Curator is the program used to manage collections on the [Art Museum][1]
|
||||||
|
website. It is a Java program that you run locally on your computer. It allows
|
||||||
|
you to upload, edit, and delete the media and albums that appear on the
|
||||||
|
website.
|
||||||
|
|
||||||
|
Curator exists as a separate program that your run locally to keep the website
|
||||||
|
as light as possible. Things such as image, video, and audio metadata
|
||||||
|
processing, thumbnail generation, and file type conversion are handled locally,
|
||||||
|
sparing the server hosting Art Museum from having to have any such helper
|
||||||
|
programs installed.
|
||||||
|
|
||||||
|
Curator uses FTP or SFTP to upload media to the web server. The FTP user needs
|
||||||
|
to have write access to the data directory used for [Art Museum][1] in order to
|
||||||
|
successfully upload media.
|
||||||
|
|
||||||
|
Curator has a build in help system. Just click the question mark (`?`) button in
|
||||||
|
any dialog and the built-in help system will open to the page most relavant to
|
||||||
|
what you are trying to do.
|
||||||
|
|
||||||
|
### Building
|
||||||
|
|
||||||
|
Curator uses Gradle as a build system. Thus, building is done with
|
||||||
|
`gradle build`. Any required dependencies will be automatically downloaded and
|
||||||
|
compiled by Gradle. Generating video thumbnails and converting Apple `.mov`
|
||||||
|
files requires the `ffmpeg` command line utility.
|
||||||
|
|
||||||
|
Curator has been tested on Linux, FreeBSD, and MacOS. A `.desktop` file (for
|
||||||
|
Linux, FreeBSD, etc.) and a script to build a MacOS `.app` file is available
|
||||||
|
under the `scripts` directory. Note that installing ffmpeg with Homebrew on
|
||||||
|
MacOS does **NOT** automatically add it to the `launchd` `$PATH` environment
|
||||||
|
variable. Thus, the `.app` file will not be able to find it unless you manually
|
||||||
|
add it.
|
||||||
|
|||||||
@ -308,7 +308,8 @@ public class LibraryUploadDialog extends JDialog {
|
|||||||
} else {
|
} else {
|
||||||
byte[] bytes = md.loadRawBytes();
|
byte[] bytes = md.loadRawBytes();
|
||||||
rl.addBinaryFile(getPathForAlbum(as.getNameOnDisk()) + ms.getName(), bytes);
|
rl.addBinaryFile(getPathForAlbum(as.getNameOnDisk()) + ms.getName(), bytes);
|
||||||
if (md instanceof ImageMediaData) {
|
// SVG files don't need a thumbnail
|
||||||
|
if (md instanceof ImageMediaData && !md.getType().startsWith("image/svg")) {
|
||||||
uploadImageThumbnail(state, as, mc, ms, bytes);
|
uploadImageThumbnail(state, as, mc, ms, bytes);
|
||||||
} else if (md instanceof VideoMediaData) {
|
} else if (md instanceof VideoMediaData) {
|
||||||
uploadVideoThumbnail(state, as, mc, ms, (VideoMediaData) md);
|
uploadVideoThumbnail(state, as, mc, ms, (VideoMediaData) md);
|
||||||
|
|||||||
@ -19,9 +19,9 @@
|
|||||||
<b>AGPL3</b>: <a href="https://www.gnu.org/licenses/agpl-3.0.en.html">https://www.gnu.org/licenses/agpl-3.0.en.html</a>
|
<b>AGPL3</b>: <a href="https://www.gnu.org/licenses/agpl-3.0.en.html">https://www.gnu.org/licenses/agpl-3.0.en.html</a>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>Curator Source</b>: <a href="https://gitlab.com/Zander671/curator">https://gitlab.com/Zander671/curator</a>
|
<b>Curator Source</b>: <a href="https://git.zander.im/Zander671/curator">https://git.zander.im/Zander671/curator</a>
|
||||||
<br>
|
<br>
|
||||||
<b>Art Museum Source</b>: <a href="https://gitlab.com/Zander671/art-museum">https://gitlab.com/Zander671/art-museum</a>
|
<b>Art Museum Source</b>: <a href="https://git.zander.im/Zander671/art-museum">https://git.zander.im/Zander671/art-museum</a>
|
||||||
</p>
|
</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user