photo-stream icon indicating copy to clipboard operation
photo-stream copied to clipboard

Photos with JPG as extension name will result 404 for those photos

Open lucky13820 opened this issue 5 years ago • 6 comments

Change JPG to jpg and reupload all the photos will solve this problem.

lucky13820 avatar Mar 17 '20 05:03 lucky13820

Thank you :)

vivekvayer avatar Mar 18 '20 08:03 vivekvayer

@lucky13820 I dont know where i am goin wrong, but i cant seem to rename from JPG to jpg. What did you do? Thanks!

vivekvayer avatar Mar 18 '20 09:03 vivekvayer

I first change the extension name to jpg first. Then I move all the photos in photos/original out to other place. Then commit it as removing all photos. Then move all the photos back and commit it again.

lucky13820 avatar Mar 18 '20 16:03 lucky13820

Hi @lucky13820 Sorry but i dont get it. I cant actually change it to jpg, it automatically saves as JPG.

vivekvayer avatar Mar 19 '20 10:03 vivekvayer

Hi @lucky13820 Sorry but i dont get it. I cant actually change it to jpg, it automatically saves as JPG.

Then I'm not sure. I'm doing everything on my Mac.

lucky13820 avatar Apr 23 '20 21:04 lucky13820

A workaround while inside photos/original/ is to run this command:

for img in *.JPG ; do mv -- "$img" "${img%.JPG}.jpg" ; done

This takes all images with the extension .JPG and changes to .jpg.

timharek avatar May 11 '21 21:05 timharek