Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -202,14 +202,21 @@ |
203 | 203 | _this.ui.setStatus( 'mwe-upwiz-getting-metadata' ); |
204 | 204 | if ( result.upload ) { |
205 | 205 | _this.extractUploadInfo( result.upload ); |
| 206 | + // create the small thumbnail used on the 'upload' step |
206 | 207 | _this.getThumbnail( |
207 | 208 | function( image ) { |
208 | 209 | // n.b. if server returns a URL, which is a 404, we do NOT get broken image |
209 | | - _this.ui.setPreview( image ); |
| 210 | + _this.ui.setPreview( image ); // make the thumbnail the preview image |
210 | 211 | }, |
211 | | - mw.UploadWizard.config[ 'iconThumbnailWidth' ], |
| 212 | + mw.UploadWizard.config[ 'iconThumbnailWidth' ], |
212 | 213 | mw.UploadWizard.config[ 'iconThumbnailMaxHeight' ] |
213 | 214 | ); |
| 215 | + // create the large thumbnail that the other thumbnails link to |
| 216 | + _this.getThumbnail( |
| 217 | + function( image ) {}, |
| 218 | + mw.UploadWizard.config[ 'largeThumbnailWidth' ], |
| 219 | + mw.UploadWizard.config[ 'largeThumbnailMaxHeight' ] |
| 220 | + ); |
214 | 221 | _this.deedPreview.setup(); |
215 | 222 | _this.details.populate(); |
216 | 223 | _this.state = 'stashed'; |
Index: trunk/extensions/UploadWizard/UploadWizard.config.php |
— | — | @@ -189,7 +189,13 @@ |
190 | 190 | |
191 | 191 | // Small thumbnail max height |
192 | 192 | 'smallThumbnailMaxHeight' => 100, |
| 193 | + |
| 194 | + // Large thumbnail width |
| 195 | + 'largeThumbnailWidth' => 500, |
193 | 196 | |
| 197 | + // Large thumbnail max height |
| 198 | + 'largeThumbnailMaxHeight' => 500, |
| 199 | + |
194 | 200 | // Icon thumbnail width: |
195 | 201 | 'iconThumbnailWidth' => 32, |
196 | 202 | |