workaround for multiple jpeg file problem

Issue #30 resolved
Chris Borel created an issue

Using a couple more lines when reading the JPEG files in Issue #29 seems to work. Here is the code:

for ifil=0,nf-1 do begin
  fil='test\test'+strtrim(ifil,2)+'.jpg'
  openr,1,fil
  read_jpeg,fil,unit=1,img,true=1
  close,1
  print,ifil
endfor

Comments (2)

  1. Lajos Foldy repo owner

    There is a bug in read_jpeg and the file is not closed. You have found the workaround 😀 Fixed for the next snapshot.

  2. Log in to comment