Skip to content
Snippets Groups Projects
  1. Sep 08, 2019
  2. Jun 25, 2019
  3. Jun 20, 2019
  4. May 15, 2019
  5. Feb 24, 2019
  6. Feb 03, 2019
  7. Nov 17, 2018
  8. Nov 12, 2018
    • Travis Ralston's avatar
      [MAJOR MIGRATION] Initial structure for a concept of "datastores" · c2bc340c
      Travis Ralston authored
      **Caution**: This is a major migration that changes how files are tracked within the database. Although tested to ensure things won't go wrong, there is the possibility of something going haywire. It is recommended to run the following database commands before upgrading:
      
      CREATE TABLE media_backup AS TABLE media;
      CREATE TABLE thumbnails_backup AS TABLE thumbnails;
      
      In the event you need to roll back, run the following:
      DROP TABLE media;
      DROP TABLE thumbnails;
      CREATE TABLE media AS TABLE media_backup;
      CREATE TABLE thumbnails AS TABLE thumbnails_backup;
      DELETE FROM gomigrate WHERE migration_id = 7;
      
      This will cause any files uploaded between upgrading and rolling back to be lost.
      
      NOTE: The migration will take a while and runs on the first access of a file. If you have a lot of files, this could take a while.
      
      -----
      
      Fixes https://github.com/turt2live/matrix-media-repo/issues/106
      Step towards https://github.com/turt2live/matrix-media-repo/issues/47
      c2bc340c
  9. Jun 17, 2018
  10. Jun 15, 2018
  11. Mar 21, 2018
  12. Mar 20, 2018
  13. Jan 21, 2018
  14. Jan 20, 2018
    • Travis Ralston's avatar
      Introduce thumbnails to the cache · 7d05b2c6
      Travis Ralston authored
      This includes some refactoring to reduce the size of each file. The base cache operations (create, etc) are now in their own file for instance. The methods pertaining to just media or just thumbnails are also isolated.
      7d05b2c6
  15. Jan 16, 2018
    • Travis Ralston's avatar
      Add a way to disable animated thumbnails · 5c0cbb0c
      Travis Ralston authored
      They can be very CPU intensive, and people may not want to suffer that. Having the option to turn them off isn't a bad idea.
      5c0cbb0c
    • Travis Ralston's avatar
      Honour EXIF data when thumbnailing · de059c82
      Travis Ralston authored
      Fixes #37
      de059c82
    • Travis Ralston's avatar
      Fix animated thumbnailer · d744182d
      Travis Ralston authored
      * Use a swap image for resizing the frame (otherwise the frame gets corrupted)
      * Use a linear resample filter (better output quality)
      * Redraw the frame using a different technique
      * Set the bounds of the image on the image config prior to re-encoding (otherwise the image has a bunch of whitespace)
      
      This finishes #28
      d744182d
  16. Jan 15, 2018
  17. Jan 12, 2018
    • Travis Ralston's avatar
      First attempt at generating animated thumbnails · c0cdb77d
      Travis Ralston authored
      This doesn't work on two grounds:
      * There is significant pixelation
      * The resulting image size is wrong (but the frames are correct)
      
      This is part of #28 and needs some cleaning up before it's an active code path. Pushing now because this code path won't be activated under normal circumstances.
      c0cdb77d
    • Travis Ralston's avatar
      Support ?animate=true/false on thumbnail generation · 9bb3aa3f
      Travis Ralston authored
      This is the first part of #28. It defaults to false to maintain synapse parity and normal expected behaviour. This commit does the basic gif->png thumbnailing (forced when required), but does not handle resizing gifs.
      9bb3aa3f
  18. Jan 09, 2018
  19. Jan 06, 2018
Loading