Author Topic: PJSR embedDisplayFunction & extension usage?  (Read 4332 times)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
PJSR embedDisplayFunction & extension usage?
« on: 2015 August 12 10:56:56 »
Hi Juan,

On xisf write I would like to embed an stf. How do I specify an stf for FileFormatInstance.writeImage when the associated ImageDescription.embedDisplayFunction is true.

FileFormatInstance has a fits "keywords" property (I use this) but no "stf" property. I cant find anything similar in other related core objects. Maybe it is placed in FileFormatInstance.formatSpecificData somehow?

Also is there a PJSR core object property for Edit > Global Preferences > File I/O Settings > Default image file extension?

Thanks
Mike

Update: I discovered that this will return the default image file extension in build 1171:
Code: [Select]
(new Preferences).ImageWindow_defaultFileExtension
« Last Edit: 2015 August 13 17:22:49 by mschuster »

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: PJSR embedDisplayFunction & extension usage?
« Reply #1 on: 2015 August 15 03:00:17 »
Hi Mike,

Unfortunately, three new format embeddable items are still not implemented in PJSR:

FileFormatInstance.displayFunction
FileFormatInstance.rgbWorkingSpace
FileFormatInstance.colorFilterArray

They will be available in the next 1.8.4 version that I intend to release in September (along with a new XISF specification and, hopefully, the SpiderMonkey engine version 31 or 38, depending on Mozilla's release dates).

The formatSpecificData property is an opaque object used to preserve format-specific data across file load/save operations. It transports native data that cannot be accessed from JavaScript code (it cannot be accessed from C++ code either, except inside the module that implements the specific file format support).
Juan Conejero
PixInsight Development Team
http://pixinsight.com/