Questions tagged [png]

Use this tag when asking questions related to, Portable Network Graphics (PNG), a bitmapped image format that employs lossless data compression

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Images imported as symbol through Picture Maker have backgrounds using ArcGIS Pro

I am using ArcGIS Pro. I am attempting to upload a PNG image (Turbine 1 attachment) as a point symbol, however anytime I try to do this the image has either a fully white or black background. I have ...
0 votes
0 answers
6 views

Embedded PNG with a transparent background not exporting in certain area of the map

I've managed to find that an embedded PNG image (with a transparent background), whether saved as a part of a map or not, is not exported with the map itself in a right part of a map only (area cca 6-...
0 votes
0 answers
18 views

QGIS2Web for MapBox output - png file displays upside down

I am using QGIS2Web to generate web maps from data in Ireland. I have gone through this process with leaflets, but now I am trying Mapbox output. The 'background' is a raster file of hillshading. I ...
0 votes
2 answers
83 views

Is there any way to get the information in XML, or GeoJSON or in any text format for this ArcGIS from URL?

I have a URL like this https://arcgisserver.lund.se/arcgis/rest/directories/arcgisoutput/extern/Extern_Stadsplanering_MapServer/_ags_mapd3b02fb986704186a28a270abd0baff1.png Source Page https://...
  • 3
0 votes
0 answers
76 views

R : Reading KMZ and appending geography to polygon from png

Question: How do I make a png embedded within a kmz useable as a polygon? Context: I am trying to read a KMZ file generated by a free 3rd party tool and to make the .png image within useable as a ...
  • 1
0 votes
0 answers
125 views

Convert multiple PNG files to one JPEG

Here I have converted a .mbtile file to PNG. The output creates a main folder with multiple subfolders. Those subfolders contain multiple PNGs. I would like to convert all those PNG files to one JPEG ...
  • 1
1 vote
1 answer
59 views

Should I use TIFF or PNG Maps [closed]

I have a school project in which I should forecast the UV index based on historical data in former UV maps. This website http://www.soda-is.com/pub/files/iresen/ includes the UV maps both in TIFF and ...
  • 29
0 votes
1 answer
47 views

Export PNG in QGIS, same extent but outputs are not exactly the same

I export the PNG with same extent, same resolution and scale but the output width are not exactly the same. It's quite annoying to me, and I have no idea why could this happen Are there any ...
  • 1
0 votes
1 answer
141 views

Georeferencing PNG from bounding box in GDAL?

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 ...
  • 764
0 votes
0 answers
45 views

geotools GridCoverage2D set the color

When I save my GridCoverage2D as a tif file and search it, the color is white. I want to set the low value to green and the high value to red (green-yellow-red) And save it as a png file by specifying ...
3 votes
1 answer
40 views

<geotools/HeatmapProcess> convert GridCoverage2d to BufferedImage

I got the heatmapprocessTest code from geotools github However, I can't confirm that the heat map is coming out well. Ultimately I want to create and save the heatmap as a BufferedImage. (png) For ...
1 vote
0 answers
106 views

OpenLayers - Add PNG image static from local disk? [closed]

I have some layers in GeoServer, where I used the OpenLayers technology to act as a viewer for these. The code is the following: <!doctype html> <html lang="es"> <head> &...
0 votes
2 answers
526 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') ...
0 votes
0 answers
179 views

Show map tiles made in MapTiler in OpenLayers?

I converted GeoTIFF to png-tiles using MapTiler. Here is the folder structure: Now I'm trying to add this folder with png-tiles to OpenLayers as XYZ source: var layer = new ol.layer.Tile({ ...
1 vote
0 answers
156 views

Export QGIS layout as georeferenced PNG image with PyQGIS

