ericmandel / js9

astronomical image display everywhere
https://js9.si.edu
Other
121 stars 50 forks source link

ImageOpts.flip does nothing #86

Closed hombit closed 2 years ago

hombit commented 2 years ago

It looks like flipping is not set up whenJS9Prefs = {"imageOpts": {"flip": "y"}} specified in js9prefs.js or when passed via query parameter ?flip=y. Thus these two links show the same image orientation: https://js9.si.edu/js9/js9.html?url=https://hea-www.cfa.harvard.edu/~eric/coma.fits.gz https://js9.si.edu/js9/js9.html?url=https://hea-www.cfa.harvard.edu/~eric/coma.fits.gz?flip=y

ericmandel commented 2 years ago

Thanks, that's a bug, which I will track down.

ericmandel commented 2 years ago

Duh, flip, rotate, rot90 also have to be treated specially, but this is now fixed and updated in GitHub (btw, use '&' to separate query params, not '?' as in your report above):

Screen Shot 2022-05-20 at 12 44 32 PM
hombit commented 2 years ago

Ah, sorry, I misprinted it. Thanks for fixing it!