Re: [Wikitech-l] What's the best place to do post-upload processing on a file? Etc.

2012-05-09 Thread emw
Thanks for the pointer Michael -- Timed Media Handler seems like a good example of job queuing use. The way TMH does job queuing seems like a feasible option for the post-upload processing I'm doing. Rather than enqueuing them upon the file's Upload Complete event firing, TMH seems to put video

[Wikitech-l] What's the best place to do post-upload processing on a file? Etc.

2012-05-04 Thread emw
Hi all, For a MediaWiki extension I'm working on (see http://lists.wikimedia.org/pipermail/wikitech-l/2012-April/060254.html), an effectively plain-text file will need to be converted into a static image. I've got a set of scripts that does that, but it takes my medium-grade consumer laptop about

Re: [Wikitech-l] What's the best place to do post-upload processing on a file? Etc.

2012-05-04 Thread Tei
I am just a random user lurking on the mail-list, nor a mw dev, but I wonder why you don't look on the SVG handling already on mediawiki. What you are doing is rendering, with one added dimension :D http://www.mediawiki.org/wiki/Manual:Configuration_settings#SVG This stuff has to do things in a

Re: [Wikitech-l] What's the best place to do post-upload processing on a file? Etc.

2012-05-04 Thread Benjamin Lees
On Fri, May 4, 2012 at 7:58 AM, emw emw.w...@gmail.com wrote: However, I haven't been able to find a way to get the uploaded file's path on the local file system, which I would need to do the transformation. FileRepo::getHashPath() should be what you want.

Re: [Wikitech-l] What's the best place to do post-upload processing on a file? Etc.

2012-05-04 Thread Michael Dale
You will want to put into a jobQueue you can take a look at the Timed Media Handler extension for how post upload processor intensive transformations can be handled. --michael On 05/04/2012 04:58 AM, emw wrote: Hi all, For a MediaWiki extension I'm working on (see