On Mon, 2025-06-09 at 14:41 +0200, Frank wrote:
> Is this what you expect for a JPEG2000 file?
> file jpeg2000-home.jpg 
> jpeg2000-home.jpg: JPEG image data, JFIF standard 1.01, resolution
> (DPI), density 72x72, segment length 16, progressive, precision 8,
> 800x400, components 3

Hi Frank,

no, your file is a "classic" JPEG.

JPEG 2000
=========

$ wget -q 
https://hirise-pds.lpl.arizona.edu/download/PDS/RDR/PSP/ORB_003400_003499/PSP_003434_1755/PSP_003434_1755_COLOR.JP2

$ file PSP_003434_1755_COLOR.JP2
PSP_003434_1755_COLOR.JP2: JPEG 2000 Part 1 (JP2)

$ exiftool PSP_003434_1755_COLOR.JP2
ExifTool Version Number         : 13.30
File Name                       : PSP_003434_1755_COLOR.JP2
Directory                       : .
File Size                       : 592 MB
File Modification Date/Time     : 2016:08:27 00:12:51+02:00
File Access Date/Time           : 2025:06:08 13:30:09+02:00
File Inode Change Date/Time     : 2025:06:08 13:29:23+02:00
File Permissions                : -rw-r--r--
File Type                       : JP2
File Type Extension             : jp2
MIME Type                       : image/jp2
Major Brand                     : JPEG 2000 Image (.JP2)
Minor Version                   : 0.0.0
Compatible Brands               : jp2
Image Height                    : 83639
Image Width                     : 14423
Number Of Components            : 3
Bits Per Component              : 10 Bits, Unsigned
Compression                     : JPEG 2000
Color Spec Method               : Enumerated
Color Spec Precedence           : 0
Color Spec Approximation        : Not Specified
Color Space                     : sRGB
URL                             : 
Exif Byte Order                 : Little-endian (Intel, II)
Bits Per Sample                 : 8
Photometric Interpretation      : BlackIsZero
Strip Offsets                   : 181
Samples Per Pixel               : 1
Rows Per Strip                  : 1
Strip Byte Counts               : 1
Planar Configuration            : Chunky
Pixel Scale                     : 0.25 0.25 0
Model Tie Point                 : 0 0 0 6896111.375 -265319.125 0
Geo Tiff Version                : 1.1.0
GT Model Type                   : Projected
GT Raster Type                  : Pixel Is Area
GT Citation                     : Equirectangular MARS
Geographic Type                 : User Defined
Geog Citation                   : GCS_MARS
Geog Geodetic Datum             : User Defined
Geog Angular Units              : Angular Degree
Geog Ellipsoid                  : User Defined
Geog Semi Major Axis            : 3396190
Geog Semi Minor Axis            : 3396190
Projected CS Type               : User Defined
Projection                      : User Defined
Proj Coord Trans                : Equirectangular
Proj Linear Units               : Linear Meter
Proj False Easting              : 0
Proj False Northing             : 0
Proj Center Long                : 180
Proj Center Lat                 : 0
Image Size                      : 14423x83639
Megapixels                      : 1206.3


FITS
====

https://fits.gsfc.nasa.gov/fits_samples.html
https://fits.gsfc.nasa.gov/nrao_data/tests/incunabula/orion-16.fits
https://fits.gsfc.nasa.gov/nrao_data/tests/incunabula/m87-32.fits

Regards.
Ralf

Reply via email to