Author Topic: SampleFormatConversion Resizes the Image  (Read 436 times)

Offline Enzo De Bernardini

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 270
  • Resistance is futile.
    • View Profile
    • Astronomí­a Sur
SampleFormatConversion Resizes the Image
« on: 2019 January 23 21:52:49 »
Try:
  • Open an image, create a preview, activate the preview.
  • Open an process with Real-Time Preview (like HT). The RTP shows the preview.
  • Activate the main image.
  • Open SampeFormatConversion and apply on main image
  • The main image has been resized to the preview size :P
PI 1.8.6.1457, Windows 10 x64.

Greetings,

Enzo.

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1176
    • View Profile
    • astrobin
Re: SampleFormatConversion Resizes the Image
« Reply #1 on: 2019 January 23 23:25:50 »
Enzo

Looks like a weird bug in the tool. Here is the warning I got when I did your steps. Yes while it did delete the preview and resize the main image to the preview I was able to just undo the last step and return to the original with the preview. A warning would be nice before not after 8)


Mike

Online Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 6865
    • View Profile
    • http://pixinsight.com/
Re: SampleFormatConversion Resizes the Image
« Reply #2 on: 2019 January 24 00:07:34 »
Hola Enzo!

Bug confirmed. Wow, this one is funny! 8) I have no idea of what is happening here, but it looks like a rare interaction with the real-time preview that I have to investigate. The steps can be simplified. You don't need an additional tool, just open R-T and select the preview. Very interesting, thank you for discovering this.

Mike, that warning message is shown by auto-diagnostics routines that can detect potential problems when a process is executed. Basically, these routines check that some basic properties of the processed image, such as geometry, color space and memory usage, agree with what the process promised to do to the image before execution. PixInsight is much more complex internally than what may seem from the surface :)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1176
    • View Profile
    • astrobin
Re: SampleFormatConversion Resizes the Image
« Reply #3 on: 2019 January 24 00:18:10 »
Juan

I always knew PI was Alive ;)


Mike

Offline Enzo De Bernardini

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 270
  • Resistance is futile.
    • View Profile
    • Astronomí­a Sur
Re: SampleFormatConversion Resizes the Image
« Reply #4 on: 2019 January 24 07:03:55 »

Online Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 6865
    • View Profile
    • http://pixinsight.com/
Re: SampleFormatConversion Resizes the Image
« Reply #5 on: 2019 April 22 04:11:40 »
This bug is now fixed in the new version 1.8.6.1471, which I am now preparing for release. Thank you so much for discovering and reporting this weird one.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/