Translations:Manual:$wgSharedUploadDirectory/10/en

For resizing images in mediawiki they need to have a row in image table of database containing dimensions and other information of image so you can't resize images that haven't been uploaded by mediawiki software and for importing them to database without using mediawiki interface, you'll need to use some maintainance scripts.(maintanance/importimage.php)