better RDR 2 support, bug fixes + optimisation, libragephoto upstream

This commit is contained in:
Syping 2023-02-27 14:17:50 +01:00
parent b19152fdae
commit 2d0830254b
10 changed files with 136 additions and 145 deletions

View file

@ -100,8 +100,8 @@ void ProfileLoader::run()
SnapmaticPicture *picture = new SnapmaticPicture(picturePath);
if (picture->readingPicture(true)) {
if (picture->isFormatSwitched()) {
picture->setSnapmaticFormat(SnapmaticFormat::PGTA_Format);
if (picture->exportPicture(picturePath, SnapmaticFormat::PGTA_Format)) {
picture->setSnapmaticFormat(SnapmaticFormat::PGTA5_Format);
if (picture->exportPicture(picturePath, SnapmaticFormat::PGTA5_Format)) {
emit pictureFixed(picture);
}
}