}
function setpic() {
- if ("exposure" in picinfo[files[input_index]]) {
- exposure = picinfo[files[input_index]].exposure;
+ var display_filename;
+ if (endsWith(files[input_index], ".NEF")) {
+ if ("exposure" in picinfo[files[input_index]]) {
+ exposure = picinfo[files[input_index]].exposure;
+ } else {
+ picinfo[files[input_index]].exposure = exposure;
+ save_picinfo();
+ }
+ display_filename = zoom + exposure + "/" + stripFromEnd(files[input_index], ".NEF") + ".jpeg";
} else {
- picinfo[files[input_index]].exposure = exposure;
- save_picinfo();
+ display_filename = zoom + files[input_index];
}
- $("#pic").attr("src", zoom + exposure + "/" + files[input_index]);
+ $("#pic").attr("src", display_filename);
}
function say(message) {