[07:55:47] [[Tech]]; ArchiverBot; Bot: Archiving 1 thread (older than 30 days) to [[Tech/Archives/2016]].; https://meta.wikimedia.org/w/index.php?diff=15514231&oldid=15512121&rcid=7631797 [18:03:35] what exactly does doTransform method do? [18:04:56] if i define define the method in my class as function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0){, what parameters are passed to that function or do i have to parameterize everything [18:05:39] i would assume, i need to redefine $image, but dsturl and dstpath should be predefined [18:36:21] Harri1: did you look at the original one? [18:44:27] Harri1: start with the docs on the base method: https://doc.wikimedia.org/mediawiki-core/master/php/classMediaHandler.html#a32a05d4674c0dbda7cd145e9fab42b3d [18:44:49] you may wish to also look at the implementations on the various *Handler classes that implement more or less concrete types [18:44:57] $image is an input parameter, you don't change it :) [18:45:08] you return a MediaTransformOutput which contains various info [18:45:26] about your actual output image/data/html [18:51:15] yes i looked at djvuhandler [18:51:35] from that i found that the method should return new ThumbNailImage [18:52:16] but that's what my problem is, the $image parameter should be null [18:52:35] i don't understand Harri1 [18:52:41] the $image parameter should NEVER be null? [18:52:47] it refers to the source file you're transforming [18:53:11] aah, so image is just a variable name [18:53:14] yes? [18:53:19] gotcha [18:53:32] that led me off the tracks [18:53:45] historically the file uploads system was originally called "image" not "file" so you'll find a mix of terminology [18:53:59] for instance the metadata is still in a table called 'image' etc :) [20:27:20] hmm [20:28:25] so, from what i understand, the dotransform method is a proxy method for changing the parameters like width and height to send to thumbnailImage [20:39:21] just wondering how would i get the snapshot image parameters i create with js back to php [20:48:55] ajax? [20:49:14] a commons way is to use thumb.php [20:50:22] *common [21:27:30] what do you mean use thumb.php [21:27:38] sorry, i dont follow yet