Logged In: NO

True. Maybe even beter: how about a filetype array? This
would include .jpeg and .jpg at first, and perhaps other
filetypes too in the near future? Just thinking forward in
time. :D

But meanwhile, I have changed \.jpg into \.jpeg in the PHP
file, and renamed all files with this command:
rename 's/\.jpg$/\.jpeg/' *.jpg