Coder Social home page Coder Social logo

Comments (17)

royshil avatar royshil commented on August 19, 2024 1

I think I need to do some work on accepting local file paths for images
It's not a big deal. I can get it done quickly

from obs-urlsource.

nona00 avatar nona00 commented on August 19, 2024 1

Thank you very much for the hint. I tried the new version, but the issue is the same, only an icon is shown. I was able to reproduce it with a simple text input. I tried with C:/Test/test.jpg and C:\Test\test.jpg

test
test.txt

grafik

grafik

from obs-urlsource.

royshil avatar royshil commented on August 19, 2024 1

ive merged #61 . the problem is fixed
i also added further controls, so i'll be closing this issue
thanks @nona00

from obs-urlsource.

nona00 avatar nona00 commented on August 19, 2024

OBS 30.0.0 x64 win

from obs-urlsource.

royshil avatar royshil commented on August 19, 2024

@nona00 can you give me some more details?
like what does the response body look like?

from obs-urlsource.

nona00 avatar nona00 commented on August 19, 2024

grafik

grafik

from obs-urlsource.

nona00 avatar nona00 commented on August 19, 2024

grafik

grafik

from obs-urlsource.

royshil avatar royshil commented on August 19, 2024

right... it's a local file...
you might be able to get away with adding a prefix like file:// before the C:/...
may be possible with the postprocessing regex...

from obs-urlsource.

nona00 avatar nona00 commented on August 19, 2024

i tried with file://C:/... and also with an url, but both do not work. Is it perhaps necessary to adapt CSS Properties or Output Template? In Output text source it is only possible to select "None / internal rendering" or Text or Media, but not a picture

from obs-urlsource.

royshil avatar royshil commented on August 19, 2024

@nona00 can you check out the artifcats on #59 ? i've added a bit to see if it's a file (really see if its not a URL and then attempt to open it as a file)

from obs-urlsource.

nona00 avatar nona00 commented on August 19, 2024

I tried to build from source on Windows 10 x64 1809, but it fails with:

grafik

Visual Studio 2022, Powershell 7 and winget is installed

from obs-urlsource.

royshil avatar royshil commented on August 19, 2024

@nona00
You don't actually need to build from source since the CI system builds it for the PR
Grab the version you need from

https://github.com/occ-ai/obs-urlsource/pull/59/checks

Under "artifacts"

from obs-urlsource.

royshil avatar royshil commented on August 19, 2024

@nona00 thanks for this test - i will try to replicate your issue and resolve it on my setup

from obs-urlsource.

royshil avatar royshil commented on August 19, 2024

i'm able to replicate the issue. I will resolve it

from obs-urlsource.

royshil avatar royshil commented on August 19, 2024

@nona00 i've fixed it. can you check the artifcats on #61 ?

from obs-urlsource.

nona00 avatar nona00 commented on August 19, 2024

wow, thank you very much for the fast fix. I did some tests and it works now :-)

The icon is only shown when the file path is not correct or if the image from the url can not be loaded. An option to display a default File or hiding the element in this case would be great.

I tried to reduce the size of the shown image with the following CSS properties, but it had no effect:
width: 100px;
height: 100px;

Is there another way to do this? For text it works when I set the Output Text Source to an existing text source and define there the size, but for images this seems not to be possible.

from obs-urlsource.

royshil avatar royshil commented on August 19, 2024

@nona00 i've added a property to control the render width on #61
that should allow you to use higher res rendering to fit your needs

from obs-urlsource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.