Log in

View Full Version : Is there a difference in png and jpg for imagesource


vcmohan
2nd March 2022, 13:05
I have an access violation(?) situation (virtualdub disappears)when I am using a PNG file
imagesource("c:\images\scratches.jpg",end = 20)
#imagesource("c:\images\scratches.png",end = 20)#access violation
assumefieldbased()
F1QTest(5,50,60,10)
I could trace the problem to a particular point in constructor in my source file. However I use similar construct in F1Quiver and it does not give this error. It is a place where I scale an array and input should have no effect .
A similar problem was reported by some user when he tried F2QTest. For the moment I removed that scaling. However that buffer is used by everyframe and works fine.
Is there a difference between PNG and JPG file output by imageSource?

StainlessS
2nd March 2022, 13:36
Check out difference [jpg/png] results of ImageSource("...").Info() without your filter in script,

Reel.Deel
2nd March 2022, 14:03
Does loading the png image with FFImageSource (https://github.com/FFMS/ffms2/releases) fix the problem?

vcmohan
3rd March 2022, 13:05
I did not check with that. I have however already replaced the offending part. But curious whether any one have found similar issue.

wonkey_monkey
3rd March 2022, 16:30
What was the issue?