Skip to content
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

Feat:batch script support #267

Open
emyoulation opened this issue Aug 20, 2021 · 1 comment
Open

Feat:batch script support #267

emyoulation opened this issue Aug 20, 2021 · 1 comment

Comments

@emyoulation
Copy link

Feature description and goals

There appears to be Command Line support for single Preview thumbnails to cache. It would useful to populate a destination folder with thumbnails of specific size.

This would need batch script processor with parameters for source file, destinations file, thumbnail dimension(s) and page offset selection (for multi-page documentation like PDFs) or subregion designation (for over-sized images with significant dead-space that would render poorly as thumbnails).

Example use case:
The open-source Python 3.5 genealogy database application Gramps supports attachment of Media files with thumbnails. But the internal thumbnail generator does not support nearly the variety of MIME types. And the the project distributes under the GNU General Public License, version 2 (GPLv2). Rather than deal with the hassle of multiple licensing, it would be simpler to recommend running preview-generator as a separately installed utility and have Gramps generate a report that outputs a batch script.

References:
https://github.com/gramps-project/gramps

@raphj
Copy link
Contributor

raphj commented Sep 6, 2021

Hello @emyoulation,

Do you have an example of something that would not work by simply calling preview-generator in a bash loop to perform a batch operation?

Can you give an example of command line you'd would like to be able to run?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants