omeka / omeka-s

Omeka S is a web publication system for universities, galleries, libraries, archives, and museums. It consists of a local network of independently curated exhibits sharing a collaboratively built pool of items, media, and their metadata.
GNU General Public License v3.0
402 stars 134 forks source link

Generate thumbnails via command line #2229

Open sepastian opened 3 weeks ago

sepastian commented 3 weeks ago

No thumbnails have been generated for some objects.

I would like to trigger thumbnail generation, ideally on the command line, without having to recreate objects and/or upload media once more. Can this be done in omeka-s? How?

I read about the command line interface in #71.

Thanks for any pointers!

sepastian commented 2 weeks ago

Anyone?

kimisgold commented 2 weeks ago

Hi there. Can you describe the objects that did not generate thumbnails? What kind of files are they?

At this time, I don't believe there's a way to trigger thumbnail generation from the command line.

sepastian commented 2 weeks ago

Hello, thumbnails were not generated because of a missing dependency of ImageMagick under Alpine Linux inside Docker, see this commit for details.

I ended up using https://omeka.org/s/modules/CreateMissingThumbnails/, which creates all missing thumbnails.


It would be preferable to trigger the creation of missing thumbnails on the command line, though.

Out of curiosity: does Omeka S have a command line interface at all? That could be extended to provide that functionality?

zerocrates commented 3 hours ago

We don't really have a CLI, no.

There's no particular reason one couldn't be made (jobs like the one you likely used with that module run "on the command line" essentially), but there isn't something preexisting that something like what you're talking about could hang off of.