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

[FEATURE REQUEST] FastFoto scanned image stack option #213

Open
isaacolsen94 opened this issue Apr 1, 2024 · 5 comments
Open

[FEATURE REQUEST] FastFoto scanned image stack option #213

isaacolsen94 opened this issue Apr 1, 2024 · 5 comments

Comments

@isaacolsen94
Copy link

Hey it would be lovely to have the script stack Epson's FastFoto scanned output files. Currently if you scan a photo it can output 3 files, the original scan, a "corrected" scan, and the backside of the photo if it has writing on it. Its structure looks like this:
specified-image-name.jpg Original
specified-image-name_a.jpg Corrected
specified-image-name_b.jpg Back of Photo

Would it be possible to have the script make the original the top photo and stack the _a/_b files behind it?

@isaacolsen94
Copy link
Author

I played around with codespace and chatgpt and got something similar to what you have that would stack photos that ended in _a and _b, but I really don't know much about programming, but thought I'd paste it here incase it helps, but I know chatgpt is rarely useful for these kind of tasks.

var fastFotoRE = regexp.MustCompile(`^(.*)(_a|_b)(\..*)$`)

func fastFoto(name string) (bool, string, bool) {
    parts := fastFotoRE.FindStringSubmatch(name)
    if len(parts) == 0 {
        return false, "", false
    }
    base := strings.TrimSuffix(parts[1], "_a")
    base = strings.TrimSuffix(base, "_b")
    return true, base, false // Assume fastFoto files are not cover
}

var stackMatchers = []stackMatcher{nexusBurst, huaweiBurst, pixelBurst, samsungBurst, fastFoto}

@simulot
Copy link
Owner

simulot commented Apr 1, 2024

Thanks for the suggestion.
Added to the todo list

@isaacolsen94
Copy link
Author

Awesome, thank you so much!

@isaacolsen94
Copy link
Author

Hey Simulot, first thanks for all the awesome work you've put into this! I just wanted to follow up and see if this was still on your radar?

@simulot
Copy link
Owner

simulot commented Jun 16, 2024

I'm focused on fixing bugs at the moment

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

No branches or pull requests

2 participants