Convert FITS to PNG
Turn FITS images into PNG. The first image in the file as 8 bits, stretched linearly from its lowest to its highest value with blank pixels shown black; a three-plane image comes out in color.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop FITS files on the dialor turn it to pick what to do
A PNG picture from a FITS image.The first image in the file, stretched to 8 bits. The header keywords stay behind.
What you get
One PNG of the first image in the FITS file. The values are stretched linearly from the lowest to the highest value in the image, so the darkest value becomes black and the brightest becomes white.
Blank pixels are shown black. An image with three planes comes out in color.
What it leaves behind
The header keywords are not kept. The PNG holds the picture only, so the details stored in the FITS header are not in the output.
Only the first image is converted. If the file holds more than one image, the others are not in the PNG.
Options
Set Grayscale to turn colors into shades of gray, which often makes the file smaller. Set Max width or Max height to shrink a large image while keeping its shape. Images that are already smaller stay as they are, so nothing is enlarged.
Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.
When it stops
If the file cannot be parsed, the conversion stops with
input_corrupted. To go the other way, use PNG to FITS.
FITS and PNG.What each format is, and the options this conversion takes.
- 01 · grayscale
Grayscale
Turns colors into shades of gray, which often makes the file smaller.
- 02 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 03 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 - 04 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270
The formats
FITS
FITS, the image and table format of astronomy.
- Extensions
- .fits .fts
- MIME type
- image
/fits - Kind
- Images
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
In your code.The same FITS to PNG conversion through the API, for your app or your agent.
$ cv convert photo.fits photo.png$ cv convert photo.fits photo.pngQuestions.What people ask about FITS to PNG.
No. The header keywords are not kept. Only the picture is written to the PNG.
Yes, when the image has three planes. Other images come out as a stretched picture of the values. Set Grayscale to turn a color result into shades of gray.
The 8-bit result is stretched linearly from the lowest value to the highest value in the image. Blank pixels are shown black.
The file could not be parsed. The conversion stops with input_corrupted and no PNG is made.