Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
2 answers
2k views

Converting PNG to GeoTIFF using GDAL Python

I want to ask how to convert PNG to GeoTIFF using GDAL in Python. I ran this code but it's not work and I want to export the output into my computer. How can I fix my code? ds = gdal.Open('input.png') ...
ghea ayunda's user avatar
4 votes
2 answers
3k views

How to convert GeoTiff to PNG + World file in QGIS

I have quite a big area with DTM as a GeoTIFF. I want to save it to PNG with world file, but how to do it just in QGIS? I know I can export view to PNG with world file, but it looses quality (Project/...
Lynx's user avatar
  • 81
6 votes
2 answers
6k views

Converting PNG files to GeoTIFF using Python

I have a big set of PNG files and EPSG:3006 coordinates of the edges of each file. (actually the coordinates of the edges are given in the file name, like this: 'image_666751_7023263_667007_7023519....
Arshak's user avatar
  • 279
2 votes
0 answers
3k views

Create GeoTIFF from PNG raster with PGW world file with GDAL

I've used GDAL tools for several other operations on GeoTIFFs. There is lots of information on how to splice GeoTIFFs into PGW world files and images, but I haven't found ANY documentation on how to ...
Andreas's user avatar
  • 51
3 votes
3 answers
4k views

ERROR 1: Error : band 1 has no color table

I would like to convert a GeoTIFF to PNG or JPEG RGB, and my GeoTIFF is stripped of a lot of valuable data (I think..) I am on ubuntu and I am using gdal_translate to try and make a GeoTIFF turn into ...
user1709076's user avatar
5 votes
2 answers
4k views

Converting 4-band TIF to PNG while keeping all 4 bands?

I have a number of aerial photos containing both RGB and a near-infrared band. The images are in TIF-format, however I need to convert them to PNG without losing any of the bands. I have tried ...
Chrisnizz's user avatar
  • 440
1 vote
1 answer
4k views

SVG to PNG in plugin code - python

I am making a plugin and what I want to do is display a preview of image in widget. I have previews saved as SVG files. I found a way to show it in plugin window but I must convert them to PNG first. ...
W. Tom's user avatar
  • 666
3 votes
4 answers
4k views

Converting TIF to PNG for Leaflet map

I have a single-band, georeferenced .tif file that I would like to display on top of a Leaflet.js map, using the ImageOverlay function. Unfortunately, Leaflet seems only to accept PNG or JPG files, ...
John's user avatar
  • 538
8 votes
2 answers
13k views

Convert PNG to GeoTiff using GDAL

I have a map portion PNG and its associated PRJ file. I want to convert the PNG to a GeoTIFF. I know how to convert a PNG to a GeoTiff if the bounding box is available: gdal_translate -of Gtiff -...
Kartins's user avatar
  • 283
3 votes
1 answer
14k views

Finding good Mbtiles to png tiles converter?

I'm trying to create a slippy map and I need to obtain png tiles. I have exported a .mbtiles file from TileMill and I tried several python scripts to convert this file into png tiles but I always end ...
Herakith's user avatar
2 votes
2 answers
2k views

Creating VRT from PNG files in QGIS

This is similar to a question asked by someone else, re OS tiles. However, there is a difference! I have a large number (over 10k) of georeferenced png files which I have mosaicked in ArcMap, but ...
Simonrp's user avatar
  • 29
4 votes
2 answers
2k views

ImageMagick's convert program changes PNG file format so that color/alpha info doesn't survive GDAL

It appears that ImageMagick's convert program changes something in my PNG file that causes GDAL processing to mess up the color and/or transparency bands. My original PNG file gets processed ...
Jeffo's user avatar
  • 83