foresterre / sic

🦜 Accessible image processing and conversion from the terminal. Front-end for image-rs/image.
Apache License 2.0
171 stars 6 forks source link

BUG: Partial conversion with the Glob method #1656

Open felix9743 opened 1 year ago

felix9743 commented 1 year ago

If there is a . in the file name, then the conversion stops before it's finished and the filename is separated keeping only what it finds before the `.′ of the new file.

image

What's most troubling is that if there are several . in the file name, it's going to keep everything that's before the last '.`.

image

foresterre commented 1 year ago

Oh welp! Thanks for the reports; I'll have a look!

foresterre commented 1 year ago

I've tried reproducing this issue, but wasn't able to. What input commands did you use?

I did:

$ ls glob_example

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---          2023-09-19    00:01             73 A.B.C.D-000.png
-a---          2023-09-19    00:02             14 A.B.C.D-001.ppm
$ sic --glob-input C:\glob_example\* --glob-output .\glob_output\
$ ls glob_output

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---          2023-09-19    00:03             73 A.B.C.D-000.png
-a---          2023-09-19    00:03             14 A.B.C.D-001.ppm
felix9743 commented 1 year ago

On Windows 10: bin\sic --glob-input "C:\PDF_Extractor\OUTPUT\M.noWorking\*.ppm" --glob-output "OUTPUT\M.noWorking" --output-format png