I have an image in PNG format and bounding box coordinates (upper left, lower right). How do I georeference it using command-line interface tools such as GDAL (or Python if it is not possible)?
In the end, I want to open the PNG image in QGIS but NOT use QGIS to georeference it (because I need to create an automation script).
for instance, the image name is image.png
and the bounding box is 53.1111876266,11.7303748998,55.5611387985,13.1036943879
. What should I type in my terminal?
gdal_translate -co "WORLDFILE=YES" image.png output.png
you might also need to use -a_ullr <ulx> <uly> <lrx> <lry>