Page 1 of 1

File extension problem

Posted: Mon Apr 18, 2011 6:45 am
by mackowiakp
My Kodak photo camera saves file with extension JPG (capital letters) instead of jpg (small letters). Is any posibility to make TwonkyServer working tith sych files? At this time such photos are not listed both on Twonky Web control panel and on TV.

Re: File extension problem

Posted: Fri Apr 22, 2011 5:16 pm
by DaemonBeetle
What operating system and what version of Twonky are you running? I'd expect Windows to display them (since it isn't case sensitive) but other operating systems may not.

Re: File extension problem

Posted: Fri Apr 22, 2011 7:50 pm
by mackowiakp
I use Linux Mandriva. Sorry, but I am Microsoft FREE !!!

Re: File extension problem

Posted: Fri Apr 22, 2011 10:51 pm
by DaemonBeetle
You forgot the other half of the question ;)

It may be simpler to run a script to turn your .JPG files back into .jpg files:

Code: Select all

find /some/path -type f -name "*.JPG" -print | while read FILENAME; do
  newNAME=`echo "${FILENAME}" | sed "s/.JPG$/.jpg"`
  mv "${FILENAME}" "${newNAME}"
  done

Re: File extension problem

Posted: Mon Apr 25, 2011 7:54 pm
by mackowiakp
Yeeeh. It solved problem but not on-line. I use simmilar script and run from cron.