Skip to content

Image source not updating when original file is delete then replaced with the same filename #10700

Open

Description

@chocobclyn

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

Other

OBS Studio Version (Other)

3.0.2

OBS Studio Log URL

https://obsproject.com/logs/UeJ2YTFr3iqrFvjI

OBS Studio Crash Log URL

No response

Expected Behavior

I expect that the image source in OBS will be updated in about 1-2 seconds after overwriting the source file.

Current Behavior

When the source file is deleted and replaced with the same filename, image source in OBS does not update

Steps to Reproduce

  1. Create image source in OBS
  2. Select any image file as source
  3. Delete image file
  4. Create new image file with the same filename
  5. OBS does not update image source
    ...

Anything else we should know?

This workflow is different from saving/overwriting from imaging software like Photoshop. My workflow requires the original file to be deleted and then replaced with another file of the same filename. My workflow is similar to GrandyB sheets.io

Activity

  1. Fenrirthviti commented on May 20, 2024

    @Fenrirthviti
    Member

    Just noting that I would not expect this to work. I don't think we're watching image sources for file changes once loaded, and doing so is likely non-trivial.

  2. added
    area/ui-ux
    on May 20, 2024
  3. adampoit commented on Oct 14, 2024

    @adampoit

    I don't think we're watching image sources for file changes once loaded, and doing so is likely non-trivial.

    OBS is comparing file timestamps to watch image sources for changes. If the file timestamps changes, which should happen if the file is deleted and recreated, then OBS should reload the image.

    This could be related to the bug I encountered and opened a PR for: #8783

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ui-ux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions