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

Major bug in file naming (hidden files + variable suffix at the end!) on a Veracrypt drive #185

Open
PrSunflower opened this issue Oct 14, 2023 · 6 comments
Labels
bug Something isn't working feature-request Feature request

Comments

@PrSunflower
Copy link

Hello dear community, I am experiencing a bug in Curtail that is considerably slowing me down.

Before: pictures to compress

I have multiple JPEG pictures that I would like to compress, they are stored in a folder on an encrypted Veracrypt drive:

prs@PC:/media/veracrypt1$ find . -type f
./image03.JPG
./image04.JPG
./image02.JPG
./image01.JPG

During: Curtail settings

I open Curtail, I either drag-and-drop from Nautilus ; or I use the "Browse files" button in Curtail.

Current settings in "Preferences" :

image

image

Curtail does the job quickly, without any error message:

image



After: the file names are nonsense 🤦

prs@PC:/media/veracrypt1$ find . -type f
./.xdp-image01-min.JPG-VkROpH
./.xdp-image02-min.JPG-tNnCyc
./.xdp-image03-min.JPG-JeQMde
./.xdp-image04-min.JPG-jwmnVA
./image01.JPG
./image02.JPG
./image03.JPG
./image04.JPG

This is bad because:

  • These files are considered as "hidden files" in Nautilus
  • There is a random string after the extension which makes it difficult to batch rename them! (I am just a user, not a developer!)

This only happens on my Veracrypt drive

Everything seems to work well when the pictures are stored in my Linux Home Dir :

prs@PC:~/Pictures$ find . -type f
./image03.JPG
./image04.JPG
./image02.JPG
./image04-min.JPG
./image01-min.JPG
./image02-min.JPG
./image01.JPG
./image03-min.JPG

Considerations

Can you copy the pictures you want to compress in your Linux Home Dir instead ?

I cannot do that. I would like to use Curtail to compress hundreds of GiB of JPEG pictures stored on my Veracrypt drive, the drive of my Linux home Dir doesn't have that much space.


OS and software info

  • Debian trixie "testing"
  • Curtail 1.7.0 (from Flathub)
  • Veracrypt 1.25.9

Thank you for reading, any help would be greatly appreciated 🙂

@Huluti Huluti added bug Something isn't working feature-request Feature request labels Nov 3, 2023
@PrSunflower
Copy link
Author

Hello, just to say that I offer my help 🙂

