Commit Graph

13 Commits

Author SHA1 Message Date
evazion
c76463f34d uploads: use storage manager to distribute files.
Refactors the upload process to pass around temp files, rather than
passing around file paths and directly writing output to the local
filesystem. This way we can pass the storage manager the preview /
sample / original temp files, so it can deal with storage itself.

* Change Download::File#download! to return a temp file.

* Change DanbooruImageResizer and PixivUgoiraConverter to accept/return
  temp files instead of file paths.

* Change Upload#generate_resizes to return temp files for previews and samples.

* Change Upload#generate_resizes to generate ugoira .webm samples
  synchronously instead of asynchronously.
2018-03-20 19:49:06 -05:00
r888888888
3d9b7f797a delay video/preview gen of ugoira from 2sec to 10sec 2016-02-02 16:35:04 -08:00
r888888888
177ef0ebcc fixes #2307 2014-11-19 17:17:26 -08:00
r888888888
16f9a61d63 fixes #2299 2014-10-29 15:14:17 -07:00
r888888888
3aa0ee2a75 hide ugoira preview/video link if it hasn't finished processing 2014-10-28 11:30:02 -07:00
r888888888
7bc5cf9ddb support for running ugoira conversion manually from console 2014-10-28 11:15:46 -07:00
r888888888
981e6dab67 no longer require presence of ugoira tag to process ugoira posts 2014-10-23 16:34:31 -07:00
r888888888
69564c4bff fix async processing for ugoira 2014-10-22 22:48:20 -07:00
r888888888
e8f973601c fixes for ugoira convert 2014-10-22 22:15:05 -07:00
evazion
035466cfdf Fix call to PixivUgoiraConverter.delay.
Should be `PixivUgoiraConverter.new.delay`, not PixivUgoiraConverter.delay`.
2014-10-19 10:26:21 -05:00
r888888888
b1d5bb8272 make ugoira webm+preview generation async 2014-10-19 02:30:03 -07:00
r888888888
4c73fb9f79 add ugoira support in view 2014-10-19 02:30:02 -07:00
r888888888
3bb06c2be4 integrate ugoiras into zip+webm+preview 2014-10-19 02:30:02 -07:00