Skip to content

Commit

Permalink
If shooting RAW, display thumbnail on the main page
Browse files Browse the repository at this point in the history
Partly addresses Issue #77
  • Loading branch information
greiginsydney committed Jun 17, 2021
1 parent 1cd7e21 commit 220402b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Raspberry Pi/www/intvlm8r.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,11 @@ def main():
piLastImageFileAsJpg = piLastImageFileAsJpg.replace(".NEF", ".JPG")
if os.path.exists(piLastImageFileAsJpg):
piLastImageFile = piLastImageFileAsJpg
piLastImageFile = 'photos/' + piLastImageFile.replace((PI_PHOTO_DIR + "/"), "")
else:
pass
#This is where the code to show the thumbnail will go. TODO.
piLastImageFile = piLastImageFile.replace((PI_PHOTO_DIR + "/"), "")
piLastImageFile = 'thumbs/' + piLastImageFileAsJpg.replace((PI_PHOTO_DIR + "/"), "")
else:
piLastImageFile = 'photos/' + piLastImageFile.replace((PI_PHOTO_DIR + "/"), "")
except:
flash('Error talking to the Pi')
PI_PHOTO_COUNT = 0
Expand Down

0 comments on commit 220402b

Please sign in to comment.