potatoeggy / mandown

Comic/manga/webtoon downloader and CBZ/EPUB/MOBI/PDF converter
GNU Affero General Public License v3.0
51 stars 7 forks source link

feat(process): add device profiles #52

Closed potatoeggy closed 1 year ago

potatoeggy commented 1 year ago

This PR does a lot of reshuffling but is mostly for the addition of the following features:

mandown process resize --target-size XXX XXX

where XXX is any non-negative integer (width, height).

OR

mandown process resize --profile PROFILE

where PROFILE is any one of the device IDs found via mandown --list-profiles (includes a lot of ereaders).

It also changes the mandown.process{_progress} interface to optionally pass in a ProcessConfig object that may be used to pass in extra flags for the processor.

A lot of Mandown functions have now been imported into the main namespace too for consumption.