mczachurski / wallpapper

:computer: Console application for creating dynamic wallpapers for macOS Mojave and newer
MIT License
3.31k stars 137 forks source link

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

Open carcus88 opened 11 months ago

carcus88 commented 11 months ago

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

I have attached the heic file that is produced

medsurvey-dynamic-wallpaper.heic.zip