|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-08-02 14:01 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2021-08-02 14:01 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 22 14:00:01 2025 UTC |
Description: ------------ When creating 16-bit FITS file, a value of BZERO header is set literaly to "3.276750E+04", what is 32767.5 In this case it is impossible to store correct pixel value in 16-bits, as it's calculated as follows: true_pixel_value = array_value * BSCALE + BZERO Test script: --------------- $im= new Imagick(); $im->newImage(1,1,'none','FITS'); $im->setImageDepth(16); $im->writeImage('file.fit'); $im->destroy(); Expected result: ---------------- Value 32768 is used instead for BZERO. Actual result: -------------- BZERO is 3.276750E+04