Log in

View Full Version : Overlay bug? logo image upside down


snowcrash
2nd March 2005, 21:34
I've been using the following to insert a logo in the clips I encode:

LogoMask=Imagereader("I:\Videos\blogo_mask.png")
Logo = Imagereader("I:\Videos\blogo.png")
Overlay(logo, x=(Width() - logo.Width() - 3), y=(Height() - logo.Height() - 3), mask=LogoMask, opacity=.6)


This has always worked fine with Avisynth 2.5.0, inserting my logo in the bottom right corner. Up until just recently when I upgraded Avisynth to 2.5.5 and now my logo is inserted upside-down. I also tried the latest 2.5.6 Beta2 and I get the same thing. If I go back to the old 2.5.0 avisynth.dll, it works properly again.

I searched and didn't see anyone else reporting this which is surprising to me. Isn't there anyone else using overlay()? This seems to be a clear bug to me, unless I'm doing something stupid. Anyway, I have a program installed that needs Avisynth 2.5.5 so for now i'm going to have to just flip the orientation of my logo graphic I guess. Developers, I hope you can fix this. Thanks.

Wilbert
2nd March 2005, 22:26
Are you sure the logo itself is not displayed upside-down?

Imagereader("I:\Videos\blogo.png")

edit: typo

stickboy
3rd March 2005, 00:04
ImageReader since 2.5.5 has had a little bug where it sometimes displays images upside-down. (Before it would always display images upside-down, but I think someone unsuccessfully tried to fix it.)

I'm not sure if it's been addressed by 2.5.6.

maomao333
3rd March 2005, 03:23
Originally posted by Wilbert
Are you sure the logo itself is not displayed upside-down?

Imagereader("I:\Videos\blogo.png")

edit: typo

In Avisynth 2.5.5 reading some formats like png,jpg have to use flipvertical() ,but bmp not

snowcrash
4th March 2005, 21:58
Ok, so as a workaround I'm doing this and my logo is now oriented properly:

LogoMask = flipvertical(Imagereader("I:\Videos\blogo_mask.png"))
Logo = flipvertical(Imagereader("I:\Videos\blogo.png"))

But really, I shouldn't have to do this. Seems like a pretty major bug to me and I hope someone fixes it.

stickboy
4th March 2005, 22:06
My JDL_ImageSource (http://www.avisynth.org/stickboy/) function tries to figure some of it out for you.

Wilbert
4th March 2005, 22:08
But really, I shouldn't have to do this. Seems like a pretty major bug to me and I hope someone fixes it.
Yes it's a bug, but not a bug in AviSynth. The used library is the problem.