Log in

View Full Version : Cannot get AVISynth to open png images [SORTED]


RedDwarf1
31st August 2011, 02:19
Why cannot I get Imagesource to import png images either 24 bit or 32 bit?

In AvsPmod it throws an error
ImageReader: error 'Invalid extension' in DeViL library. This is after updating DeViL to 1.7.8. With the previous DeViL version 1.6.5, which came with AVISynth 2.5.8 and has been updated to SEt's AVISynth 2.6 July 19th build, the file appeared to open but the image was blank so it was not managing to open the image.

Is it possible to successfully open png's with AVISynth? If so how to do it.

Any tips or advice would be welcome.

[EDIT] I've sorted it out. Installed 2.6 to restore the original DeViL and then replaced avisynth.dll. I don't think I installed 2.6, I am sure I just replaced 2.5.8's avisynth.dll.

The png works, it was the alpha channel which was making it look incorrect, the image showed as all white. It was a white image with a transparent background.

Wilbert
2nd September 2011, 18:49
Why cannot I get Imagesource to import png images either 24 bit or 32 bit?

In AvsPmod it throws an error
ImageReader: error 'Invalid extension' in DeViL library.
Could you upload such an image which doesn't load with DeVIL 1.7.8?

belonesox
26th October 2011, 21:15
Same problem.
Actually, I have some stability problem with ImageReader/ImageSource (OK — without it, Fail - withit).
I try DeViL 1.7.8 and receive Invalid extension' in DeViL library.

My png file (generated by Inkscape) — http://wiki.4intra.net/images/6/65/3source-01.svg.png

forclip
27th October 2011, 21:38
"'Invalid extension' in DeViL library" - this error appears for me too after updating DevIL to this version (http://downloads.sourceforge.net/openil/DevIL-EndUser-x86-Unicode-1.7.8.zip) (the link is taken from this (http://avisynth.org/mediawiki/ImageReader) page). But after replacing it with this (http://sourceforge.net/projects/openil/files/DevIL%20Win32/1.7.8/DevIL-EndUser-x86-1.7.8.zip/download) non-unicode version everything seems to work fine. I'm using AviSynth 2.5.8 MT, not sure how it will works on other versions.

Gser
27th October 2011, 23:47
"'Invalid extension' in DeViL library" - this error appears for me too after updating DevIL to this version (http://downloads.sourceforge.net/openil/DevIL-EndUser-x86-Unicode-1.7.8.zip) (the link is taken from this (http://avisynth.org/mediawiki/ImageReader) page). But after replacing it with this (http://sourceforge.net/projects/openil/files/DevIL%20Win32/1.7.8/DevIL-EndUser-x86-1.7.8.zip/download) non-unicode version everything seems to work fine. I'm using AviSynth 2.5.8 MT, not sure how it will works on other versions.

Thanks, that works for 2.6 as well. I can't seem to get alpha maps to work though. I have set pixel_type = "RGB32"

Wilbert
30th October 2011, 15:52
I don't understand why it matters using the unicode or non-unicode version in this case. Someone?

I can't seem to get alpha maps to work though. I have set pixel_type = "RGB32"
Could you upload this image please?

IanB
30th October 2011, 22:18
The Unicode version seems to expect wide char strings. Apparently the 2 .dll's have the same entry point names, but not the same argument lists. Oops! We are linking to the wrong version. :o

It seems not all the decoders support the alpha channel. Maybe we need to poke some options to force this to happen. :confused: