Digital Geography

reproject and filetype change in python/pyqgis for QGIS plugin

In my current work on the qgis2leaf plugin I had the idea to place raster data on a leaflet map as an image overlay. With this in mind and looking at a webmap I needed to consider a good filesize, a strict projection of EPSG:4326 and a strict filetype as well. So decision was: projecting everythin to EPSG:4326 and changing file type to *.jpg. I know, how to do this in the Terminal and in QGIS. But what options do you have using python/ pyqgis only? Terminal For doing this work in the terminal/shell/command line the one and only choice…