Convert GeoTIFF to PNG/JPEG doesn't generate a picture with correct colour scaleImageMagick's convert program...
When can a QA tester start his job?
How can I get my players to come to the game session after agreeing to a date?
Is it possible to grant users sftp access without shell access? If yes, how is it implemented?
Cookies - Should the toggles be on?
What are "industrial chops"?
Increasing the flow in descriptions of a sequence of events
Exchange Online Migration: Single Tenant with Multiple Exchange Endpoints
Gear reduction on large turbofans
What's a good word to describe a public place that looks like it wouldn't be rough?
Why zero tolerance on nudity in space?
Quickly creating a sparse array
What is the difference between rolling more dice versus fewer dice?
Why avoid shared user accounts?
What are the exceptions to Natural Selection?
How to deal with an incendiary email that was recalled
Why publish a research paper when a blog post or a lecture slide can have more citation count than a journal paper?
Why did the villain in the first Men in Black movie care about Earth's Cockroaches?
In Linux what happens if 1000 files in a directory are moved to another location while another 300 files were added to the source directory?
Why don't hotels mount air conditioning units outside the rooms?
Consequences of lack of rigour
Why wasn't TEventArgs made contravariant in the standard event pattern in the .NET ecosystem?
Why would space fleets be aligned?
Increment each digit in a number to form a new number
What does it mean for a caliber to be flat shooting?
Convert GeoTIFF to PNG/JPEG doesn't generate a picture with correct colour scale
ImageMagick's convert program changes PNG file format so that color/alpha info doesn't survive GDALGDAL_TRANSLATE Assumes Picture is Orientated North?Decompress a LZW-compressed GeoTIFFWhy result of merge of multiple raster is so big?GeoTiff to 16 bit tiff, png or bmp image for heightmapUInt16 only has 256 bucketsUsing gdal_translate and -scaleGDAL Translate with WMS Source tears rasterUnable to convert 3 band Spacenet dataset geotiff image to either jpg or png with gdalconvert png with alpha channel to GeoTiff
I have a GeoTIFF, when I open it on arch gist, it shows 2812.15 to 2846.09 colour range. My gdal_translate commend is gdal_translate -ot UInt16 -of PNG -scale 2812.15 2846.09 2812.15 2846.09 x.tif x.png Which generates a picture in 0 to 65535 scale. I know it's not possible to have Float32 with PNG. I'm looking for a way to get the picture with exact colour range as TIFF one or using another popular format to get that if it's not possible with PNG or JPEG.
gdal gdal-translate
New contributor
tahereh firoozian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I have a GeoTIFF, when I open it on arch gist, it shows 2812.15 to 2846.09 colour range. My gdal_translate commend is gdal_translate -ot UInt16 -of PNG -scale 2812.15 2846.09 2812.15 2846.09 x.tif x.png Which generates a picture in 0 to 65535 scale. I know it's not possible to have Float32 with PNG. I'm looking for a way to get the picture with exact colour range as TIFF one or using another popular format to get that if it's not possible with PNG or JPEG.
gdal gdal-translate
New contributor
tahereh firoozian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
What happens when you omit the -scale? Are you sure the cell values have actually changed? 0-65535 is the maximum possible range for Int16 data type, it's possible that this range is being shown due to lack of valid statistics. How does it look in a different package like ArcGIS (if you have it) or QGIS? PNG does support Int16 but JPEG does not that I know of support any pixel type other than UInt8 (byte)... What is wrong with the GeoTIFF that you need to convert it?
– Michael Stimson
13 mins ago
add a comment |
I have a GeoTIFF, when I open it on arch gist, it shows 2812.15 to 2846.09 colour range. My gdal_translate commend is gdal_translate -ot UInt16 -of PNG -scale 2812.15 2846.09 2812.15 2846.09 x.tif x.png Which generates a picture in 0 to 65535 scale. I know it's not possible to have Float32 with PNG. I'm looking for a way to get the picture with exact colour range as TIFF one or using another popular format to get that if it's not possible with PNG or JPEG.
gdal gdal-translate
New contributor
tahereh firoozian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have a GeoTIFF, when I open it on arch gist, it shows 2812.15 to 2846.09 colour range. My gdal_translate commend is gdal_translate -ot UInt16 -of PNG -scale 2812.15 2846.09 2812.15 2846.09 x.tif x.png Which generates a picture in 0 to 65535 scale. I know it's not possible to have Float32 with PNG. I'm looking for a way to get the picture with exact colour range as TIFF one or using another popular format to get that if it's not possible with PNG or JPEG.
gdal gdal-translate
gdal gdal-translate
New contributor
tahereh firoozian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
tahereh firoozian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 7 mins ago
Vince
14.7k32749
14.7k32749
New contributor
tahereh firoozian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 4 hours ago
tahereh firooziantahereh firoozian
11
11
New contributor
tahereh firoozian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
tahereh firoozian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
tahereh firoozian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
What happens when you omit the -scale? Are you sure the cell values have actually changed? 0-65535 is the maximum possible range for Int16 data type, it's possible that this range is being shown due to lack of valid statistics. How does it look in a different package like ArcGIS (if you have it) or QGIS? PNG does support Int16 but JPEG does not that I know of support any pixel type other than UInt8 (byte)... What is wrong with the GeoTIFF that you need to convert it?
– Michael Stimson
13 mins ago
add a comment |
What happens when you omit the -scale? Are you sure the cell values have actually changed? 0-65535 is the maximum possible range for Int16 data type, it's possible that this range is being shown due to lack of valid statistics. How does it look in a different package like ArcGIS (if you have it) or QGIS? PNG does support Int16 but JPEG does not that I know of support any pixel type other than UInt8 (byte)... What is wrong with the GeoTIFF that you need to convert it?
– Michael Stimson
13 mins ago
What happens when you omit the -scale? Are you sure the cell values have actually changed? 0-65535 is the maximum possible range for Int16 data type, it's possible that this range is being shown due to lack of valid statistics. How does it look in a different package like ArcGIS (if you have it) or QGIS? PNG does support Int16 but JPEG does not that I know of support any pixel type other than UInt8 (byte)... What is wrong with the GeoTIFF that you need to convert it?
– Michael Stimson
13 mins ago
What happens when you omit the -scale? Are you sure the cell values have actually changed? 0-65535 is the maximum possible range for Int16 data type, it's possible that this range is being shown due to lack of valid statistics. How does it look in a different package like ArcGIS (if you have it) or QGIS? PNG does support Int16 but JPEG does not that I know of support any pixel type other than UInt8 (byte)... What is wrong with the GeoTIFF that you need to convert it?
– Michael Stimson
13 mins ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
tahereh firoozian is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f313816%2fconvert-geotiff-to-png-jpeg-doesnt-generate-a-picture-with-correct-colour-scale%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
tahereh firoozian is a new contributor. Be nice, and check out our Code of Conduct.
tahereh firoozian is a new contributor. Be nice, and check out our Code of Conduct.
tahereh firoozian is a new contributor. Be nice, and check out our Code of Conduct.
tahereh firoozian is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f313816%2fconvert-geotiff-to-png-jpeg-doesnt-generate-a-picture-with-correct-colour-scale%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What happens when you omit the -scale? Are you sure the cell values have actually changed? 0-65535 is the maximum possible range for Int16 data type, it's possible that this range is being shown due to lack of valid statistics. How does it look in a different package like ArcGIS (if you have it) or QGIS? PNG does support Int16 but JPEG does not that I know of support any pixel type other than UInt8 (byte)... What is wrong with the GeoTIFF that you need to convert it?
– Michael Stimson
13 mins ago