Thread:Project:Support desk/Execute bash script, upload and create page/reply (2)

You would probably want to look at image handler classes (See things like Extension:PdfHandler.

If you want to convert something before its needed, you probably want to look at the job queue. Extension:TimedMediaHandler for example converts video files in the background to different formats.