I am using PyQGIS to export a map layout like this exporter = QgsLayoutExporter(layout) settings = exporter.ImageExportSettings() settings.dpi = 100 path = 'C:/data/test1.png' exporter.exportToImage(...
  • 438
1 vote
0 answers
216 views

Saving 16bit raster to RGB PNG (or TIF) in QGIS

I was following this post here: Converting Grayscale GeoTIFF to PNG using QGIS results in all black image I don't want a grayscale but RGB PNG. When I do Raster->translate and select byte I only ...
  • 195
1 vote
2 answers
167 views

GTiff to PNG conversion- Gdal Python

I am trying to convert a Gtiff image to PNG using Gdal in python with gdal_translate. My gtiff has the following properties: Width 255 Height 255 Data type Float32 - Thirty two bit floating point ...
0 votes
0 answers
59 views

Only one image is showing up on OpenLayers map

I can only get one of the following DEM_image PNGs to show up on my map. Its always the first one "DSS.layer.DEM.image0" that shows up, the rest do not render. I can see in the console ...
4 votes
1 answer
49 views

Gradients Changed on Export in QGIS when Coord Mode set to Viewport

I made a map in QGIS that includes a couple different gradients. Here you can see an indicator map that has a gradient fill enabled. (This image is from the print layout/composer.) (Here is the ...
  • 353
1 vote
1 answer
129 views

Extracting all polygons from GeoTIFF raster layer as PNG images using QGIS

I have a GeoTIFF file with multiple separated polygons on it as the following: I'd like to find a way of extracting all these polygons as separated individual PNG images, just so I can have them as ...
  • 1,041
1 vote
0 answers
129 views

Convert a one-band GTIFF to PNG with adjusted color ramp using GDAL

I have a one-band fCover GTiff with values ranging between 0 to 0.4 and I would like to convert it to a png using a color ramp adapted to this tiff. I already have a png from this tif but the color ...
1 vote
1 answer
184 views

Reading from PNG file in Java from using GDAL

I've used gdalwarp.exe to project a tif-file from EPSG:4326 to EPSG:32635 and storing it in the PNG-format: gdalwarp.exe -dstalpha -t_srs EPSG:32635 -s_srs EPSG:4326 -if GTiff -of PNG -et 0.125 -r ...
  • 93
0 votes
0 answers
91 views

Is there a way to use QGIS' qgis:tilesxyzdirectory algorithm from a shell script?

I currently have a KML file which I upload to QGIS as a layer. From there I navigate the UI to Raster tools -> 'Generate XYZ tiles (Directory)' under the processing toolbox. For the EXTENT ...
0 votes
1 answer
109 views

Looping through features in layer to zoom to feature and export to PNG using ArcPy with ArcGIS Pro

I have a shapefile with a large number of features with consecutive IDs, and I need to zoom in each one and export the map as a PNG file. I found a previous identical question where the code that was ...
0 votes
0 answers
82 views

Fastest way to generate PNG tiles from a KML file

I have several KML files and each KML is being parsed, turned into a geometry with PostGIS' ST_GeomFromKML() and saved to a database. This database is parsed and uses ST_AsPng() to process each ...
1 vote
0 answers
343 views

Converting GeoTIFF to PNG results in completely black image

I have a set of DEM tiles (TIFF format) retrieved from https://cteco.uconn.edu/data/download/flight2016/index.htm which I would like to convert to 16-bit PNG format so that I can use them as ...
  • 111
0 votes
0 answers
85 views

Exporting very large map to image in QGIS [duplicate]

I'm trying to use QGIS 3.10.14 to create a hydrological map to edit (as a PNG) in image editing software. My purpose is recreational. I've paired the Copernicus EU-hydro river network with ESRI ...
  • 21
3 votes
2 answers
1k 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/...
  • 71
0 votes
2 answers
152 views

ArcPy exporting maps to PNG problem - raster DEM does not show up in exported map file

I sm using ArcGIS Desktop (ArcMap) 10.8.1 and PyCharm 2020.3.3. I'm trying to use a simple script to loop through a folder and export a PNG file for each MXD in the folder. The script works fine, and ...
2 votes
0 answers
73 views

Do PNG files suffer performance for scaled read over ERDAS Imagine (.img) files?

So I have a 20 GB in size Raster Image in .img format. Though I will be examining the code, to find out why, I am AMAZED at how quickly QGIS renders the entire file in a scaled format, and prior to ...
1 vote
0 answers
118 views

How to request GeoServer elevation data from GeoServer to PNG file with the minimum loss of precision

I'm requesting alt data on GeoServer from a layer group as a PNG file. The colormap of the style associated with the layer is the following : <ColorMap> <ColorMapEntry color="#...
1 vote
1 answer
99 views

Exporting data frame as PNG after adding Layer File using ArcPy in ArcMap

My question relates to the answer found at Exporting data frame as PNG in ModelBuilder using ArcMap I've followed the steps in the answer provided by @PolyGeo, but my output PNG is just a blank image. ...
2 votes
1 answer
259 views

QGIS crashing when exporting very large image

I'm trying to export a PNG of the OS 250k raster with OS Open Rivers over the top. Trying to export the entirety of the national grid caused it to crash, so I tried again with the bottom half of Great ...
  • 21
2 votes
1 answer
2k views

Georeferencing of PNG and Convert to TIFF using Python

I have a PNG image which I am trying to georeference using four corners of coordinate information of the defined input image. When I am trying to convert PNG to TIFF, I am getting 3 bands (R,G,B) ...
  • 121
0 votes
1 answer
887 views

Export a map and a legend as a PNG with OpenLayers 6

I would like to export a map with a legend in the same PNG using OpenLayers 6. I searched in the OpenLayers documentation but I got just how to export a map (without a legend). How can I do this?
  • 63
0 votes
1 answer
60 views

Shader is not working correctly / set(material.[]) is buggy

Concider this first Example: My CGA File: const dryWallCol = "Walltexture1/Drywall4.png" Lot --> primitiveCube(20,20,20) ...
-1 votes
1 answer
820 views

Convert shapefile to PNG using GeoTools

I need to know how to export a .shp file to .png in Java using geotools. I found an example here: Convert geojson to png. But I need convert shapefile to PNG.
  • 95
3 votes
1 answer
991 views

Exporting a raster map to PNG in QGIS keeping the exact legend colors

I'm developing a plugin for QGIS called 'Mappia_Example' to allows the community to publish its maps online. But i need some help, i am trying to export a map in QGIS to PNG but its using aproximated ...
  • 93
0 votes
0 answers
875 views

How to convert GeoJSON to PNG image

I'm looking to use the geojson module in Python, as well as Pilllow to convert a .geojson to a .png image. I know how to extract the data from the file but I don't know what to do from there.
1 vote
0 answers
129 views

Export to PNG produces wrong color background (but not for JPG)

I need to export a map as a PNG image, but when I do the background, which is supposed to be white, comes out gray. This also happens when I export it as a TIFF or EMF, but not as a JPG. I have tried ...
2 votes
1 answer
258 views

Export Raster tiles in JPEG/PNG format using PostGIS

I imported my image with three bands (RGB) with 100*100 tiles using raster2pgsql into the DB. Now, I need to export those tiles separately. I used the following code but it produces a table select ...
  • 63
2 votes
1 answer
541 views

gdal_translate problem translating 16bit PNGs

I am trying to use the SRTM earth images to convert them into heightmaps for 3D application. I can output a 8-bit PNG like this: gdal_translate -ot Byte -scale -of PNG srtm_44_05.tif heightmap.png ...
0 votes
0 answers
57 views

Superimposing high resolution but partial coverage images on a smaller resolution images for use in GeoServer

For the same area, I have 2 sets of images, the first is high resolution but it doesn't cover fully the area and the images have somehow uneven borders just like this picture. The second one has ...
0 votes
2 answers
981 views

Digitizing PNG image in QGIS

Following Getting polygons from PNG images for the QGIS Shapefiles I intended to digitize the following PNG image in QGIS 3.8 following this instruction: https://www.qgistutorials.com/en/docs/...
  • 3,521
2 votes
0 answers
1k views

Getting polygons from PNG images for the QGIS Shapefiles

I would like to have ready polygons (borders) from some .PNG image and use them in QGIS as a shapefile. My file looks like this: which is crude raster PDF. My goal is to execute all borders (marked ...
  • 3,521
1 vote
3 answers
181 views

ExportToPNG produces shifted images

I am using ExportToPNG (in ArcGIS 10.3.1) to produce images from a MXD with WMS data. If I use the interface command ExportMap with the option "1-BIT_MONOCHROME_THRESHOLD" and a threshold at ...
3 votes
1 answer
1k views

Merge *.png files into one using GDAL

I built a Python script that downloads tiles from some map service. This service cannot be imported to QGIS as a tile layer so I decided to download tiles directly using requests module. The script ...
1 vote
1 answer
68 views

Weird looking color when creating tiles from large GeoTIFF

I encounter some weird problem when creating tiles from GeoTIFF. Context: I am generating small tiles from a large GeoTIFF image. The B and R band were swapped so I had to do a gdal_translate to swap ...
  • 233
4 votes
2 answers
4k 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....
  • 251
2 votes
1 answer
1k views

Exporting map error from QGIS

Whenever I try to export a map as an PNG image I get the 'successfully export' message but there is no file generated. The error happened in Zanzibar so I changed to Noosa but I still can't export the ...