If you need to test things, I can do it on my PC and share the results with you. (Also, I speak French, if it's easier for you 😉 )

@PrSunflower
Copy link
Author

PrSunflower commented May 28, 2024

Hello, Curtail is a great tool and I would love to provide some help to solve this issue.

The bug is still forcing me to rename the files manually on my Veracrypt partition on Curtail 1.9.1:

prs@PC:/media/veracrypt1$ find . -type f
./IMG_20240528_164648_2.jpg            <<< Original files
./IMG_20240528_164655_2.jpg
./IMG_20240528_164709_3.jpg
./IMG_20240528_164711_1.jpg
./IMG_20240528_164731_2.jpg
./IMG_20240528_164755_4.jpg
./.xdp-IMG_20240528_164648_2-min.jpg-zzKpjw    <<< Compressed by Curtail
./.xdp-IMG_20240528_164655_2-min.jpg-SZNzBz
./.xdp-IMG_20240528_164709_3-min.jpg-2TtwHL
./.xdp-IMG_20240528_164711_1-min.jpg-1lXrdH
./.xdp-IMG_20240528_164731_2-min.jpg-ckjCHG
./.xdp-IMG_20240528_164755_4-min.jpg-Nlos9k

@ARAKHN1D
Copy link
Contributor

Does this happen with all image types, or only JPGs?

@Huluti
Copy link
Owner

Huluti commented Jun 1, 2024

Sorry @PrSunflower. You did a really great job in explaining the problem.
I haven't looked yet due to a serious lack of time on my part and it's not a problem that affects many people. Even though I understand that it must be annoying for you.
Thanks @ARAKHN1D for taking an interest! 🙏

@PrSunflower
Copy link
Author

Hi @Huluti , thank you for your message, I totally understand 🙂

Hi @ARAKHN1D , thanks for your help. Yes, it seems to happen to all image types :

Linux Home Dir - not affected by the bug :

<<< Original files : >>>

prs@PC:~/Curtail test HOMEDIR$ find . -type f
./Webp/ZULU Album 1 - Zulu.webp
./Webp/ZULU Album 3 - United Colors.webp
./JPGs/DSC00065.JPG
./JPGs/DSC00335.JPG
./PNGs/Red Moon Desert 2021 - By atoms83.png
./PNGs/50_years_logo_Mauritius.png

<<< After compressing with Curtail : >>>

prs@PC:~/Curtail test HOMEDIR$ find . -type f
./Webp/ZULU Album 1 - Zulu.webp
./Webp/ZULU Album 3 - United Colors.webp
./Webp/ZULU Album 1 - Zulu-min.webp
./Webp/ZULU Album 3 - United Colors-min.webp
./JPGs/DSC00335-min.JPG
./JPGs/DSC00065.JPG
./JPGs/DSC00335.JPG
./JPGs/DSC00065-min.JPG
./PNGs/Red Moon Desert 2021 - By atoms83.png
./PNGs/50_years_logo_Mauritius-min.png
./PNGs/50_years_logo_Mauritius.png
./PNGs/Red Moon Desert 2021 - By atoms83-min.png

Veracrypt encrypted partition :

prs@PC:/Curtail test VERACRYPT$ find . -type f
./JPGs/DSC00065.JPG
./JPGs/DSC00335.JPG
./PNGs/50_years_logo_Mauritius.png
./PNGs/Red Moon Desert 2021 - By atoms83.png
./Webp/ZULU Album 1 - Zulu.webp
./Webp/ZULU Album 3 - United Colors.webp

prs@PC:/Curtail test VERACRYPT$ find . -type f
./JPGs/.xdp-DSC00065-min.JPG-aNQAWn
./JPGs/.xdp-DSC00335-min.JPG-Wl1KaA
./JPGs/DSC00065.JPG
./JPGs/DSC00335.JPG
./PNGs/.xdp-50_years_logo_Mauritius-min.png.tmp-9RiVUc
./PNGs/.xdp-Red Moon Desert 2021 - By atoms83-min.png.tmp-ySGnhb
./PNGs/50_years_logo_Mauritius.png
./PNGs/Red Moon Desert 2021 - By atoms83.png
./Webp/.xdp-ZULU Album 1 - Zulu-min.webp-PFty2i
./Webp/.xdp-ZULU Album 3 - United Colors-min.webp-5zVGki
./Webp/ZULU Album 1 - Zulu.webp
./Webp/ZULU Album 3 - United Colors.webp

⚠️ I just found a workaround! ⚠️

The bug happens when I drag-and-drop my pictures from GNOME Files (Nautilus) into the Curtail window, but I just noticed that if I use the "Bulk Compress Dicrectory (Recursive)" feature inside Curtail, every file is named correctly!

prs@PC:PC/Curtail test VERACRYPT Bulk$ find . -type f
./JPGs/DSC00065.JPG
./JPGs/DSC00335.JPG
./PNGs/50_years_logo_Mauritius.png
./PNGs/Red Moon Desert 2021 - By atoms83.png
./Webp/ZULU Album 1 - Zulu.webp
./Webp/ZULU Album 3 - United Colors.webp

prs@PC:PC/Curtail test VERACRYPT Bulk$ find . -type f
./JPGs/DSC00065-min.JPG
./JPGs/DSC00065.JPG
./JPGs/DSC00335-min.JPG
./JPGs/DSC00335.JPG
./PNGs/50_years_logo_Mauritius-min.png
./PNGs/50_years_logo_Mauritius.png
./PNGs/Red Moon Desert 2021 - By atoms83-min.png
./PNGs/Red Moon Desert 2021 - By atoms83.png
./Webp/ZULU Album 1 - Zulu-min.webp
./Webp/ZULU Album 1 - Zulu.webp
./Webp/ZULU Album 3 - United Colors-min.webp
./Webp/ZULU Album 3 - United Colors.webp

So for now, I can use Bulk Compress to avoid having corrupt filenames 🙂

@ARAKHN1D
Copy link
Contributor

Hm. Seems like the issue is either with dragging and dropping or non-recursive compression. Do filenames still get corrupted for you if you turn off recursive compression in settings and drag and drop a folder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature-request Feature request
Projects
None yet
Development

No branches or pull requests

3 participants