loading jp2 images
This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
loading jp2 images | mlorenzo2408 | 22 Jan 22:33 |
loading jp2 images | Alexandre Prokoudine via gimp-user-list | 22 Jan 22:53 |
loading jp2 images | Adrian Midgley via gimp-user-list | 27 Jan 15:26 |
loading jp2 images | Partha Bagchi via gimp-user-list | 27 Jan 16:21 |
loading jp2 images | mlorenzo2408 | 27 Jan 17:02 |
loading jp2 images | mlorenzo2408 | 27 Jan 18:14 |
loading jp2 images | rich404 | 27 Jan 19:30 |
loading jp2 images | Partha Bagchi via gimp-user-list | 27 Jan 21:19 |
loading jp2 images | rich404 | 28 Jan 08:36 |
loading jp2 images | Partha Bagchi via gimp-user-list | 28 Jan 16:24 |
loading jp2 images | rich404 | 28 Jan 17:16 |
loading jp2 images | Partha Bagchi via gimp-user-list | 28 Jan 17:36 |
loading jp2 images | The Tick | 28 Jan 20:32 |
loading jp2 images | Alexandre Prokoudine via gimp-user-list | 28 Jan 21:44 |
- postings
- 3
loading jp2 images
Hello,
I am trying to load a JP2 image from the USGS.
from the metaviewer i have:
BitsPerSample 8 8 8
Photo.ColorSpace sRGB
From image properties:
Size in pixels: 6963 X 8854 pixels
Color Space: Grayscale
Number of layers: 1
There is a color image there, it shows in qgis. How do i get gimp to load the color image?
mlorenzo2408 (via www.gimpusers.com/forums)
loading jp2 images
On Thu, Jan 23, 2020 at 1:34 AM mlorenzo2408 wrote:
Hello,
I am trying to load a JP2 image from the USGS.
Hello!
You'd have to tell us four more things:
1. Version of GIMP
2. Operating system and its version
3. Whether you see any error messages
4. Whether JP2 is listed in the file type selector in the Open File dialog
Alex
loading jp2 images
That's a JPEG2000 format image.
It allows larger colour depth and lossless compression, compared to JPEG.
Gimp up to 9.2 couldn't open them. I doubt 2.10 can.
You can convert them to JPG or probably to TIF and those are both openable.
On Wed, 22 Jan 2020, 22:34 mlorenzo2408, wrote:
Hello,
I am trying to load a JP2 image from the USGS. from the metaviewer i have:
BitsPerSample 8 8 8
Photo.ColorSpace sRGB
From image properties:
Size in pixels: 6963 X 8854 pixels
Color Space: Grayscale
Number of layers: 1There is a color image there, it shows in qgis. How do i get gimp to load the
color image?--
mlorenzo2408 (via www.gimpusers.com/forums) _______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list
loading jp2 images
This is simply not true. GIMP has been able to open jp2 files for quite some time.
It simply means that you're missing jp2 filetype from your GIMP build.
On Mon, Jan 27, 2020 at 10:26 AM Adrian Midgley via gimp-user-list < gimp-user-list@gnome.org> wrote:
That's a JPEG2000 format image.
It allows larger colour depth and lossless compression, compared to JPEG.Gimp up to 9.2 couldn't open them. I doubt 2.10 can.
You can convert them to JPG or probably to TIF and those are both openable.
On Wed, 22 Jan 2020, 22:34 mlorenzo2408, wrote:
Hello,
I am trying to load a JP2 image from the USGS. from the metaviewer i have:
BitsPerSample 8 8 8
Photo.ColorSpace sRGB
From image properties:
Size in pixels: 6963 X 8854 pixels
Color Space: Grayscale
Number of layers: 1There is a color image there, it shows in qgis. How do i get gimp to
load
the
color image?--
mlorenzo2408 (via www.gimpusers.com/forums) _______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list_______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list
- postings
- 3
loading jp2 images
This is simply not true. GIMP has been able to open jp2 files for quite some time.
It simply means that you're missing jp2 filetype from your GIMP build.
On Mon, Jan 27, 2020 at 10:26 AM Adrian Midgley via gimp-user-list < gimp-user-list@gnome.org> wrote:
I can open jp2 files... my problem is it loads the wrong layer and I get the
greyscale image and not the color image...
GIMP Image Properties:
Number of layers: 1
Number of channels: 0
qgis raster information
Processing algorithm…
Algorithm 'Raster information' starting…
Input parameters:
{ 'INPUT' : '/data/strider/USGS/m_3807862_nw_17_1_20160620_20160928.jp2',
'MIN_MAX' : False, 'NOGCP' : False, 'NO_METADATA' : False, 'OUTPUT' :
'/tmp/processing_9a89c052ba9141adb2ce4ccb1d801440/691bfc0de6f54f44b98f1b1284445003/OUTPUT.html',
'STATS' : True }
GDAL command:
gdalinfo -stats /data/strider/USGS/m_3807862_nw_17_1_20160620_20160928.jp2
GDAL command output:
Warning 1: Empty SOT marker detected: Psot=12.
Driver: JP2OpenJPEG/JPEG-2000 driver based on OpenJPEG library
Files: /data/strider/USGS/m_3807862_nw_17_1_20160620_20160928.jp2
Size is 6964, 8847
Coordinate System is:
PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",
GEOGCS["GCS_WGS_1984",
DATUM["D_WGS_1984",
SPHEROID["WGS_1984",6378137.0,298.257223563]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],
PROJECTION["Mercator_Auxiliary_Sphere"],
PARAMETER["False_Easting",0.0],
PARAMETER["False_Northing",0.0],
PARAMETER["Central_Meridian",0.0],
PARAMETER["Standard_Parallel_1",0.0],
PARAMETER["Auxiliary_Sphere_Type",0.0],
UNIT["Meter",1.0],
EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"]]
Origin = (-8724668.827568912878633,4597102.853592671453953)
Pixel Size = (1.000000000000000,-1.000000000000000)
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left (-8724668.828, 4597102.854) ( 78d22'30.12"W, 38d 7'30.09"N)
Lower Left (-8724668.828, 4588255.854) ( 78d22'30.12"W, 38d 3'44.93"N)
Upper Right (-8717704.828, 4597102.854) ( 78d18'44.91"W, 38d 7'30.09"N)
Lower Right (-8717704.828, 4588255.854) ( 78d18'44.91"W, 38d 3'44.93"N)
Center (-8721186.828, 4592679.354) ( 78d20'37.52"W, 38d 5'37.53"N)
Band 1 Block=4096x4096 Type=Byte, ColorInterp=Undefined
Minimum=20.000, Maximum=255.000, Mean=101.694, StdDev=40.596
Overviews: 3482x4423, 1741x2211, 870x1105, 435x552, 217x276, 108x138, 54x69
Overviews: arbitrary
Metadata:
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=101.69407488086
STATISTICS_MINIMUM=20
STATISTICS_STDDEV=40.59638080412
STATISTICS_VALID_PERCENT=100
Image Structure Metadata:
COMPRESSION=JPEG2000
Band 2 Block=4096x4096 Type=Byte, ColorInterp=Undefined
Minimum=35.000, Maximum=255.000, Mean=125.952, StdDev=39.031
Overviews: 3482x4423, 1741x2211, 870x1105, 435x552, 217x276, 108x138, 54x69
Overviews: arbitrary
Metadata:
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=125.95178002752
STATISTICS_MINIMUM=35
STATISTICS_STDDEV=39.030505404576
STATISTICS_VALID_PERCENT=100
Image Structure Metadata:
COMPRESSION=JPEG2000
Band 3 Block=4096x4096 Type=Byte, ColorInterp=Undefined
Minimum=36.000, Maximum=255.000, Mean=106.175, StdDev=27.473
Overviews: 3482x4423, 1741x2211, 870x1105, 435x552, 217x276, 108x138, 54x69
Overviews: arbitrary
Metadata:
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=106.17547686833
STATISTICS_MINIMUM=36
STATISTICS_STDDEV=27.473481480161
STATISTICS_VALID_PERCENT=100
Image Structure Metadata:
COMPRESSION=JPEG2000
Band 4 Block=4096x4096 Type=Byte, ColorInterp=Undefined
Minimum=0.000, Maximum=255.000, Mean=194.452, StdDev=58.036
Overviews: 3482x4423, 1741x2211, 870x1105, 435x552, 217x276, 108x138, 54x69
Overviews: arbitrary
Metadata:
STATISTICS_MAXIMUM=255
STATISTICS_MEAN=194.45181971231
STATISTICS_MINIMUM=0
STATISTICS_STDDEV=58.035617609829
STATISTICS_VALID_PERCENT=100
mlorenzo2408 (via www.gimpusers.com/forums)
- postings
- 3
loading jp2 images
This is simply not true. GIMP has been able to open jp2 files for quite some time.
It simply means that you're missing jp2 filetype from your GIMP build.
On Mon, Jan 27, 2020 at 10:26 AM Adrian Midgley via gimp-user-list < gimp-user-list@gnome.org> wrote:
Please let me restate the problem:
When opening a jp2 file, gimp is opening only one layer, even though the headers
are showing four bands and at least 2 layers...
r,
max
mlorenzo2408 (via www.gimpusers.com/forums)
loading jp2 images
Please let me restate the problem:
When opening a jp2 file, gimp is opening only one layer, even though the headers
are showing four bands and at least 2 layers... r,
max
Interesting, now that there is a reference image.
Using ImageMagick (IM) identify - the jp2 is 8 bit grayscale with alpha. AFAIK IM uses the same libopenjp2 library as Gimp.
However, using XnViewMP the image displays as RGB. Converts to a large tiff (with alpha) which does open (with complaints) by Gimp 2.10.14 (using kubuntu 18.04)
At least that will get the image into Gimp.
Attachments: * https://www.gimpusers.com/system/attachments/1352/original/jpeg2000.jpg
rich404 (via www.gimpusers.com/forums)
-
screenshot
jpeg2000.jpg (376 KB)
loading jp2 images
I don't see a reference image though I've asked for one.
On Mon, Jan 27, 2020 at 2:30 PM rich404 wrote:
Please let me restate the problem:
When opening a jp2 file, gimp is opening only one layer, even though the headers
are showing four bands and at least 2 layers... r,
maxInteresting, now that there is a reference image.
Using ImageMagick (IM) identify - the jp2 is 8 bit grayscale with alpha. AFAIK
IM uses the same libopenjp2 library as Gimp.However, using XnViewMP the image displays as RGB. Converts to a large tiff (with alpha) which does open (with complaints) by Gimp 2.10.14 (using kubuntu
18.04)At least that will get the image into Gimp.
Attachments: * https://www.gimpusers.com/system/attachments/1352/original/jpeg2000.jpg
-- rich404 (via www.gimpusers.com/forums) _______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list
loading jp2 images
I don't see a reference image though I've asked for one.
Could be because you are on the mailing list and I use the gimpuser.com forum maybe the post is scrambled.
Go back a couple of posts to find
quote ...../data/strider/USGS/m_3807862_nw_17_1_20160620_20160928.jp2.....unquote
then a search for USGS/m_3807862_nw_17_1_20160620_20160928.jp2 gets
and a download link to
rich404 (via www.gimpusers.com/forums)
loading jp2 images
You're obviously resourceful. :)
Anyway, that image opens as grayscale for me. As a check, I opened it in Photoshop and that's a single layer grayscale as well.
On Tue, Jan 28, 2020 at 3:36 AM rich404 wrote:
I don't see a reference image though I've asked for one.
Could be because you are on the mailing list and I use the gimpuser.com forum
maybe the post is scrambled.Go back a couple of posts to find
quote ...../data/strider/USGS/m_3807862_nw_17_1_20160620_20160928.jp2.....unquote
then a search for USGS/m_3807862_nw_17_1_20160620_20160928.jp2 gets
and a download link to
-- rich404 (via www.gimpusers.com/forums) _______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list
loading jp2 images
You're obviously resourceful. :)
Anyway, that image opens as grayscale for me. As a check, I opened it in
Photoshop and that's a single layer grayscale as well.
I initially thought it might be an old version of lib libopenjp2 (ubuntu bionic uses 2.3.0 ) but trying out an appimage with the latest 2.3.1 makes no difference.
Might be this for you clever guys ;) If I use imagemagick identify -verbose, end of the report is:
Version: ImageMagick 7.0.9-17 Q16 x86_64 2020-01-23 https://imagemagick.org identify: Empty SOT marker detected: Psot=12. `OpenJP2' @ warning/jp2.c/JP2WarningHandler/237. identify: UnableToOpenConfigureFile `colors.xml' @ warning/configure.c/GetConfigureOptions/702.
I still think an libopenjp2 issue rather than Gimp.
rich404 (via www.gimpusers.com/forums)
loading jp2 images
Psot=12 implies that it's a special case that can be read by Kakadu. Otherwise Psot has to be greater or equal to 14.
I used the Kakadu demo viewer and it still shows me 1 grayscale layer. Sorry, this is where I stop. :)
On Tue, Jan 28, 2020 at 12:16 PM rich404 wrote:
You're obviously resourceful. :)
Anyway, that image opens as grayscale for me. As a check, I opened it in
Photoshop and that's a single layer grayscale as well.I initially thought it might be an old version of lib libopenjp2 (ubuntu bionic
uses 2.3.0 ) but trying out an appimage with the latest 2.3.1 makes no difference.Might be this for you clever guys ;) If I use imagemagick identify -verbose,
end of the report is:Version: ImageMagick 7.0.9-17 Q16 x86_64 2020-01-23 https://imagemagick.org
identify: Empty SOT marker detected: Psot=12. `OpenJP2' @ warning/jp2.c/JP2WarningHandler/237. identify: UnableToOpenConfigureFile `colors.xml' @ warning/configure.c/GetConfigureOptions/702.I still think an libopenjp2 issue rather than Gimp.
-- rich404 (via www.gimpusers.com/forums) _______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list
loading jp2 images
If anyone's still interested, irfanview 4.50 32-bit (on windows) opens the image and shows a very large, color, arial view of some rural, green countryside.
On 1/28/2020 11:36 AM, Partha Bagchi via gimp-user-list wrote:
Psot=12 implies that it's a special case that can be read by Kakadu. Otherwise Psot has to be greater or equal to 14.
I used the Kakadu demo viewer and it still shows me 1 grayscale layer. Sorry, this is where I stop. :)
On Tue, Jan 28, 2020 at 12:16 PM rich404 wrote:
You're obviously resourceful. :)
Anyway, that image opens as grayscale for me. As a check, I opened it in
Photoshop and that's a single layer grayscale as well.I initially thought it might be an old version of lib libopenjp2 (ubuntu bionic
uses 2.3.0 ) but trying out an appimage with the latest 2.3.1 makes no difference.Might be this for you clever guys ;) If I use imagemagick identify -verbose,
end of the report is:Version: ImageMagick 7.0.9-17 Q16 x86_64 2020-01-23 https://imagemagick.org
identify: Empty SOT marker detected: Psot=12. `OpenJP2' @ warning/jp2.c/JP2WarningHandler/237. identify: UnableToOpenConfigureFile `colors.xml' @ warning/configure.c/GetConfigureOptions/702.I still think an libopenjp2 issue rather than Gimp.
-- rich404 (via www.gimpusers.com/forums) _______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list_______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list
loading jp2 images
On Mon, Jan 27, 2020 at 10:30 PM rich404 wrote:
Attachments:
* https://www.gimpusers.com/system/attachments/1352/original/jpeg2000.jpg
It looks like the kind of hacked-up stuff that Map Suite does:
https://github.com/ThinkGeo/MultipleJpeg2000RasterLayerSample-ForWpf
I could be entirely ignorant on this, but if someone extends a file format beyond what it was designed to do, expecting other applications to just support that would probably be a bit on the optimistic side :)
Alex