ImageProcessing-ElectronicPublications / scantailor-experimental

Scan Tailor Experimental is an interactive post-processing tool for scanned pages.
https://github.com/Tulon/scantailor/tree/experimental
GNU General Public License v3.0
30 stars 0 forks source link

feature: Auto save & restore project in out? #24

Open zvezdochiot opened 6 months ago

zvezdochiot commented 6 months ago

Hi all.

Interested in the possibility of periodically autosaving the project if there are changes in the project to the out folder and adding functionality with the "Restore" button.

See Ru-board.com (comment).

plzombie commented 6 months ago

Из того что там есть:

Сохранение делается через

    ProjectWriter writer(m_ptrPages, m_selectedPage, m_outFileNameGen);

    if (!writer.write(project_file, m_ptrStages->filters())) { /* error */ }

Можно куда-нибудь вставить в код переключения фильтров (с добавлением опции "Autosave")

А вот Restore просто так в лоб не сделаешь. Потому что у каждого фильтра свой набор опций. И они их сами через ProjectWriter/ProjectReader сохраняют. Только если автосохранённый проект открывать

zvezdochiot commented 6 months ago

@plzombie .

Да я тоже думаю, что "это" чепушнина какая то. Один геморой, а толку ноль.