1. 03 Jun, 2014 3 commits
  2. 02 Jun, 2014 1 commit
  3. 29 May, 2014 1 commit
  4. 27 May, 2014 4 commits
  5. 25 May, 2014 3 commits
  6. 24 May, 2014 11 commits
  7. 23 May, 2014 7 commits
  8. 20 May, 2014 1 commit
  9. 19 May, 2014 1 commit
  10. 15 May, 2014 1 commit
  11. 12 May, 2014 2 commits
    • Serge S. Koval's avatar
    • Sergey Markelov's avatar
      A proposal to fix https://github.com/mrjoes/flask-admin/issues/532 · eddc1e17
      Sergey Markelov authored
      From the issue:
      
      If an image extension is 'jpeg' (not 'jpg'), then inside
      ImageUploadField._save_file() the call to self._get_save_format() enters
      the if-statement where the filename is changed to ${name}.jpg. The
      format stays unchanged, though, because it's the same 'JPEG'. As a
      result, the original filename is preserved on disk, which is
      ${name}.jpeg, but _save_file() returns ${name}.jpg.
      
      self._save_thumbnail(data, filename, format) saves the thumbnail file
      under ${name}_thumb.jpg
      
      At the time when ImageUploadField._save_file() is finished, two files
      are created:
      
      ${name}.jpeg
      ${name}_thumb.jpg
      Would you consider changing
      
      def _save_file(self, data, filename):
      ...
      data.save(path)
      
      to
      data.save( self._get_path(filename) )
      
      In that case the original image will be saved with the updated filename
      after self._get_save_format(filename, self.image)
      eddc1e17
  12. 09 May, 2014 2 commits
  13. 07 May, 2014 3 commits