SD card image files corrputed for no reasons

Hello,

I have a Cannon DSLR and each time I take images with it and get them on my computer some images (only JPEGs, raws are always fine) are corrupted.

At first, I blamed my SD card, so I changed it but still the same issue… and when using cannon connect files are fine and to be certain I tried on a MAC and same, files are ok.

The strange thing is that it’s always the same files that are corrupted, so it’s not even random. I was wondering if someone else has the same issue or if it’s a known bug.

Here is a sample image that has the issue :

And some are too corrupted to even being displayed for some reason…

Error message for this one on more info :

Remote error: org.gnome.glycin.Error.LoadingError: loaders/glycin-image-rs/src/main.rs:189:29: /run/build/glycin-loaders/vendor/glycin-utils/src/image_rs.rs:54:41: Format error decoding Jpeg: "No more bytes"

Both files when imported using a MAC are fine.

PS : issue occurs also in the file manager in the thumbnails, not only in Loupe

Thanks for your help :slight_smile:

no idea what does the corruption, but i generally avoid using JPEG format on camera and use only RAW since it gives so much more to edit than JPEG. also using RAW plus JPEG on camera you waste valuable space on card

Thanks for the advice, I use both, I have RAW and JPEG for the same image, I just like the convenience of having a JPEG that I can open everywhere and use without editing as sometimes I don’t need to do anything in Affinity.

So I can definitely back up a “Corrupted JPEG” from the same RAW file. Or just use another device with Windows or MAC that also work.

using JPEG compress and removes alot for editing side so RAW is best and if i need to take straight some instantly out from camera i use canon Camera Connect app. Connect the phone to to camera choose RAW images and download to phone auomatically converted to JPEG format keeping max resolutioon and details

alos it literally take 5 minutes to open Darktable add RAW files choose all files and export as JPEG back

This is weird. Have you tried using another application that might have another decoding library? Install Gwenview on Linux | Flathub

Thanks,

I’ve tried using it, the corrupted file looks the same, but it was able to open the second file but still corrupted.

Second file :

Is there anything else different between your Linux and macOS setup? Is the sdcard reader the same? If you open the image on Linux and then on macOS, do they work there? and the reverse?

No, the setup isn’t the same, but I’m dualbooting my Linux laptop with Windows, and it works fine on Windows, but when using it on Linux I have that issue.

I’ve also tried multiple adapter but same issue.

Formatting the Card doesn’t fix the issue either.

So the same image works on Windows but not on Linux? Can you compute the hash of the image and make sure that’s what’s happening?

I think I’ve understood what was going on, On Windows I didn’t noticed the issue cause the file are just not showing at all and so it makes it hard to identify faulty files when I have a lot of them in a folder.

Using a different adapter than the 3 I had tried (I’m not lucky I guess) I managed to get my images without issues.

So Hardware fault, I guess :frowning: just having 3 of my adapter doing the same issue is strange.

MD5 hashes aren’t the same for the same image imported.

20f54613dc2924aaf03e010afc0a06c5 (Linux)
6189525771b25eca17288c03bba9964e (Windows)

File size are the same.

Thank you all for helping and sorry for the inconvenience, I just have crappy hardware -_-

2 Likes

UPDATE it was A FAULTY BIOS !

Lenovo Fixed it after I called them I can use my SDCard reader built in now :slight_smile:

So if anyone has a Lenovo device with the same issue… I guess call them :confused:

4 Likes

Just for curiosity, how did you get the new bios update? Could you install it with the Software app?

Lenovo has a Linux page, I would first check there before calling them. They probably have some info’s there.

https://support.lenovo.com/uu/en/solutions/pd031426-linux-for-personal-systems

I’m dual booting just for that reason… I used the official package from Lenovo.

Also you can use vantage on dual boot.

Honestly the Lenovo NON-THINKPAD state on linux is really bad…

I still have speaker issues sometimes and the battery is not great at all.