martin-marek / hdr-plus-swift

📸Night mode on any camera. Based on HDR+.
https://burst.photo
GNU General Public License v3.0
208 stars 11 forks source link

Allow for uppercase file extensions #12

Closed tslouf-umich closed 1 year ago

tslouf-umich commented 1 year ago

Noticed that I was unable to process a file with an uppercase extension despite it being a DNG. Once I changed it to ".dng" it worked as expected.

Alex-Vasile commented 1 year ago

Should probably change the check at the beginning of the function to also ensure that it accepts if some files are named with .dng and some with .DNG.

martin-marek commented 1 year ago

Looks great, thanks! I'll still keep the requirement that all extensions are the same (ie all lower- or uppercase) to prevent user error.