diff options
author | Nick White <git@njw.name> | 2022-03-11 10:17:24 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2022-03-11 10:17:24 +0000 |
commit | d6e1cb61da7a9155023ce9dece96da79c7246790 (patch) | |
tree | 1a21a4c93f46c0a8a0ae6a23a5013c24cc229c30 /cmd | |
parent | 326bbf430125b69614ac4f4160cf5f1d8c6dedbe (diff) |
Name PDF extracted images so they sort correctly
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/rescribe/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index 14f0053..83153c6 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -376,7 +376,7 @@ func extractPdfImgs(ctx context.Context, path string) (string, error) { continue } - fn := fmt.Sprintf("%s-%04d.jpg", k, pgnum) + fn := fmt.Sprintf("%04d-%s.jpg", pgnum, k) path := filepath.Join(tempdir, fn) w, err := os.Create(path) defer w.Close() |