Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Light mode does not seem to work when specifying light / dark and time based images #72

Open
carcus88 opened this issue Oct 6, 2023 · 0 comments

Comments

@carcus88
Copy link

carcus88 commented Oct 6, 2023

I am attempting to create an heic file that includes images light / dark and time based auto mode.

I am using the following JSON input

  {
    "fileName": "medsurvey-wallpaper-14inch-3024x1964_light.png",
    "isPrimary": true,
    "isForLight": true
  },
  {
    "fileName": "transition_1.png",
    "time": "2023-10-03T09:00:00Z",
    "isPrimary": false,
    "isForDark" : false,
    "isForLight": false
  },
  {
    "fileName": "transition_2.png",
    "time": "2023-10-03T10:00:00Z",
    "isPrimary": false,
    "isForDark" : false,
    "isForLight": false
  },
  {
    "fileName": "transition_3.png",
    "time": "2023-10-03T11:00:00Z",
    "isPrimary": false,
    "isForDark" : false,
    "isForLight": false
  },
  {
    "fileName": "transition_4.png",
    "time": "2023-10-03T12:00:00Z",
    "isPrimary": false,
    "isForDark" : false,
    "isForLight": false
  },
  {
    "fileName": "transition_6.png",
    "time": "2023-10-03T14:00:00Z",
    "isPrimary": false,
    "isForDark" : false,
    "isForLight": false
  },
  {
    "fileName": "transition_7.png",
    "time": "2023-10-03T15:00:00Z",
    "isPrimary": false,
    "isForDark" : false,
    "isForLight": false
  },
  {
    "fileName": "transition_8.png",
    "time": "2023-10-03T16:00:00Z",
    "isPrimary": false,
    "isForDark" : false,
    "isForLight": false
  },
  {
    "fileName": "transition_9.png",
    "time": "2023-10-03T17:00:00Z",
    "isPrimary": false,
    "isForDark" : false,
    "isForLight": false
  },
  {
    "fileName": "transition_10.png",
    "time": "2023-10-03T18:00:00Z",
    "isPrimary": false,
    "isForDark" : false,
    "isForLight": false
  },
  {
    "fileName": "transition_11.png",
    "time": "2023-10-03T19:00:00Z",
    "isPrimary": false,
    "isForDark" : false,
    "isForLight": false
  },
  {
    "fileName": "transition_12.png",
    "time": "2023-10-03T20:00:00Z",
    "isPrimary": false,
    "isForDark" : false,
    "isForLight": false
  },
  {
    "fileName": "medsurvey-wallpaper-14inch-3024x1964_dark.png",
    "isPrimary": false,
    "isForDark": true,
    "isForLight": false
  }
]

My output from wallpapper -e is the following

Metadata key: tiff:Orientation
        value: 1
---------------------------------------------------
Metadata key: apple_desktop:h24
        Saved plist file: file:///Users/markmitchell/Projects/kandji/wallpaper/test.plist
[APPERANCE]
        image index: 12, dark
        image index: 0, light
[TIME]
        image index: 1, time: 0.20833333333333334
        image index: 2, time: 0.25
        image index: 3, time: 0.2916666666666667
        image index: 4, time: 0.3333333333333333
        image index: 5, time: 0.4166666666666667
        image index: 6, time: 0.4583333333333333
        image index: 7, time: 0.5
        image index: 8, time: 0.5416666666666666
        image index: 9, time: 0.5833333333333334
        image index: 10, time: 0.625
        image index: 11, time: 0.6666666666666666
---------------------------------------------------
Metadata key: iio:hasXMP
        value: True

Dark mode works find, auto mode works fine but when I select light mode in system settings the background is always using the time based background. I've tried the following

  • Specifying time in the dark and light mode files in the JSON input. No change
  • Only specifying the boolean values for light and dark mode in their respective options in the JSON input. No change
  • Removing all the time based options. Light mode works but there is no auto mode as expected.

I have attached the heic file that is produced

medsurvey-dynamic-wallpaper.heic.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant