conversion to FITS seems broken in recent version

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
prof7
Posts: 1
Joined: 2011-04-22T04:14:25-07:00
Authentication code: 8675308

conversion to FITS seems broken in recent version

Post by prof7 »

convert original.png fits:converted.fit

this used to work with a few years old version (the one that came with ubuntu hardy) but now i downloaded and compiled the current version 6.6.9-5 because I need some of the new features and unfortunately it seems now the FITS support is broken.

the following image was created with an old version (I also used -level to stretch the range from 0..255 to 0..32767 which btw. seems to be broken now too).

This is an old image created from version (I believe it was 6.3.7 that was installed by ubuntu hardy): https://sites.google.com/site/prof7bit/ ... ersion.fit

The above file contains all 3 colors and is suitable for usage in the IRIS (astrosurf) software. I don't have the original for this particular file anymore but here is a new test case:

original: (RGB image 24bit): https://sites.google.com/site/prof7bit/original.png
converted: https://sites.google.com/site/prof7bit/converted.fit

oiginal.png is a 24bit RGB image, the converted image turns out to be grayscale (it combined all 3 channels into one grayscale channel) but I want an RGB image and I can't find any way to enforce the color. I used to batch convert a lot of camera images from either .png or .pnm to .fits with a little python script and it worked like a charm but to my surprise now since I updated imagemagick all color has gone and I am forced to use pamtofits and friends now (and even thinking about implementing fits support directly in my camera software myself).
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: conversion to FITS seems broken in recent version

Post by magick »

We can reproduce the problem you reported and have a patch for ImageMagick 6.6.9-6 Beta available by sometime tomorrow. Thanks.
Post Reply